Re: Extending COPY TO - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Extending COPY TO
Date
Msg-id 54229A29.9070908@vmware.com
Whole thread Raw
In response to Re: Extending COPY TO  (Andrea Riciputi <andrea.riciputi@gmail.com>)
List pgsql-hackers
On 09/24/2014 09:23 AM, Andrea Riciputi wrote:
> Imagine you access PG from an application written in the language X
> using a driver library, both your application and your PG instance
> run on two different hosts.

In that scenario, you'll be using the PQgetCopyData function to get the 
data. PQgetCopyData returns one row at a time; the application can 
trivially change the line-ending to whatever it wants, when writing the 
output to a file or wherever it goes.

> As I wrote before, despite being an heavy PG user, it’s my first time
> on the hackers ML and I don’t want to seem disrespectful of the
> community.

No worries; thanks for effort, even if this idea doesn't pan out.

- Heikki




pgsql-hackers by date:

Previous
From: Dilip kumar
Date:
Subject: Re: TODO : Allow parallel cores to be used by vacuumdb [ WIP ]
Next
From: Heikki Linnakangas
Date:
Subject: Re: add modulo (%) operator to pgbench