The following bug has been logged on the website:
Bug reference: 18859
Logged by: Olleg Samoylov
Email address: splarv(at)ya(dot)ru
PostgreSQL version: 17.4
Operating system: RedOS 8
Description:
This working.
postgres=> do $$ declare p_CurData refcursor; begin OPEN p_CurData FOR
SELECT NULL::int id; end;$$;
DO
But this is not. Internal error.
postgres=> do $$ declare p_CurData refcursor; begin OPEN p_CurData SCROLL
FOR SELECT NULL::int id; end;$$;
ERROR: unexpected plan node type: 356
CONTEXT: PL/pgSQL function inline_code_block line 1 at OPEN