pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Move RecoveryLockList into a hash table. 6+ messages / 1 participants [nested] [flat]
* pgsql: Move RecoveryLockList into a hash table. @ 2018-06-26 07:11 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2018-06-26 07:11 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Move RecoveryLockList into a hash table. @ 2018-06-26 07:11 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2018-06-26 07:11 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/88554c0911018c1c60423fbb60557626142dec10 Modified Files -------------- src/backend/storage/ipc/standby.c | 164 ++++++++++++++++++++------------------ 1 file changed, 87 insertions(+), 77 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Move RecoveryLockList into a hash table. @ 2018-06-26 07:11 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2018-06-26 07:11 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/35750a38b7ab6e30aa2ee6eb7765ebd2172dd7c5 Modified Files -------------- src/backend/storage/ipc/standby.c | 164 ++++++++++++++++++++------------------ 1 file changed, 87 insertions(+), 77 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Move RecoveryLockList into a hash table. @ 2018-06-26 07:12 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2018-06-26 07:12 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7bcda60d41cb920193e9d56a3b03583d7998c635 Modified Files -------------- src/backend/storage/ipc/standby.c | 164 ++++++++++++++++++++------------------ 1 file changed, 87 insertions(+), 77 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Move RecoveryLockList into a hash table. @ 2018-06-26 07:12 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2018-06-26 07:12 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c4ccbcc1a2a17d547537ccecd9e856cb083c2ff7 Modified Files -------------- src/backend/storage/ipc/standby.c | 165 ++++++++++++++++++++------------------ 1 file changed, 88 insertions(+), 77 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Move RecoveryLockList into a hash table. @ 2018-06-26 07:12 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2018-06-26 07:12 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/12f7d91994d15d362384be46eec92498bdc001c6 Modified Files -------------- src/backend/storage/ipc/standby.c | 165 ++++++++++++++++++++------------------ 1 file changed, 88 insertions(+), 77 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-06-26 07:12 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-06-26 07:11 pgsql: Move RecoveryLockList into a hash table. Thomas Munro <tmunro@postgresql.org> 2018-06-26 07:11 pgsql: Move RecoveryLockList into a hash table. Thomas Munro <tmunro@postgresql.org> 2018-06-26 07:11 pgsql: Move RecoveryLockList into a hash table. Thomas Munro <tmunro@postgresql.org> 2018-06-26 07:12 pgsql: Move RecoveryLockList into a hash table. Thomas Munro <tmunro@postgresql.org> 2018-06-26 07:12 pgsql: Move RecoveryLockList into a hash table. Thomas Munro <tmunro@postgresql.org> 2018-06-26 07:12 pgsql: Move RecoveryLockList into a hash table. Thomas Munro <tmunro@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox