Re: [GENERAL] ECPG and COPY

2006-09-12 Thread Florian Weimer
* Bruce Momjian: >> > Could you please explain what this has to do with my original question? >> >> I assumed that ECPG did something special with TO STDOUT, like other >> interfaces do. This is not the case (that is, STDOUT is really >> standard output, so the functionality is not very useful.

Re: [GENERAL] ECPG and COPY

2006-08-02 Thread Michael Meskes
On Wed, Aug 02, 2006 at 09:49:40AM -0400, Bruce Momjian wrote: > > I assumed that ECPG did something special with TO STDOUT, like other > > interfaces do. This is not the case (that is, STDOUT is really > > standard output, so the functionality is not very useful. > > I am confused. STDOUT is al

Re: [GENERAL] ECPG and COPY

2006-08-02 Thread Bruce Momjian
Florian Weimer wrote: > * Michael Meskes: > > > Could you please explain what this has to do with my original question? > > I assumed that ECPG did something special with TO STDOUT, like other > interfaces do. This is not the case (that is, STDOUT is really > standard output, so the functionalit

Re: [GENERAL] ECPG and COPY

2006-08-02 Thread Florian Weimer
* Michael Meskes: > Could you please explain what this has to do with my original question? I assumed that ECPG did something special with TO STDOUT, like other interfaces do. This is not the case (that is, STDOUT is really standard output, so the functionality is not very useful. -- Florian W

Re: [GENERAL] ECPG and COPY

2006-08-02 Thread Bruce Momjian
Michael Meskes wrote: > On Mon, Mar 06, 2006 at 10:15:06AM -0500, Bruce Momjian wrote: > > Added for ecpg TODO: > > > >o Add COPY TO STDIN / STDOUT handling > > COPY TO STDOUT has been implemented, but I'm unsure whether COPY FROM > STDIN really makes sense. Does anyone know a real life e

Re: [GENERAL] ECPG and COPY

2006-08-02 Thread Michael Meskes
On Wed, Aug 02, 2006 at 12:03:45PM +0200, Florian Weimer wrote: > * Michael Meskes: > > > COPY TO STDOUT has been implemented, but I'm unsure whether COPY FROM > > STDIN really makes sense. Does anyone know a real life example where > > this would be needed and the work couldn't be done easier usi

Re: [GENERAL] ECPG and COPY

2006-08-02 Thread Florian Weimer
* Michael Meskes: > COPY TO STDOUT has been implemented, but I'm unsure whether COPY FROM > STDIN really makes sense. Does anyone know a real life example where > this would be needed and the work couldn't be done easier using psql? COPY FROM STDIN saves lots of network round-trips. -- Florian

Re: [GENERAL] ECPG and COPY

2006-08-02 Thread Michael Meskes
On Mon, Mar 06, 2006 at 10:15:06AM -0500, Bruce Momjian wrote: > Added for ecpg TODO: > >o Add COPY TO STDIN / STDOUT handling COPY TO STDOUT has been implemented, but I'm unsure whether COPY FROM STDIN really makes sense. Does anyone know a real life example where this would be needed an

Re: [GENERAL] ECPG and COPY

2006-03-06 Thread Bruce Momjian
Michael Meskes wrote: > > > Yes, it's still an open report. Sorry, about that and all the other open > > > bug reports/feature requests. I do not have the time at the moment to > > > even reproduce bugs. Hopefully this will become better in the near > > > future. > > > > Should we add this to TODO?

Re: [GENERAL] ECPG and COPY and PQputCopyData - don't get errors

2006-02-26 Thread Wes
On 2/26/06 12:12 PM, "Tom Lane" <[EMAIL PROTECTED]> wrote: > That just indicates that the data was sent to the backend without error. > You forgot to check the copy command result afterward. Ok, after re-reading the docs for the 10th time, I see I missed that I need to paragraph about calling 'PQ

Re: [GENERAL] ECPG and COPY and PQputCopyData - don't get errors

2006-02-26 Thread Tom Lane
Wes <[EMAIL PROTECTED]> writes: > I sent the column headers as the first line of the input. While this I now > know this is wrong, the problem here is that I got no error response back. > ... > However, every call to PQputCopyData, as well as PQputCopyEnd returned a > result of 1. That just indic

Re: [GENERAL] ECPG and COPY

2006-02-26 Thread Michael Meskes
> > Yes, it's still an open report. Sorry, about that and all the other open > > bug reports/feature requests. I do not have the time at the moment to > > even reproduce bugs. Hopefully this will become better in the near > > future. > > Should we add this to TODO? Anything else? Yes, please add

Re: [GENERAL] ECPG and COPY

2006-02-24 Thread Bruce Momjian
Michael Meskes wrote: > Am Freitag, 24. Februar 2006 05:26 schrieb Wes: > > I found this in the archives: > > > > > > > > With 8.x, is it still true that with ECPG, it is not possible to use COPY > > inline - I'd have to write

Re: [GENERAL] ECPG and COPY

2006-02-24 Thread Michael Meskes
Am Freitag, 24. Februar 2006 05:26 schrieb Wes: > I found this in the archives: > > > > With 8.x, is it still true that with ECPG, it is not possible to use COPY > inline - I'd have to write the data to a file, then 'COPY FROM

Re: [GENERAL] ECPG and COPY

2006-02-23 Thread Michael Fuhr
On Thu, Feb 23, 2006 at 10:26:35PM -0600, Wes wrote: > I found this in the archives: > > > > With 8.x, is it still true that with ECPG, it is not possible to use COPY > inline - I'd have to write the data to a file, then 'CO