Re: pasting a lot of commands to psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dmitry Shalashov <skaurus(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pasting a lot of commands to psql
Date: 2016-07-07 17:37:13
Message-ID: 23146.1467913033@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dmitry Shalashov <skaurus(at)gmail(dot)com> writes:
> Let say that I have some sql file with like hundred of simple statements in
> it. I `cat` it, copy it to buffer, go to my beloved psql and insert it
> there.
> But somewhere after first few lines it screws over:

Yeah, I've noticed there's a limit on the amount you can paste into psql,
at least on some platforms. AFAICT this must be a readline
bug/limitation, or maybe something about the X cutbuffer protocol;
there's nothing in psql itself that would even know that a paste is
happening.

You might have better luck with "psql -n", or maybe not.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sameer Kumar 2016-07-07 17:37:40 Re: pasting a lot of commands to psql
Previous Message Melvin Davidson 2016-07-07 17:36:06 Re: pasting a lot of commands to psql