summary: Regression: The cursor ignore the changes made earlier in the same executable block. => Regression: The subquery in the insert list expressions ignore the changes made earlier in the same executable block.
The issue occurs with the following conditions:
- PSQL block contains a few DML statements
- INSERT or UPDATE OR INSERT statement have subselect in VALUES expressions
- subselect queries table which was changed by some previous DML statement in the same PSQL block
Standalone subqueries are not affected.
INSERT INTO ... SELECT FROM are not affected.
UPDATE, DELETE and MERGE statements are not affected.