pgsql: Move RecoveryLockList into a hash table.

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема pgsql: Move RecoveryLockList into a hash table.
Дата
Msg-id E1fXi8A-0004vQ-JI@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a40cff8956e842f737739d93a7b160f0b4a03d13

Modified Files
--------------
src/backend/storage/ipc/standby.c | 175 ++++++++++++++++++++------------------
1 file changed, 92 insertions(+), 83 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix description and documentation related to pg_restore--no-com
Следующее
От: Thomas Munro
Дата:
Сообщение: pgsql: Move RecoveryLockList into a hash table.