pgsql: COPY (INSERT/UPDATE/DELETE .. RETURNING ..)

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: COPY (INSERT/UPDATE/DELETE .. RETURNING ..)
Date: 2015-11-27 16:13:19
Message-ID: E1a2LeB-0002az-Gh@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

COPY (INSERT/UPDATE/DELETE .. RETURNING ..)

Attached is a patch for being able to do COPY (query) without a CTE.

Author: Marko Tiikkaja
Review: Michael Paquier

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/92e38182d7c8947a4ebbc1123b44f1245e232e85

Modified Files
--------------
doc/src/sgml/ref/copy.sgml | 15 +++--
src/backend/commands/copy.c | 59 ++++++++++++++---
src/backend/parser/gram.y | 19 +++---
src/bin/psql/copy.c | 6 +-
src/include/nodes/parsenodes.h | 3 +-
src/test/regress/expected/copydml.out | 112 +++++++++++++++++++++++++++++++++
src/test/regress/parallel_schedule | 2 +-
src/test/regress/serial_schedule | 1 +
src/test/regress/sql/copydml.sql | 91 +++++++++++++++++++++++++++
9 files changed, 284 insertions(+), 24 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-11-27 19:14:04 pgsql: Improve PQhost() to return useful data for default Unix-socket c
Previous Message Tom Lane 2015-11-26 18:23:27 pgsql: Fix failure to consider failure cases in GetComboCommandId().