summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-03-17 13:43:10 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-03-17 13:43:10 -0400
commit064709f803c05559d2849a62fdb855fbb91ffeb8 (patch)
tree63043222c82627c9eab57288b8e2284d74280397 /src/backend/access/gist/gist.c
parentbc8cd50fefd369b217f80078585c486505aafb62 (diff)
downloadpostgresql-064709f803c05559d2849a62fdb855fbb91ffeb8.tar.gz
Simplify and speed up pg_dump's creation of parent-table links.
Instead of trying to optimize this by skipping creation of the links for tables we don't plan to dump, just create them all in bulk with a single scan over the pg_inherits data. The previous approach was more or less O(N^2) in the number of pg_inherits entries, not to mention being way too complicated. Also, don't create useless TableAttachInfo objects. It's silly to create a TableAttachInfo object that we're not going to dump, when we know perfectly well at creation time that it won't be dumped. Patch by me; thanks to Julien Rouhaud for review. Discussion: https://postgr.es/m/1376149.1675268279@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions