Re: Allow COPY from STDIN to absorb all input before throwing an error

Neil Conway <neilc@samurai.com>

From: Neil Conway <neilc@samurai.com>
To: Decibel! <decibel@decibel.org>
Cc: PostgreSQL-development Hackers <pgsql-hackers@postgresql.org>
Date: 2008-04-08T20:50:20Z
Lists: pgsql-hackers
On Tue, 2008-04-08 at 15:26 -0500, Decibel! wrote:
> My idea to avoid this situation is to add an option to COPY that  
> tells it not to throw an error until it runs out of input data.

An alternative would be to have the client continue reading (and
discarding) COPY input until the end-of-COPY-input sequence is reached,
and then switch back into normal input processing mode.

-Neil