pgsql: Avoid misbehavior when persisting a non-stable cursor.

2021-06-08 Thread Tom Lane
Avoid misbehavior when persisting a non-stable cursor. PersistHoldablePortal has long assumed that it should store the entire output of the query-to-be-persisted, which requires rewinding and re-reading the output. This is problematic if the query is not stable: we might get different row content

pgsql: Avoid misbehavior when persisting a non-stable cursor.

2021-06-08 Thread Tom Lane
Avoid misbehavior when persisting a non-stable cursor. PersistHoldablePortal has long assumed that it should store the entire output of the query-to-be-persisted, which requires rewinding and re-reading the output. This is problematic if the query is not stable: we might get different row content

pgsql: Avoid misbehavior when persisting a non-stable cursor.

2021-06-08 Thread Tom Lane
Avoid misbehavior when persisting a non-stable cursor. PersistHoldablePortal has long assumed that it should store the entire output of the query-to-be-persisted, which requires rewinding and re-reading the output. This is problematic if the query is not stable: we might get different row content

pgsql: Avoid misbehavior when persisting a non-stable cursor.

2021-06-08 Thread Tom Lane
Avoid misbehavior when persisting a non-stable cursor. PersistHoldablePortal has long assumed that it should store the entire output of the query-to-be-persisted, which requires rewinding and re-reading the output. This is problematic if the query is not stable: we might get different row content