Re: pasting a lot of commands to psql

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Dmitry Shalashov <skaurus(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: pasting a lot of commands to psql
Date: 2016-07-08 09:56:55
Message-ID: CA+bJJbxZ3-EWubL6Ya2c8BdgQOOJoi5ReAq7BXzqiWm0wkPjGw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi:

On Thu, Jul 7, 2016 at 8:18 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
>> You might have better luck with "psql -n", or maybe not.
> I've wished sometimes for a "\set READLINE off" psql metacommand for
> this kind of thing. It's pretty annoying when the text being pasted
> contains tabs and readline uses to do completion.

Doesn't 'cat | psql ' disable it? I use it with other programs for
these purpose ( as well as things like ls | cat to avoid
colors/wordwrapping, just makes the program see a non-tty on
stidn/stdout ).

Francisco Olarte.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message AMatveev 2016-07-08 11:11:46 Memory usage per session
Previous Message Sameer Kumar 2016-07-08 09:48:15 Re: [BUGS] Where clause in pg_dump: need help