aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-12-16 21:44:26 -0500
committerRobert Haas <rhaas@postgresql.org>2011-12-16 21:48:47 -0500
commit0d76b60db4684d3487223b003833828fe9655fe2 (patch)
treedcc31473e3337aea78d31c0c7f4edb42041a3adb /src/backend/access/spgist
parenta4cd6abcc901c1a8009c62a27f78696717bb8fe1 (diff)
downloadpostgresql-0d76b60db4684d3487223b003833828fe9655fe2.tar.gz
postgresql-0d76b60db4684d3487223b003833828fe9655fe2.zip
Various micro-optimizations for GetSnapshopData().
Heikki Linnakangas had the idea of rearranging GetSnapshotData to avoid checking for sub-XIDs when no top-level XID is present. This patch does that plus further a bit of further, related rearrangement. Benchmarking show a significant improvement on unlogged tables at higher concurrency levels, and mostly indifferent result on permanent tables (which are presumably bottlenecked elsewhere). Most of the benefit seems to come from using the new NormalTransactionIdPrecedes() macro rather than the function call TransactionIdPrecedes().
Diffstat (limited to 'src/backend/access/spgist')
0 files changed, 0 insertions, 0 deletions