pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Update parallel BTree scan state when the scan keys can't be sat
5+ messages / 1 participants
[nested] [flat]

* pgsql: Update parallel BTree scan state when the scan keys can't be sat
@ 2020-09-17 10:52  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Amit Kapila @ 2020-09-17 10:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Update parallel BTree scan state when the scan keys can't be satisfied.

For parallel btree scan to work for array of scan keys, it should reach
BTPARALLEL_DONE state once for every distinct combination of array keys.
This is required to ensure that the parallel workers don't try to seize
blocks at the same time for different scan keys. We missed to update this
state when we discovered that the scan keys can't be satisfied.

Author: James Hunter
Reviewed-by: Amit Kapila
Tested-by: Justin Pryzby
Backpatch-through: 10, where it was introduced
Discussion: https://postgr.es/m/4248CABC-25E3-4809-B4D0-128E1BAABC3C@amazon.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4bc63462d9d8dd12a5564c3d4ca06c99449d2d07

Modified Files
--------------
src/backend/access/nbtree/nbtsearch.c | 4 ++++
1 file changed, 4 insertions(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Update parallel BTree scan state when the scan keys can't be sat
@ 2020-09-17 10:52  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Amit Kapila @ 2020-09-17 10:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Update parallel BTree scan state when the scan keys can't be satisfied.

For parallel btree scan to work for array of scan keys, it should reach
BTPARALLEL_DONE state once for every distinct combination of array keys.
This is required to ensure that the parallel workers don't try to seize
blocks at the same time for different scan keys. We missed to update this
state when we discovered that the scan keys can't be satisfied.

Author: James Hunter
Reviewed-by: Amit Kapila
Tested-by: Justin Pryzby
Backpatch-through: 10, where it was introduced
Discussion: https://postgr.es/m/4248CABC-25E3-4809-B4D0-128E1BAABC3C@amazon.com

Branch
------
REL_10_STABLE

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

Modified Files
--------------
src/backend/access/nbtree/nbtsearch.c | 4 ++++
1 file changed, 4 insertions(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Update parallel BTree scan state when the scan keys can't be sat
@ 2020-09-17 10:52  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Amit Kapila @ 2020-09-17 10:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Update parallel BTree scan state when the scan keys can't be satisfied.

For parallel btree scan to work for array of scan keys, it should reach
BTPARALLEL_DONE state once for every distinct combination of array keys.
This is required to ensure that the parallel workers don't try to seize
blocks at the same time for different scan keys. We missed to update this
state when we discovered that the scan keys can't be satisfied.

Author: James Hunter
Reviewed-by: Amit Kapila
Tested-by: Justin Pryzby
Backpatch-through: 10, where it was introduced
Discussion: https://postgr.es/m/4248CABC-25E3-4809-B4D0-128E1BAABC3C@amazon.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0abd9cd2f3a1cad201ca28767aa0a720cc341179

Modified Files
--------------
src/backend/access/nbtree/nbtsearch.c | 4 ++++
1 file changed, 4 insertions(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Update parallel BTree scan state when the scan keys can't be sat
@ 2020-09-17 10:52  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Amit Kapila @ 2020-09-17 10:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Update parallel BTree scan state when the scan keys can't be satisfied.

For parallel btree scan to work for array of scan keys, it should reach
BTPARALLEL_DONE state once for every distinct combination of array keys.
This is required to ensure that the parallel workers don't try to seize
blocks at the same time for different scan keys. We missed to update this
state when we discovered that the scan keys can't be satisfied.

Author: James Hunter
Reviewed-by: Amit Kapila
Tested-by: Justin Pryzby
Backpatch-through: 10, where it was introduced
Discussion: https://postgr.es/m/4248CABC-25E3-4809-B4D0-128E1BAABC3C@amazon.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/956891faba7d3036907922266f19a9fb7140363d

Modified Files
--------------
src/backend/access/nbtree/nbtsearch.c | 4 ++++
1 file changed, 4 insertions(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Update parallel BTree scan state when the scan keys can't be sat
@ 2020-09-17 10:52  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Amit Kapila @ 2020-09-17 10:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Update parallel BTree scan state when the scan keys can't be satisfied.

For parallel btree scan to work for array of scan keys, it should reach
BTPARALLEL_DONE state once for every distinct combination of array keys.
This is required to ensure that the parallel workers don't try to seize
blocks at the same time for different scan keys. We missed to update this
state when we discovered that the scan keys can't be satisfied.

Author: James Hunter
Reviewed-by: Amit Kapila
Tested-by: Justin Pryzby
Backpatch-through: 10, where it was introduced
Discussion: https://postgr.es/m/4248CABC-25E3-4809-B4D0-128E1BAABC3C@amazon.com

Branch
------
master

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

Modified Files
--------------
src/backend/access/nbtree/nbtsearch.c | 4 ++++
1 file changed, 4 insertions(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2020-09-17 10:52 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 10:52 pgsql: Update parallel BTree scan state when the scan keys can't be sat Amit Kapila <akapila@postgresql.org>
2020-09-17 10:52 pgsql: Update parallel BTree scan state when the scan keys can't be sat Amit Kapila <akapila@postgresql.org>
2020-09-17 10:52 pgsql: Update parallel BTree scan state when the scan keys can't be sat Amit Kapila <akapila@postgresql.org>
2020-09-17 10:52 pgsql: Update parallel BTree scan state when the scan keys can't be sat Amit Kapila <akapila@postgresql.org>
2020-09-17 10:52 pgsql: Update parallel BTree scan state when the scan keys can't be sat Amit Kapila <akapila@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