Re: raw output from copy - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: raw output from copy
Date
Msg-id CANP8+j+18F1tEL_GVpKKd_cNQrMqOBm4m468BZEx1pa2rYQxug@mail.gmail.com
Whole thread Raw
In response to Re: raw output from copy  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: raw output from copy  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: raw output from copy  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On 2 July 2015 at 14:02, Andrew Dunstan <andrew@dunslane.net> wrote:

Please don't top-post on the PostgreSQL lists. You've been around here long enough to know that bottom posting is our custom.

I posted a patch for this in 2013 at <http://www.postgresql.org/message-id/50F2FA92.9040000@dunslane.net> but it can apply to a SELECT, and doesn't need COPY. Nobody seemed very interested, so I dropped it. Apparently people now want something along these lines, which is good.

It's a shame that both solutions are restricted to either COPY or psql. 

Both of those are working on suggestions from Tom, so there is no history of preference there.

Can we have both please, gentlemen?

If we implemented Andrew's solution, how would we request it in a COPY statement? Seems like we would want the RAW format keyword anyway.

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: WALWriter active during recovery
Next
From: Alvaro Herrera
Date:
Subject: Re: Patch to improve a few appendStringInfo* calls