pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Properly check index mark/restore in ExecSupportsMarkRestore.
7+ messages / 1 participants
[nested] [flat]

* pgsql: Properly check index mark/restore in ExecSupportsMarkRestore.
@ 2020-11-24 22:03 Andrew Gierth <rhodiumtoad@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Andrew Gierth @ 2020-11-24 22:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Properly check index mark/restore in ExecSupportsMarkRestore.

Previously this code assumed that all IndexScan nodes supported
mark/restore, which is not true since it depends on optional index AM
support functions. This could lead to errors about missing support
functions in rare edge cases of mergejoins with no sort keys, where an
unordered non-btree index scan was placed on the inner path without a
protecting Materialize node. (Normally, the fact that merge join
requires ordered input would avoid this error.)

Backpatch all the way since this bug is ancient.

Per report from Eugen Konkov on irc.

Discussion: https://postgr.es/m/87o8jn50be.fsf@news-spur.riddles.org.uk

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/660b89928d18386de7755565c008439ae75d1218

Modified Files
--------------
src/backend/executor/execAmi.c       | 5 +++++
src/backend/optimizer/util/plancat.c | 2 ++
src/include/nodes/pathnodes.h        | 1 +
3 files changed, 8 insertions(+)



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

* pgsql: Properly check index mark/restore in ExecSupportsMarkRestore.
@ 2020-11-24 22:03 Andrew Gierth <rhodiumtoad@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Andrew Gierth @ 2020-11-24 22:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Properly check index mark/restore in ExecSupportsMarkRestore.

Previously this code assumed that all IndexScan nodes supported
mark/restore, which is not true since it depends on optional index AM
support functions. This could lead to errors about missing support
functions in rare edge cases of mergejoins with no sort keys, where an
unordered non-btree index scan was placed on the inner path without a
protecting Materialize node. (Normally, the fact that merge join
requires ordered input would avoid this error.)

Backpatch all the way since this bug is ancient.

Per report from Eugen Konkov on irc.

Discussion: https://postgr.es/m/87o8jn50be.fsf@news-spur.riddles.org.uk

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6dda057043df4a56683e8fa31a74737b63da4c47

Modified Files
--------------
src/backend/executor/execAmi.c       | 5 +++++
src/backend/optimizer/util/plancat.c | 2 ++
src/include/nodes/pathnodes.h        | 1 +
3 files changed, 8 insertions(+)



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

* pgsql: Properly check index mark/restore in ExecSupportsMarkRestore.
@ 2020-11-24 22:03 Andrew Gierth <rhodiumtoad@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Andrew Gierth @ 2020-11-24 22:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Properly check index mark/restore in ExecSupportsMarkRestore.

Previously this code assumed that all IndexScan nodes supported
mark/restore, which is not true since it depends on optional index AM
support functions. This could lead to errors about missing support
functions in rare edge cases of mergejoins with no sort keys, where an
unordered non-btree index scan was placed on the inner path without a
protecting Materialize node. (Normally, the fact that merge join
requires ordered input would avoid this error.)

Backpatch all the way since this bug is ancient.

Per report from Eugen Konkov on irc.

Discussion: https://postgr.es/m/87o8jn50be.fsf@news-spur.riddles.org.uk

Branch
------
REL_12_STABLE

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

Modified Files
--------------
src/backend/executor/execAmi.c       | 5 +++++
src/backend/optimizer/util/plancat.c | 2 ++
src/include/nodes/pathnodes.h        | 1 +
3 files changed, 8 insertions(+)



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

* pgsql: Properly check index mark/restore in ExecSupportsMarkRestore.
@ 2020-11-24 22:03 Andrew Gierth <rhodiumtoad@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Andrew Gierth @ 2020-11-24 22:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Properly check index mark/restore in ExecSupportsMarkRestore.

Previously this code assumed that all IndexScan nodes supported
mark/restore, which is not true since it depends on optional index AM
support functions. This could lead to errors about missing support
functions in rare edge cases of mergejoins with no sort keys, where an
unordered non-btree index scan was placed on the inner path without a
protecting Materialize node. (Normally, the fact that merge join
requires ordered input would avoid this error.)

Backpatch all the way since this bug is ancient.

Per report from Eugen Konkov on irc.

Discussion: https://postgr.es/m/87o8jn50be.fsf@news-spur.riddles.org.uk

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/018e7d98dc157265efc4121e2b5971c0a2afcbe1

Modified Files
--------------
src/backend/executor/execAmi.c       | 5 +++++
src/backend/optimizer/util/plancat.c | 2 ++
src/include/nodes/relation.h         | 1 +
3 files changed, 8 insertions(+)



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

* pgsql: Properly check index mark/restore in ExecSupportsMarkRestore.
@ 2020-11-24 22:03 Andrew Gierth <rhodiumtoad@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Andrew Gierth @ 2020-11-24 22:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Properly check index mark/restore in ExecSupportsMarkRestore.

Previously this code assumed that all IndexScan nodes supported
mark/restore, which is not true since it depends on optional index AM
support functions. This could lead to errors about missing support
functions in rare edge cases of mergejoins with no sort keys, where an
unordered non-btree index scan was placed on the inner path without a
protecting Materialize node. (Normally, the fact that merge join
requires ordered input would avoid this error.)

Backpatch all the way since this bug is ancient.

Per report from Eugen Konkov on irc.

Discussion: https://postgr.es/m/87o8jn50be.fsf@news-spur.riddles.org.uk

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/321c87e5ca1a8a766a55ec4201099a37b9b0c68b

Modified Files
--------------
src/backend/executor/execAmi.c       | 5 +++++
src/backend/optimizer/util/plancat.c | 2 ++
src/include/nodes/relation.h         | 1 +
3 files changed, 8 insertions(+)



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

* pgsql: Properly check index mark/restore in ExecSupportsMarkRestore.
@ 2020-11-24 22:03 Andrew Gierth <rhodiumtoad@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Andrew Gierth @ 2020-11-24 22:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Properly check index mark/restore in ExecSupportsMarkRestore.

Previously this code assumed that all IndexScan nodes supported
mark/restore, which is not true since it depends on optional index AM
support functions. This could lead to errors about missing support
functions in rare edge cases of mergejoins with no sort keys, where an
unordered non-btree index scan was placed on the inner path without a
protecting Materialize node. (Normally, the fact that merge join
requires ordered input would avoid this error.)

Backpatch all the way since this bug is ancient.

Per report from Eugen Konkov on irc.

Discussion: https://postgr.es/m/87o8jn50be.fsf@news-spur.riddles.org.uk

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6402afd9865e3218b1f3835108a1e156157b6e08

Modified Files
--------------
src/backend/executor/execAmi.c       | 5 +++++
src/backend/optimizer/util/plancat.c | 2 ++
src/include/nodes/relation.h         | 1 +
3 files changed, 8 insertions(+)



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

* pgsql: Properly check index mark/restore in ExecSupportsMarkRestore.
@ 2020-11-24 22:03 Andrew Gierth <rhodiumtoad@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Andrew Gierth @ 2020-11-24 22:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Properly check index mark/restore in ExecSupportsMarkRestore.

Previously this code assumed that all IndexScan nodes supported
mark/restore, which is not true since it depends on optional index AM
support functions. This could lead to errors about missing support
functions in rare edge cases of mergejoins with no sort keys, where an
unordered non-btree index scan was placed on the inner path without a
protecting Materialize node. (Normally, the fact that merge join
requires ordered input would avoid this error.)

Backpatch all the way since this bug is ancient.

Per report from Eugen Konkov on irc.

Discussion: https://postgr.es/m/87o8jn50be.fsf@news-spur.riddles.org.uk

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/59ed45e278b78dbfae1b02ad90eee3d01ddec929

Modified Files
--------------
src/backend/executor/execAmi.c       | 5 +++++
src/backend/optimizer/util/plancat.c | 1 +
src/include/nodes/relation.h         | 1 +
3 files changed, 7 insertions(+)



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


end of thread, other threads:[~2020-11-24 22:03 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 22:03 pgsql: Properly check index mark/restore in ExecSupportsMarkRestore. Andrew Gierth <rhodiumtoad@postgresql.org>
2020-11-24 22:03 pgsql: Properly check index mark/restore in ExecSupportsMarkRestore. Andrew Gierth <rhodiumtoad@postgresql.org>
2020-11-24 22:03 pgsql: Properly check index mark/restore in ExecSupportsMarkRestore. Andrew Gierth <rhodiumtoad@postgresql.org>
2020-11-24 22:03 pgsql: Properly check index mark/restore in ExecSupportsMarkRestore. Andrew Gierth <rhodiumtoad@postgresql.org>
2020-11-24 22:03 pgsql: Properly check index mark/restore in ExecSupportsMarkRestore. Andrew Gierth <rhodiumtoad@postgresql.org>
2020-11-24 22:03 pgsql: Properly check index mark/restore in ExecSupportsMarkRestore. Andrew Gierth <rhodiumtoad@postgresql.org>
2020-11-24 22:03 pgsql: Properly check index mark/restore in ExecSupportsMarkRestore. Andrew Gierth <rhodiumtoad@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