Re: feature proposal ...

Hannu Krosing <hannu@skype.net>

From: Hannu Krosing <hannu@skype.net>
To: Rod Taylor <pg@rbt.ca>
Cc: Andrew Dunstan <andrew@dunslane.net>, tshipley@deru.com, pgsql-hackers@postgresql.org
Date: 2005-09-22T05:41:19Z
Lists: pgsql-hackers
On K, 2005-09-21 at 20:34 -0400, Rod Taylor wrote:
> Sure. But if you are using STDOUT then why does this need to be a server
> side item at all?
> 
> You either have code issuing the commands and collecting the results
> making a standard select just as fast or you are using psql which
> already has multiple display types for SELECT data, including XML
> output, but another could easily be added for CSV style output.

Another advantage of server-side COPY is that pgsql/libpq already does
not try to collect the whole resultset in memory before starting the
display/output process.

-- 
Hannu Krosing <hannu@skype.net>