pgsql: Support "COPY view FROM" for views with INSTEAD OF INSERT trigge

Started by Tom Laneover 9 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Support "COPY view FROM" for views with INSTEAD OF INSERT triggers.

We just pass the data to the INSTEAD trigger.

Haribabu Kommi, reviewed by Dilip Kumar

Patch: <CAJrrPGcSQkrNkO+4PhLm4B8UQQQmU9YVUuqmtgM=pmzMfxWaWQ@mail.gmail.com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/279c439c7fbc1bcb52173d92dd3b1fbe63e497ab

Modified Files
--------------
doc/src/sgml/ref/copy.sgml | 10 +++-
src/backend/commands/copy.c | 104 +++++++++++++++++++++---------------
src/test/regress/expected/copy2.out | 26 +++++++++
src/test/regress/sql/copy2.sql | 29 ++++++++++
4 files changed, 125 insertions(+), 44 deletions(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers