OSDN Git Service

Adjust setRelhassubclassInRelation() to not perform actual heap_update
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Oct 2003 20:02:52 +0000 (20:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Oct 2003 20:02:52 +0000 (20:02 +0000)
commite7261c46aa5df5cfc03e5ca4091d3b9bd675c824
tree8da55926251947b4b01a3720683db4f4c730eb06
parent4a2c34d4a035e59be8d4a8eaaa093e701dbef370
Adjust setRelhassubclassInRelation() to not perform actual heap_update
when the pg_class.relhassubclass value is already correct.  This should
avoid most cases of the 'tuple concurrently updated' problem that
Robert Creager recently complained about.  Also remove a bunch of dead
code in StoreCatalogInheritance() --- it was still computing the complete
list of direct and indirect inheritance ancestors, though that list has
not been needed since we got rid of the pg_ipl catalog.
src/backend/commands/tablecmds.c