postgresql/src/include
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
..
access Need to decorate XactIsoLevel as PGDLLIMPORT for postgres_fdw. 2013-02-21 09:28:42 -05:00
bootstrap Update copyrights for 2013 2013-01-01 17:15:01 -05:00
catalog Move relpath() to libpgcommon 2013-02-21 22:46:17 -03:00
commands Add support for piping COPY to/from an external program. 2013-02-27 18:22:31 +02:00
common Move relpath() to libpgcommon 2013-02-21 22:46:17 -03:00
datatype Update copyrights for 2013 2013-01-01 17:15:01 -05:00
executor Fix plpgsql's reporting of plan-time errors in possibly-simple expressions. 2013-01-30 20:02:23 -05:00
foreign Update copyrights for 2013 2013-01-01 17:15:01 -05:00
lib Update copyrights for 2013 2013-01-01 17:15:01 -05:00
libpq Update copyrights for 2013 2013-01-01 17:15:01 -05:00
mb Add noreturn attributes to some error reporting functions 2013-02-12 07:13:22 -05:00
nodes Add support for piping COPY to/from an external program. 2013-02-27 18:22:31 +02:00
optimizer Update copyrights for 2013 2013-01-01 17:15:01 -05:00
parser Add support for piping COPY to/from an external program. 2013-02-27 18:22:31 +02:00
port Add URLs to document why DLLIMPORT is needed on Windows. 2012-11-07 15:01:25 -05:00
portability Update copyrights for 2013 2013-01-01 17:15:01 -05:00
postmaster Fix background workers for EXEC_BACKEND 2013-01-02 12:01:14 -03:00
regex Re-implement extraction of fixed prefixes from regular expressions. 2012-07-10 14:54:37 -04:00
replication Fix more issues with cascading replication and timeline switches. 2013-01-23 10:19:20 +02:00
rewrite Add support for ALTER RULE ... RENAME TO. 2013-02-08 23:58:40 -05:00
snowball Update copyrights for 2013 2013-01-01 17:15:01 -05:00
storage Add support for piping COPY to/from an external program. 2013-02-27 18:22:31 +02:00
tcop Add noreturn attributes to some error reporting functions 2013-02-12 07:13:22 -05:00
tsearch Update copyrights for 2013 2013-01-01 17:15:01 -05:00
utils Add pg_xlogdump contrib program 2013-02-22 16:56:55 -03:00
.gitignore Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
c.h Move ExceptionalCondition back to postgres.h 2013-02-18 18:53:32 -03:00
fmgr.h Add infrastructure for storing a VARIADIC ANY function's VARIADIC flag. 2013-01-21 20:26:15 -05:00
funcapi.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
getaddrinfo.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
getopt_long.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Makefile Install headers from the new src/include/common subdirectory. 2013-02-26 15:27:30 -05:00
miscadmin.h Make sure MaxBackends is always set 2013-01-02 14:39:11 -03:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.win32 Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_manual.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
pg_config.h.in Improve handling of ereport(ERROR) and elog(ERROR). 2013-01-13 18:40:09 -05:00
pg_config.h.win32 Improve handling of ereport(ERROR) and elog(ERROR). 2013-01-13 18:40:09 -05:00
pg_trace.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
pgstat.h Split pgstat file in smaller pieces 2013-02-18 18:12:52 -03:00
pgtar.h Move tar function headers to pgtar.h 2013-01-02 20:34:08 +01:00
pgtime.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
port.h Add support for piping COPY to/from an external program. 2013-02-27 18:22:31 +02:00
postgres_ext.h Provide database object names as separate fields in error messages. 2013-01-29 17:08:26 -05:00
postgres_fe.h Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
postgres.h Move ExceptionalCondition back to postgres.h 2013-02-18 18:53:32 -03:00
rusagestub.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
windowapi.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00