Content-Length: 241857 | pFad | https://github.com/postgrespro/postgres/commit/92316a4582a5714d4e494aaf90360860e7fec37a

37 In pg_dump, use simplehash.h to look up dumpable objects by OID. · postgrespro/postgres@92316a4 · GitHub
Skip to content

Commit 92316a4

Browse files
committed
In pg_dump, use simplehash.h to look up dumpable objects by OID.
Create a hash table that indexes dumpable objects by CatalogId (that is, catalog OID + object OID). Use this to replace the former catalogIdMap array, as well as various other single- catalog index arrays, and also the extension membership map. In principle this should be faster for databases with many objects, since lookups are now O(1) not O(log N). However, it seems that these lookups are pretty much negligible in context, so that no overall performance change can be measured. But having only one lookup data structure to maintain makes the code simpler and more flexible, so let's do it anyway. Discussion: https://postgr.es/m/2595220.1634855245@sss.pgh.pa.us
1 parent 974aedc commit 92316a4

File tree

4 files changed

+209
-328
lines changed

4 files changed

+209
-328
lines changed

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres/commit/92316a4582a5714d4e494aaf90360860e7fec37a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy