Re: psql and COPY BINARY

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql and COPY BINARY
Date: 2005-12-14 17:19:26
Message-ID: 43A0541E.5020307@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Andreas Pflug <pgadmin(at)pse-consulting(dot)de> writes:
>
>>Examining why psql won't do sensible stuff with COPY BINARY, I realized
>>that psql still uses PQgetline, which is marked obsolete since 7.4.
>>Is this intentional or just a "never reviewed because it works"?
>
>
> There wasn't any obvious bang for the buck in rewriting it.

Well a non-binary copy could take as much as 5 times as much as a binary
copy. I hit this when COPYing 1.5GB of data, getting a 6.6GB file. This
made the 100MBit LAN connection a bottleneck.

I might post a patch to support BINARY in psql some day.

Regards,
Andreas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-12-14 17:24:21 Re: psql and COPY BINARY
Previous Message Francisco Figueiredo Jr. 2005-12-14 16:39:01 Re: [Bulk] Re: [Bug] Server Crash, possible security exploit,