Implement '\copy from -' to support reading copy data from the same

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 04cc4e18dd34f3c301237e60058cc7a00bad41f4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-01-20T23:48:56Z
Releases: 8.0.0
Implement '\copy from -' to support reading copy data from the same
source the \copy came from.  Also, fix prompting logic so that initial
and per-line prompts appear for all cases of reading from an interactive
terminal.  Patch by Mark Feit, with some kibitzing by Tom Lane.

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +28 −12
src/bin/psql/common.c modified +2 −7
src/bin/psql/copy.c modified +36 −11
src/bin/psql/copy.h modified +2 −2