Tab expansion - on/off feature

Поиск
Список
Период
Сортировка
От Bogdan Pilch
Тема Tab expansion - on/off feature
Дата
Msg-id 20140928115615.GC22150@artax.karlin.mff.cuni.cz
обсуждение исходный текст
Ответы Re: Tab expansion - on/off feature  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bogdan Pilch
Дата:
Сообщение: Time measurement format - more human readable
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Tab expansion - on/off feature