Re: BUG #17889: Invalid cursor direction for a foreign scan that reached the fetch_size (MOVE BACKWARD ALL IN cX)
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: eric.cyr@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2024-07-15T13:55:28Z
Lists: pgsql-bugs
Etsuro Fujita <etsuro.fujita@gmail.com> writes: > On Fri, Jul 5, 2024 at 9:49 PM Etsuro Fujita <etsuro.fujita@gmail.com> wrote: >> To fix, how about instead modifying postgres_fdw so that if the remote >> server is v15 or later, it just recreates a cursor when rewinding it >> is needed, like the attached? Uh ... does this ensure that the data hasn't changed? regards, tom lane
Commits
-
postgres_fdw: Avoid "cursor can only scan forward" error.
- f39f3e0fbe9b 15.8 landed
- d97f2ee50e49 16.4 landed
- 935fe79ea1fb 17.0 landed
- 5c571a34d0e9 18.0 landed
-
Fix some anomalies with NO SCROLL cursors.
- d844cd75a676 14.0 cited