summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/datetime.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-05-25 14:35:59 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-05-25 14:35:59 -0400
commitbd43c50a5bd560224f996d6bd14e1e3cb5a5b06b (patch)
treed1a06f2ef920195c51dcefbd13f4bdd53a10545a /src/backend/utils/adt/datetime.c
parentc994b9211fd0cf7a5b680ae115330117604b9f7c (diff)
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 'src/backend/utils/adt/datetime.c')
0 files changed, 0 insertions, 0 deletions