Re: Annoying messages when copy sql code to psql terminal - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Annoying messages when copy sql code to psql terminal
Date
Msg-id 20080605215057.GS16502@alvh.no-ip.org
Whole thread Raw
In response to Re: Annoying messages when copy sql code to psql terminal  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: conditionally executing migration code
Next
From: "Scott Marlowe"
Date:
Subject: Re: full vacuum really slows down query