Added to TODO: o Have COPY return number of rows loaded/unloaded
This is a backend change to return the number of rows affected as part of the command status string returned, like we do with UPDATE/INSERT/DELETE. --------------------------------------------------------------------------- Jim C. Nasby wrote: > On Mon, Jun 02, 2003 at 03:23:26PM -0400, Tom Lane wrote: > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > How do people feel about this patch? Currently COPY doesn't even return > > > a line count of the number of lines processed, while this patch would > > > make psql \copy produce date/time and count every 1000 rows, then print > > > a similar completion message. > > > > Seems much too noisy for me. That would be appropriate behavior in a > > GUI, but psql is not and never will be a GUI. Martijn's concern about > > hacking the behavior depending on where stderr points demonstrates > > exactly why we don't want to do this. > > What about an option to enable it? Or a command to find out how many > rows a running copy command has imported? It would be very handy to be > able to know how far along a large copy operation is. > -- > Jim C. Nasby (aka Decibel!) [EMAIL PROTECTED] > Member: Triangle Fraternity, Sports Car Club of America > Give your computer some brain candy! www.distributed.net Team #1828 > > Windows: "Where do you want to go today?" > Linux: "Where do you want to go tomorrow?" > FreeBSD: "Are you guys coming, or what?" > -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]