Re: pasting a lot of commands to psql

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: pasting a lot of commands to psql
Date: 2016-07-07 17:43:32
Message-ID: 70623fef-fcec-6df0-2954-c534b4babe2b@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/7/2016 10:30 AM, Dmitry Shalashov wrote:
>
> There is another ways to do it, which do not involve copy-paste, but I
> am wondering why is copy-paste won't work. What exactly is happening
> there...

probably your OS's console terminal emulation is overrunning on the
large paste. many moving parts between the OS desktop clipboard, and psql.

how about using psql -f file_of_commands.sql ?

--
john r pierce, recycling bits in santa cruz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dmitry Shalashov 2016-07-07 17:46:29 Re: pasting a lot of commands to psql
Previous Message Dmitry Shalashov 2016-07-07 17:41:42 Re: pasting a lot of commands to psql