From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | jim(at)nasby(dot)net |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Status during copy [patch] |
Date: | 2003-06-06 19:47:12 |
Message-ID: | 200306061947.h56JlCt09394@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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 <pgman(at)candle(dot)pha(dot)pa(dot)us> 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!) jim(at)nasby(dot)net
> 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
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | The Hermit Hacker | 2003-06-06 20:07:10 | Re: [GENERAL] Anonymous CVS access |
Previous Message | Peter Eisentraut | 2003-06-06 19:21:05 | Groups and roles |