Skip site navigation (1) Skip section navigation (2)

Re: Annoying messages when copy sql code to psql terminal

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "A B" <gentosaker(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Annoying messages when copy sql code to psql terminal
Date: 2008-05-27 14:29:26
Message-ID: 27369.1211898566@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-general
"A B" <gentosaker(at)gmail(dot)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

> IF FOUND THEN

> then I get the words

> ABORT        CHECKPOINT   COMMIT       DECLARE      EXECUTE
> ...

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.

			regards, tom lane

In response to

Responses

pgsql-general by date

Next:From: JustinDate: 2008-05-27 14:38:42
Subject: Re: New MS patent: sounds like PG db rules
Previous:From: Dave PageDate: 2008-05-27 14:15:41
Subject: Re: New MS patent: sounds like PG db rules

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group