pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Remove entry tree root conflict checking from GIN predicate lock 2+ messages / 1 participants [nested] [flat]
* pgsql: Remove entry tree root conflict checking from GIN predicate lock @ 2018-12-27 01:25 Alexander Korotkov <akorotkov@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Alexander Korotkov @ 2018-12-27 01:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Remove entry tree root conflict checking from GIN predicate locking According to README we acquire predicate locks on entry tree leafs and posting tree roots. However, when ginFindLeafPage() is going to lock leaf in exclusive mode, then it checks root for conflicts regardless whether it's a entry or posting tree. Assuming that we never place predicate lock on entry tree root (excluding corner case when root is leaf), this check is redundant. This commit removes this check. Now, root conflict checking is controlled by separate argument of ginFindLeafPage(). Discussion: https://postgr.es/m/CAPpHfdv7rrDyy%3DMgsaK-L9kk0AH7az0B-mdC3w3p0FSb9uoyEg%40mail.gmail.com Author: Alexander Korotkov Backpatch-through: 11 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/b450abd2551ee30b5bc289c662f5728d87e13a39 Modified Files -------------- src/backend/access/gin/ginbtree.c | 8 ++++++-- src/backend/access/gin/gindatapage.c | 4 ++-- src/backend/access/gin/ginget.c | 4 ++-- src/backend/access/gin/gininsert.c | 2 +- src/include/access/gin_private.h | 3 ++- 5 files changed, 13 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Remove entry tree root conflict checking from GIN predicate lock @ 2018-12-27 01:25 Alexander Korotkov <akorotkov@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Alexander Korotkov @ 2018-12-27 01:25 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Remove entry tree root conflict checking from GIN predicate locking According to README we acquire predicate locks on entry tree leafs and posting tree roots. However, when ginFindLeafPage() is going to lock leaf in exclusive mode, then it checks root for conflicts regardless whether it's a entry or posting tree. Assuming that we never place predicate lock on entry tree root (excluding corner case when root is leaf), this check is redundant. This commit removes this check. Now, root conflict checking is controlled by separate argument of ginFindLeafPage(). Discussion: https://postgr.es/m/CAPpHfdv7rrDyy%3DMgsaK-L9kk0AH7az0B-mdC3w3p0FSb9uoyEg%40mail.gmail.com Author: Alexander Korotkov Backpatch-through: 11 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/fd7c081955929df343318d6c5d32ea24a574aacf Modified Files -------------- src/backend/access/gin/ginbtree.c | 8 ++++++-- src/backend/access/gin/gindatapage.c | 4 ++-- src/backend/access/gin/ginget.c | 4 ++-- src/backend/access/gin/gininsert.c | 2 +- src/include/access/gin_private.h | 3 ++- 5 files changed, 13 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-12-27 01:25 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-12-27 01:25 pgsql: Remove entry tree root conflict checking from GIN predicate lock Alexander Korotkov <akorotkov@postgresql.org> 2018-12-27 01:25 pgsql: Remove entry tree root conflict checking from GIN predicate lock Alexander Korotkov <akorotkov@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