Show rows for all reads and confirm nextval()

SHOW, EXPLAIN, VALUES and TABLE count as reads now but their rows were
dropped and reported as a write; every read except SET now returns its
rows. nextval() advances a sequence, so it needs confirmation like
setval().
This commit is contained in:
2026-09-30 03:59:11 +02:00
parent 10055c9358
commit f89ced651b
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -110,6 +110,7 @@ class SqlGuardTest extends TestCase
['SELECT pg_terminate_backend(123)'],
["SELECT set_config('x', 'y', false)"],
["SELECT setval('seq', 1)"],
["SELECT nextval('seq')"],
['MERGE INTO t USING s ON true WHEN MATCHED THEN DELETE'],
['VACUUM'],
["WITH a AS (SELECT '/*'), b AS (DELETE FROM t RETURNING 1) SELECT '*/'"],