[COMMITTERS] pgsql: Be sure to rewind the tuplestore read pointer in non-leader CTES

2016-09-22 Thread Tom Lane
Be sure to rewind the tuplestore read pointer in non-leader CTEScan nodes. ExecInitCteScan supposed that it didn't have to do anything to the extra tuplestore read pointer it gets from tuplestore_alloc_read_pointer. However, it needs this read pointer to be positioned at the start of the tuplestor

[COMMITTERS] pgsql: Be sure to rewind the tuplestore read pointer in non-leader CTES

2016-09-22 Thread Tom Lane
Be sure to rewind the tuplestore read pointer in non-leader CTEScan nodes. ExecInitCteScan supposed that it didn't have to do anything to the extra tuplestore read pointer it gets from tuplestore_alloc_read_pointer. However, it needs this read pointer to be positioned at the start of the tuplestor

[COMMITTERS] pgsql: Be sure to rewind the tuplestore read pointer in non-leader CTES

2016-09-22 Thread Tom Lane
Be sure to rewind the tuplestore read pointer in non-leader CTEScan nodes. ExecInitCteScan supposed that it didn't have to do anything to the extra tuplestore read pointer it gets from tuplestore_alloc_read_pointer. However, it needs this read pointer to be positioned at the start of the tuplestor

[COMMITTERS] pgsql: Be sure to rewind the tuplestore read pointer in non-leader CTES

2016-09-22 Thread Tom Lane
Be sure to rewind the tuplestore read pointer in non-leader CTEScan nodes. ExecInitCteScan supposed that it didn't have to do anything to the extra tuplestore read pointer it gets from tuplestore_alloc_read_pointer. However, it needs this read pointer to be positioned at the start of the tuplestor

[COMMITTERS] pgsql: Be sure to rewind the tuplestore read pointer in non-leader CTES

2016-09-22 Thread Tom Lane
Be sure to rewind the tuplestore read pointer in non-leader CTEScan nodes. ExecInitCteScan supposed that it didn't have to do anything to the extra tuplestore read pointer it gets from tuplestore_alloc_read_pointer. However, it needs this read pointer to be positioned at the start of the tuplestor

[COMMITTERS] pgsql: Be sure to rewind the tuplestore read pointer in non-leader CTES

2016-09-22 Thread Tom Lane
Be sure to rewind the tuplestore read pointer in non-leader CTEScan nodes. ExecInitCteScan supposed that it didn't have to do anything to the extra tuplestore read pointer it gets from tuplestore_alloc_read_pointer. However, it needs this read pointer to be positioned at the start of the tuplestor

[COMMITTERS] pgsql: Be sure to rewind the tuplestore read pointer in non-leader CTES

2016-09-22 Thread Tom Lane
Be sure to rewind the tuplestore read pointer in non-leader CTEScan nodes. ExecInitCteScan supposed that it didn't have to do anything to the extra tuplestore read pointer it gets from tuplestore_alloc_read_pointer. However, it needs this read pointer to be positioned at the start of the tuplestor