Hi, I have created a small patch to postgres source (in particular the psql part of it) that modifies the way tab expansion is handled. The idea is to be able to toggle tab expansion, having the default set to ON (as it is now). If turned off, tab characters on command line in interactive mode are not evaluated nor expanded, but just copied. Tab expansion can either be turned off using command line option (-C) or controlled by \tab internal command of psql. Attached you can find a patch. I haven't created any regression tests as tab expansion works only in interactive mode. My patch is relative to origin/REL9_4_STABLE branch as that is the one I started from. My plea is to have this change merged into the main stream so that it becomes available in upcoming releases. This modification introduces new (optional) command line option and a new internal backslash command. It does not create any backward compatibility issues as the default behavior remains unchanged. regards bogdan
Bogdan Pilch <bogdan@matfyz.cz> writes:
> The idea is to be able to toggle tab expansion, having the default set
> to ON (as it is now). If turned off, tab characters on command line in
> interactive mode are not evaluated nor expanded, but just copied.
You can already suppress tab expansion with the -n switch. Do we really
need another way to do it?
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера