Re: pasting a lot of commands to psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Francisco Olarte <folarte(at)peoplecall(dot)com>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, 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 14:36:48
Message-ID: 10398.1467988608@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Francisco Olarte <folarte(at)peoplecall(dot)com> writes:
> On Thu, Jul 7, 2016 at 8:18 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
>> 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?

Sure, but you could as well use 'psql -n'. I think the point is to be
able to turn it on and off without starting a fresh session. (Admittedly,
maybe there's not a lot of usability gain there.)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Achilleas Mantzios 2016-07-08 14:39:46 Re: Memory usage per session
Previous Message Melvin Davidson 2016-07-08 14:31:21 Re: Memory usage per session