]> granicus.if.org Git - postgresql/commit
Invalid parent's relcache after CREATE TABLE .. PARTITION OF.
authorRobert Haas <rhaas@postgresql.org>
Tue, 20 Dec 2016 03:53:30 +0000 (22:53 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 20 Dec 2016 03:53:30 +0000 (22:53 -0500)
commit7cd0fd655d681e0ed5f7269fa421d977f1df0889
tree34487d830afb8717502aa5b2eb6242a1545ab291
parente13029a5ce353574516c64fd1ec9c50201e705fd
Invalid parent's relcache after CREATE TABLE .. PARTITION OF.

Otherwise, subsequent commands in the same transaction see the wrong
partition descriptor.

Amit Langote.  Reported by Tomas Vondra and David Fetter.  Reviewed
by me.

Discussion: http://postgr.es/m/22dd313b-d7fd-22b5-0787-654845c8f849%402ndquadrant.com
Discussion: http://postgr.es/m/20161215090916.GB20659%40fetter.org
src/backend/catalog/heap.c
src/backend/commands/tablecmds.c
src/include/catalog/heap.h