]> granicus.if.org Git - postgresql/commit
Fix CommandCounterIncrement in partition-related DDL
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 20 Mar 2018 14:19:41 +0000 (11:19 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 20 Mar 2018 14:19:41 +0000 (11:19 -0300)
commit4dba331cb3dc1b5ffb0680ed8efae847de216796
tree1d415d5c202c32c077e3f219c205cc83d8b35291
parent467963c3e9c5ba9a953959f8aebcdd7206188a18
Fix CommandCounterIncrement in partition-related DDL

It makes sense to do the CCIs in the places that do catalog updates,
rather than before the places that error out because the former ones
fail to do it.  In particular, it looks like StorePartitionBound() and
IndexSetParentIndex() ought to make their own CCIs.

Per review comments from Peter Eisentraut for row-level triggers on
partitioned tables.

Discussion: https://postgr.es/m/20171229225319.ajltgss2ojkfd3kp@alvherre.pgsql
src/backend/catalog/heap.c
src/backend/commands/indexcmds.c
src/backend/commands/tablecmds.c