1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-01 01:04:50 +03:00
Thomas Munro 88554c0911 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
2018-06-26 17:17:27 +12:00
..
2017-06-21 15:35:54 -04:00
2018-06-08 11:55:25 -04:00
2017-06-21 15:35:54 -04:00
2018-05-07 11:59:42 -04:00
2017-06-21 15:19:25 -04:00
2018-06-25 15:43:05 -04:00
2018-04-12 18:39:51 -04:00
2017-06-12 15:57:22 -04:00
2018-05-07 11:59:42 -04:00