pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Prohibit shutting down resources if there is a possibility of ba
4+ messages / 1 participants
[nested] [flat]

* pgsql: Prohibit shutting down resources if there is a possibility of ba
@ 2018-08-13 03:30  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-08-13 03:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prohibit shutting down resources if there is a possibility of back up.

Currently, we release the asynchronous resources as soon as it is evident
that no more rows will be needed e.g. when a Limit is filled.  This can be
problematic especially for custom and foreign scans where we can scan
backward.  Fix that by disallowing the shutting down of resources in such
cases.

Reported-by: Robert Haas
Analysed-by: Robert Haas and Amit Kapila
Author: Amit Kapila
Reviewed-by: Robert Haas
Backpatch-through: 9.6 where this code was introduced
Discussion: https://postgr.es/m/86137f17-1dfb-42f9-7421-82fd786b04a1@anayrat.info

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/69de17186ad9d668bc0500595b47d9a24def238f

Modified Files
--------------
src/backend/executor/execMain.c  |  8 ++++++--
src/backend/executor/nodeLimit.c | 10 ++++++++--
2 files changed, 14 insertions(+), 4 deletions(-)



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

* pgsql: Prohibit shutting down resources if there is a possibility of ba
@ 2018-08-13 03:30  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-08-13 03:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prohibit shutting down resources if there is a possibility of back up.

Currently, we release the asynchronous resources as soon as it is evident
that no more rows will be needed e.g. when a Limit is filled.  This can be
problematic especially for custom and foreign scans where we can scan
backward.  Fix that by disallowing the shutting down of resources in such
cases.

Reported-by: Robert Haas
Analysed-by: Robert Haas and Amit Kapila
Author: Amit Kapila
Reviewed-by: Robert Haas
Backpatch-through: 9.6 where this code was introduced
Discussion: https://postgr.es/m/86137f17-1dfb-42f9-7421-82fd786b04a1@anayrat.info

Branch
------
REL_11_STABLE

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

Modified Files
--------------
src/backend/executor/execMain.c  | 16 ++++++++++++----
src/backend/executor/nodeLimit.c | 10 ++++++++--
2 files changed, 20 insertions(+), 6 deletions(-)



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

* pgsql: Prohibit shutting down resources if there is a possibility of ba
@ 2018-08-13 03:30  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-08-13 03:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prohibit shutting down resources if there is a possibility of back up.

Currently, we release the asynchronous resources as soon as it is evident
that no more rows will be needed e.g. when a Limit is filled.  This can be
problematic especially for custom and foreign scans where we can scan
backward.  Fix that by disallowing the shutting down of resources in such
cases.

Reported-by: Robert Haas
Analysed-by: Robert Haas and Amit Kapila
Author: Amit Kapila
Reviewed-by: Robert Haas
Backpatch-through: 9.6 where this code was introduced
Discussion: https://postgr.es/m/86137f17-1dfb-42f9-7421-82fd786b04a1@anayrat.info

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2cd0acfdade82f3cab362fd9129d453f81cc2745

Modified Files
--------------
src/backend/executor/execMain.c  | 16 ++++++++++++----
src/backend/executor/nodeLimit.c | 10 ++++++++--
2 files changed, 20 insertions(+), 6 deletions(-)



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

* pgsql: Prohibit shutting down resources if there is a possibility of ba
@ 2018-08-13 03:30  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-08-13 03:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Prohibit shutting down resources if there is a possibility of back up.

Currently, we release the asynchronous resources as soon as it is evident
that no more rows will be needed e.g. when a Limit is filled.  This can be
problematic especially for custom and foreign scans where we can scan
backward.  Fix that by disallowing the shutting down of resources in such
cases.

Reported-by: Robert Haas
Analysed-by: Robert Haas and Amit Kapila
Author: Amit Kapila
Reviewed-by: Robert Haas
Backpatch-through: 9.6 where this code was introduced
Discussion: https://postgr.es/m/86137f17-1dfb-42f9-7421-82fd786b04a1@anayrat.info

Branch
------
REL_10_STABLE

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

Modified Files
--------------
src/backend/executor/execMain.c  | 16 ++++++++++++----
src/backend/executor/nodeLimit.c | 10 ++++++++--
2 files changed, 20 insertions(+), 6 deletions(-)



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


end of thread, other threads:[~2018-08-13 03:30 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-13 03:30 pgsql: Prohibit shutting down resources if there is a possibility of ba Amit Kapila <akapila@postgresql.org>
2018-08-13 03:30 pgsql: Prohibit shutting down resources if there is a possibility of ba Amit Kapila <akapila@postgresql.org>
2018-08-13 03:30 pgsql: Prohibit shutting down resources if there is a possibility of ba Amit Kapila <akapila@postgresql.org>
2018-08-13 03:30 pgsql: Prohibit shutting down resources if there is a possibility of ba 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