aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-04-07 16:43:39 -0400
committerRobert Haas <rhaas@postgresql.org>2011-04-07 16:43:39 -0400
commit56c7140ca813ba4c7ecb122a1d2b1268e705d092 (patch)
tree423b2f82331a9d219a8cc5f9d32698ba6d628a23 /src/backend/access/gist
parent73d9a908140e709b4cb12a8d2257a11baaec974f (diff)
downloadpostgresql-56c7140ca813ba4c7ecb122a1d2b1268e705d092.tar.gz
postgresql-56c7140ca813ba4c7ecb122a1d2b1268e705d092.zip
Tweaks for SSI out-of-shared memory behavior.
If we call hash_search() with HASH_ENTER, it will bail out rather than return NULL, so it's redundant to check for NULL again in the caller. Thus, in cases where we believe it's impossible for the hash table to run out of slots anyway, we can simplify the code slightly. On the flip side, in cases where it's theoretically possible to run out of space, we don't want to rely on dynahash.c to throw an error; instead, we pass HASH_ENTER_NULL and throw the error ourselves if a NULL comes back, so that we can provide a more descriptive error message. Kevin Grittner
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions