aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-05-25 14:35:41 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-05-25 14:35:41 -0400
commit1a93588ffcad3e4876c9610c0a35d79c7fcdeffe (patch)
tree839e744d925a458f14331eea9d145369267e2fce /contrib/btree_gist/btree_gist.c
parent4615d2ca28fe9dff6e5ebaebd6caf190a0c78ba5 (diff)
downloadpostgresql-1a93588ffcad3e4876c9610c0a35d79c7fcdeffe.tar.gz
postgresql-1a93588ffcad3e4876c9610c0a35d79c7fcdeffe.zip
Use binary search instead of brute-force scan in findNamespace().
The previous coding presented a significant bottleneck when dumping databases containing many thousands of schemas, since the total time spent searching would increase roughly as O(N^2) in the number of objects. Noted by Jeff Janes, though I rewrote his proposed patch to use the existing findObjectByOid infrastructure. Since this is a longstanding performance bug, backpatch to all supported versions.
Diffstat (limited to 'contrib/btree_gist/btree_gist.c')
0 files changed, 0 insertions, 0 deletions