Re: DROP OWNED BY fails to clean out pg_init_privs grants
Marina Polyakova <m.polyakova@postgrespro.ru>
From: Marina Polyakova <m.polyakova@postgrespro.ru>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Егор Чиндяскин <kyzevan23@mail.ru>, Robert Haas <robertmhaas@gmail.com>, Daniel Gustafsson <daniel@yesql.se>, "David G. Johnston" <david.g.johnston@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Stephen Frost <sfrost@snowman.net>, Andres Freund <andres@anarazel.de>, Noah Misch <nmisch@google.com>, Hannu Krosing <hannuk@google.com>
Date: 2024-09-19T09:10:57Z
Lists: pgsql-hackers
Hello! IIUC the regression test test_pg_dump [1] fails, see the attached regression.diffs: diff -U3 /Users/test/Work/postgrespro/src/test/modules/test_pg_dump/expected/test_pg_dump.out /Users/test/Work/postgrespro/build/testrun/test_pg_dump-running/regress/results/test_pg_dump.out --- /Users/test/Work/postgrespro/src/test/modules/test_pg_dump/expected/test_pg_dump.out 2024-09-12 15:02:26.345434331 +0700 +++ /Users/test/Work/postgrespro/build/testrun/test_pg_dump-running/regress/results/test_pg_dump.out 2024-09-12 15:42:09.341520173 +0700 [1] https://github.com/postgres/postgres/blob/master/src/test/modules/test_pg_dump/sql/test_pg_dump.sql On 2024-09-18 07:31, Tom Lane wrote: > =?UTF-8?B?0JXQs9C+0YAg0KfQuNC90LTRj9GB0LrQuNC9?= <kyzevan23@mail.ru> > writes: >> This query does not expect that test database may already contain some >> information about custom user that ran test_pg_dump-running. > > I'm perfectly content to reject this as being an abuse of the test > case. Our TAP tests are built on the assumption that they use > databases created within the test case. Apparently, you've found a > way to use the meson test infrastructure to execute a TAP test in > the equivalent of "make installcheck" rather than "make check" mode. > I am unwilling to buy into the proposition that our TAP tests should > be proof against doing that after making arbitrary changes to the > database's initial state. If anything, the fact that this is possible > is a bug in our meson scripts. > > regards, tom lane -- Marina Polyakova Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
Commits
-
Allow meson builds to run test_pg_dump test in installcheck mode.
- f663f4daf075 16.5 landed
- b0c5b215dace 17.0 landed
-
Remove recordExtensionInitPriv[Worker]'s ownerId argument.
- ba26d156636c 17.0 landed
-
Improve tracking of role dependencies of pg_init_privs entries.
- 35dd40d34cbd 17.0 landed
-
Fix failure to track role dependencies of pg_init_privs entries.
- 534287403914 17.0 landed
-
Drop global objects after completed test
- 936e3fa3787a 17.0 cited