]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Replace tests of ALTER DATABASE RESET TABLESPACE.
authorNoah Misch <noah@leadboat.com>
Fri, 12 Sep 2025 19:44:14 +0000 (12:44 -0700)
committerNoah Misch <noah@leadboat.com>
Fri, 12 Sep 2025 19:44:14 +0000 (12:44 -0700)
commit4adb0380b9bff5ec6424a9e87f76f8974b025367
tree5f614b6a483c2f417163f94c8637f56f6297a452
parent796962922e6938fdad4dbf810fb2a5dfcfc5f45a
Replace tests of ALTER DATABASE RESET TABLESPACE.

This unblocks rejection of that syntax.  One copy was a misspelling of
"SET TABLESPACE pg_default" that instead made no persistent changes.
The other copy just needed to populate a DATABASEOID syscache entry.
This slightly raises database.sql test coverage of catcache.c, while
dbcommands.c coverage remains the same.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/1802710.1757608564@sss.pgh.pa.us
src/test/regress/expected/database.out
src/test/regress/sql/database.sql