Re: COPY to/from non-local file - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: COPY to/from non-local file
Date
Msg-id 20070627192548.GE22179@svana.org
Whole thread Raw
In response to Re: COPY to/from non-local file  (Jaime Silvela <JSilvela@Bear.com>)
Responses Re: COPY to/from non-local file  (Jaime Silvela <JSilvela@Bear.com>)
List pgsql-general
On Wed, Jun 27, 2007 at 02:54:05PM -0400, Jaime Silvela wrote:
> The problem is that the getline/readline interface, which does exist for
> Ruby, doesn't seem to work so well, and anyway operates line by line; I
> would have preferred to just hand a file descriptor and be done with it.

Hrm, in what sense doesn't it work well? Line-by-line means
record-by-record. And writing a function to take an fd and do the work
would be straightforward, or do you mean something else?

Do you have any suggestions for improvement?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: timestamp wiht time zone
Next
From: CG
Date:
Subject: Re: How do you handle shared memory corruption issues? (contrib/xml2)