postgresql/src
Tomas Vondra c442722648 Fix handling of REWIND/MARK/BACKWARD in incremental sort
The executor flags were not handled entirely correctly, although the
bugs were mostly harmless and it was mostly comment inaccuracy. We don't
need to strip any of the flags for child nodes.

Incremental sort does not support backward scans of mark/restore, so
MARK/BACKWARDS flags should not be possible. So we simply ensure this
using an assert, and we don't bother removing them when initializing
the child node.

With REWIND it's a bit less clear - incremental sort does not support
REWIND, but there is no way to signal this - it's legal to just ignore
the flag. We however continue passing the flag to child nodes, because
they might be useful to leverage that.

Reported-by: Michael Paquier
Author: James Coleman
Reviewed-by: Tomas Vondra
Discussion: https://postgr.es/m/20200414065336.GI1492@paquier.xyz
2020-05-09 19:41:18 +02:00
..
backend Fix handling of REWIND/MARK/BACKWARD in incremental sort 2020-05-09 19:41:18 +02:00
bin pg_restore: Provide file name with one failure message 2020-05-08 19:38:46 -04:00
common Fix update-unicode target 2020-04-19 14:59:29 +02:00
fe_utils Add SQL type xid8 to expose FullTransactionId to users. 2020-04-07 12:03:59 +12:00
include Rework XLogReader callback system 2020-05-08 15:40:11 -04:00
interfaces Fix severe memory leaks in GSSAPI encryption support. 2020-05-05 13:10:17 -04:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Use perl warnings pragma consistently 2020-04-13 11:55:45 -04:00
port Get rid of trailing semicolons in C macro definitions. 2020-05-01 17:28:00 -04:00
template Fix compiler warning for ppoll() on Cygwin 2019-12-22 23:20:00 +01:00
test Update oidjoins regression test for v13. 2020-05-09 13:05:08 -04:00
timezone Update time zone data files to tzdata release 2020a. 2020-04-24 10:54:47 -04:00
tools Update oidjoins regression test for v13. 2020-05-09 13:05:08 -04:00
tutorial Update copyrights for 2020 2020-01-01 12:21:45 -05:00
.gitignore
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Update Unicode data to Unicode 13.0.0 and CLDR 37 2020-04-24 09:52:59 +02:00
Makefile.shlib Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00