Re: pgsql: Clean up role created in new subscription test.
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Peter Eisentraut <peter@eisentraut.org>,
Tom Lane <tgl@sss.pgh.pa.us>,
Robert Haas <robertmhaas@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2023-12-01T11:22:50Z
Lists: pgsql-hackers
Attachments
- v4-0002-pg_regress-Detect-global-objects-left-over-after-.patch (application/octet-stream) patch v4-0002
- v4-0001-Drop-global-objects-after-completed-test.patch (application/octet-stream) patch v4-0001
> On 8 Nov 2023, at 13:32, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote: > I suppose you're just thinking of using PQexec() or whatever, run one > query with sufficient ORDER BY, save the result, and at the end of the > test run just run the same query and compare that they are cell-by-cell > identical? This sounds a lot simpler than the patch you posted. I found some spare cycles for this and came up with the attached. The idea was to keep it in-line with how pg_regress already today manipulate and traverse _stringlists for various things. With the addition of the 0001 patch to clean up global objects left in test_pg_dump it passes check-world. -- 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