summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/expected/preproc-outofscope.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2018-06-26 18:23:36 +1200
committerThomas Munro <tmunro@postgresql.org>2018-06-26 18:23:36 +1200
commitc4ccbcc1a2a17d547537ccecd9e856cb083c2ff7 (patch)
tree57307dd51734af41db3416466d7d94ba280f985b /src/interfaces/ecpg/test/expected/preproc-outofscope.c
parent79b5b101f99238a3f3cac84e6323895db41d8410 (diff)
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 'src/interfaces/ecpg/test/expected/preproc-outofscope.c')
0 files changed, 0 insertions, 0 deletions