pgsql: Don't permit transition tables with TRUNCATE triggers.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't permit transition tables with TRUNCATE triggers.
Date: 2017-05-10 03:26:32
Message-ID: E1d8IGm-0004af-Vh@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't permit transition tables with TRUNCATE triggers.

Prior to this prohibition, such a trigger caused a crash.

Thomas Munro, per a report from Neha Sharma. I added a
regression test.

Discussion: http://postgr.es/m/CAEepm=0VR5W-N38eTkO_FqJbGqQ_ykbBRmzmvHyxDhy1p=0Csw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/29fd3d9da0ff9e230ff051c1423871bd6eac377d

Modified Files
--------------
src/backend/commands/trigger.c | 5 +++++
src/test/regress/expected/plpgsql.out | 8 ++++++++
src/test/regress/sql/plpgsql.sql | 8 ++++++++
3 files changed, 21 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-05-10 03:35:15 pgsql: Prohibit transition tables on views and foreign tables.
Previous Message Robert Haas 2017-05-10 03:18:15 pgsql: Pass EXEC_FLAG_REWIND when initializing a tuplestore scan.