Fix CommandCounterIncrement in partition-related DDL
Alvaro Herrera <alvherre@alvh.no-ip.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/heap.c | modified | +3 −0 |
| src/backend/commands/indexcmds.c | modified | +3 −0 |
| src/backend/commands/tablecmds.c | modified | +0 −9 |
Discussion
- FOR EACH ROW triggers on partitioned tables 39 messages · 2017-12-29 → 2018-05-01