Implement '\copy from -' to support reading copy data from the same
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |