Re: Annoying messages when copy sql code to psql terminal

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Annoying messages when copy sql code to psql terminal
Дата
Msg-id 20080605215057.GS16502@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Annoying messages when copy sql code to psql terminal  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane escribió:
> "A B" <gentosaker@gmail.com> writes:
> > Whenever I use copy-paste to run code in a terminal window that is
> > running psql, and the code contains a row like
> > [...]

> Either avoid copying/pasting tabs, or turn off readline
> (-n option to psql, I think, but check the manual).
>
> There's probably a way to turn off tab-completion without
> disabling readline altogether, but I don't know how offhand.

This can be done by adding

$if psql
   set disable-completion on
$endif

to .inputrc.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: conditionally executing migration code
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: full vacuum really slows down query