Re: pgsql: Clean up role created in new subscription test.
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2023-03-30T20:53:03Z
Lists: pgsql-hackers
> On 30 Mar 2023, at 22:29, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Daniel Gustafsson <daniel@yesql.se> writes: >>> On 30 Mar 2023, at 20:44, Tom Lane <tgl@sss.pgh.pa.us> wrote: >>> Another idea could be for pg_regress to enforce that "select count(*) >>> from pg_roles" gives the same answer before and after the test run. > >> That wouldn't prevent the contents of pg_roles to have changed though, so there >> is a (slim) false positive risk with that no? > > Well, we could do "select rolname from pg_roles order by 1" and > actually compare the results of the two selects. That might be > advisable anyway, in order to produce a complaint with useful > detail when there is something wrong. I can see the value in doing something like this to keep us honest. -- Daniel Gustafsson
Commits
-
Drop global objects after completed test
- 8ec99d0b79b2 12.21 landed
- e43e71b6cd2f 13.17 landed
- 988ddbef978b 14.14 landed
- 2eecaf4b8cfb 15.9 landed
- 4dd17490faa3 16.5 landed
- 936e3fa3787a 17.0 landed
-
Fix reported runtime for single tests in pg_regress
- 8cb94344c3c7 16.0 landed
-
Clean up role created in new subscription test.
- e9d202a1499d 16.0 cited