Cleanup users and roles in graph_table_rls test
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2026-03-20T09:55:51Z
Releases:
19 (unreleased)
Cleanup users and roles in graph_table_rls test This test leaves behind the roles and users it creates. 002_pg_upgrade test dumps and restore the regression when PG_TEST_EXTRA contains regress_dump_restore. The global objects such as users and roles are not dumped by pg_dump. But it still dumps the policies associated with users, and commands to set the ownership. Restoring these policies and the ownerships fails since the users and roles do not exist. To fix this failure we could use --no-owner, but it does not exclude the policy objects associated with users. Hence drop the users, roles and policies that depend upon them at the end of the test. Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com> Reported-by: Peter Eisentraut <peter@eisentraut.org> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/a855795d-e697-4fa5-8698-d20122126567@eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| src/test/regress/expected/graph_table_rls.out | modified | +16 −1 |
| src/test/regress/sql/graph_table_rls.sql | modified | +16 −1 |
Discussion
- SQL Property Graph Queries (SQL/PGQ) 211 messages · 2024-02-16 → 2026-05-16