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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Support "COPY view FROM" for views with INSTEAD OF INSERT trigge
Date: 2016-11-10 19:13:49
Message-ID: E1c4unF-0001Zg-Jb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)mail(dot)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-11-10 20:01:18 pgsql: Re-allow user_catalog_table option for materialized views.
Previous Message Tom Lane 2016-11-10 16:32:03 pgsql: Fix partial aggregation for the case of a degenerate GROUP BY cl