postgresql/src/interfaces/ecpg
Heikki Linnakangas 3d009e45bd Add support for piping COPY to/from an external program.
This includes backend "COPY TO/FROM PROGRAM '...'" syntax, and corresponding
psql \copy syntax. Like with reading/writing files, the backend version is
superuser-only, and in the psql version, the program is run in the client.

In the passing, the psql \copy STDIN/STDOUT syntax is subtly changed: if you
the stdin/stdout is quoted, it's now interpreted as a filename. For example,
"\copy foo from 'stdin'" now reads from a file called 'stdin', not from
standard input. Before this, there was no way to specify a filename called
stdin, stdout, pstdin or pstdout.

This creates a new function in pgport, wait_result_to_str(), which can
be used to convert the exit status of a process, as returned by wait(3),
to a human-readable string.

Etsuro Fujita, reviewed by Amit Kapila.
2013-02-27 18:22:31 +02:00
..
compatlib Update copyrights for 2013 2013-01-01 17:15:01 -05:00
ecpglib Made ecpglib use translated messages. 2013-01-27 13:48:12 +01:00
include Mark variables as const in pgtypeslib if they only carry a format string. 2011-12-18 19:04:19 +01:00
pgtypeslib Update copyrights for 2013 2013-01-01 17:15:01 -05:00
preproc Add support for piping COPY to/from an external program. 2013-02-27 18:22:31 +02:00
test Extend and improve use of EXTRA_REGRESS_OPTS. 2013-01-12 08:28:58 -05:00
Makefile Suppress parallel build in interfaces/ecpg/preproc/. 2012-11-28 22:19:46 -05:00
README.dynSQL Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00

src/interfaces/ecpg/README.dynSQL

descriptor statements have the following shortcomings

- input descriptors (USING DESCRIPTOR <name>) are not supported

  Reason: to fully support dynamic SQL the frontend/backend communication
  	should change to recognize input parameters.
  	Since this is not likely to happen in the near future and you
  	can cover the same functionality with the existing infrastructure
  	(using s[n]printf), I'll leave the work to someone else.