pgsql: Fix plpgsql's handling of simple expressions in scrollable curso

2025-04-04 Thread Tom Lane
Fix plpgsql's handling of simple expressions in scrollable cursors. exec_save_simple_expr did not account for the possibility that standard_planner would stick a Materialize node atop the plan of even a simple Result, if CURSOR_OPT_SCROLL is set. This led to an "unexpected plan node type" error.

pgsql: Fix plpgsql's handling of simple expressions in scrollable curso

2025-03-21 Thread Tom Lane
Fix plpgsql's handling of simple expressions in scrollable cursors. exec_save_simple_expr did not account for the possibility that standard_planner would stick a Materialize node atop the plan of even a simple Result, if CURSOR_OPT_SCROLL is set. This led to an "unexpected plan node type" error.

pgsql: Fix plpgsql's handling of simple expressions in scrollable curso

2025-03-21 Thread Tom Lane
Fix plpgsql's handling of simple expressions in scrollable cursors. exec_save_simple_expr did not account for the possibility that standard_planner would stick a Materialize node atop the plan of even a simple Result, if CURSOR_OPT_SCROLL is set. This led to an "unexpected plan node type" error.

pgsql: Fix plpgsql's handling of simple expressions in scrollable curso

2025-03-21 Thread Tom Lane
Fix plpgsql's handling of simple expressions in scrollable cursors. exec_save_simple_expr did not account for the possibility that standard_planner would stick a Materialize node atop the plan of even a simple Result, if CURSOR_OPT_SCROLL is set. This led to an "unexpected plan node type" error.

pgsql: Fix plpgsql's handling of simple expressions in scrollable curso

2025-03-21 Thread Tom Lane
Fix plpgsql's handling of simple expressions in scrollable cursors. exec_save_simple_expr did not account for the possibility that standard_planner would stick a Materialize node atop the plan of even a simple Result, if CURSOR_OPT_SCROLL is set. This led to an "unexpected plan node type" error.

pgsql: Fix plpgsql's handling of simple expressions in scrollable curso

2025-03-21 Thread Tom Lane
Fix plpgsql's handling of simple expressions in scrollable cursors. exec_save_simple_expr did not account for the possibility that standard_planner would stick a Materialize node atop the plan of even a simple Result, if CURSOR_OPT_SCROLL is set. This led to an "unexpected plan node type" error.