Pass EXEC_FLAG_REWIND when initializing a tuplestore scan.

Robert Haas <rhaas@postgresql.org>

Commit: 304007d9f1f66fd37e50e5a5aa6f17400f1239f8
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-05-10T03:13:21Z
Releases: 10.0
Pass EXEC_FLAG_REWIND when initializing a tuplestore scan.

Since a rescan is possible, we must be able to rewind.

Thomas Munro, per a report from Prabhat Sabu

Discussion: http://postgr.es/m/CAEepm=2=Uv5fm=exqL+ygBxaO+-tgmC=o+63H4zYAXi9HtXf1w@mail.gmail.com

Files

PathChange+/−
src/backend/executor/nodeNamedtuplestorescan.c modified +1 −1

Discussion