]> granicus.if.org Git - postgresql/commit
Don't permit transition tables with TRUNCATE triggers.
authorRobert Haas <rhaas@postgresql.org>
Wed, 10 May 2017 03:22:39 +0000 (23:22 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 10 May 2017 03:24:23 +0000 (23:24 -0400)
commit29fd3d9da0ff9e230ff051c1423871bd6eac377d
treeaaf084a7b671ca86e9587c69810def8949054276
parent304007d9f1f66fd37e50e5a5aa6f17400f1239f8
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
src/backend/commands/trigger.c
src/test/regress/expected/plpgsql.out
src/test/regress/sql/plpgsql.sql