aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.h
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2018-06-26 17:17:27 +1200
committerThomas Munro <tmunro@postgresql.org>2018-06-26 17:17:27 +1200
commit88554c0911018c1c60423fbb60557626142dec10 (patch)
tree6234801915365d63c883f80cf33b31b8f817d56e /contrib/postgres_fdw/postgres_fdw.h
parent324076a6261756d6f5b3514ed2b2f715b656ba90 (diff)
downloadpostgresql-88554c0911018c1c60423fbb60557626142dec10.tar.gz
postgresql-88554c0911018c1c60423fbb60557626142dec10.zip
Move RecoveryLockList into a hash table.
Standbys frequently need to release all locks held by a given xid. Instead of searching one big list linearly, let's create one list per xid and put them in a hash table, so we can find what we need in O(1) time. Earlier analysis and a prototype were done by David Rowley, though this isn't his patch. Back-patch all the way. Author: Thomas Munro Diagnosed-by: David Rowley, Andres Freund Reviewed-by: Andres Freund, Tom Lane, Robert Haas Discussion: https://postgr.es/m/CAEepm%3D1mL0KiQ2KJ4yuPpLGX94a4Ns_W6TL4EGRouxWibu56pA%40mail.gmail.com Discussion: https://postgr.es/m/CAKJS1f9vJ841HY%3DwonnLVbfkTWGYWdPN72VMxnArcGCjF3SywA%40mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions