BUG #18545: \dt breaks transaction, calling error when executed in SET SESSION AUTHORIZATION
PG Bug reporting form <noreply@postgresql.org>
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: therealgofman@mail.ru
Date: 2024-07-19T09:25:11Z
Lists: pgsql-bugs, pgsql-hackers
The following bug has been logged on the website: Bug reference: 18545 Logged by: Andrey Rachitskiy Email address: therealgofman@mail.ru PostgreSQL version: 16.3 Operating system: Debian 12 Description: \dt breaks transaction, calling error when executed in SET SESSION AUTHORIZATION. This happens in two cases, with different SET. Case one: postgres@debian-test:~$ psql -U postgres psql (16.3) Type "help" for help. postgres=# \set VERBOSITY verbose postgres=# BEGIN; BEGIN postgres=*# CREATE USER regress_priv_user8; CREATE ROLE postgres=*# SET SESSION AUTHORIZATION regress_priv_user8; SET postgres=*> \dt+; Did not find any relations. postgres=*> SET LOCAL debug_parallel_query = 1; SET postgres=*> \dt+; ERROR: 22023: role "regress_priv_user8" does not exist CONTEXT: while setting parameter "session_authorization" to "regress_priv_user8" parallel worker LOCATION: call_string_check_hook, guc.c:6734 postgres=!# \q Case two: postgres@debian-test:~$ psql -U postgres psql (16.3) Type "help" for help. postgres=# \set VERBOSITY verbose postgres=# BEGIN; BEGIN postgres=*# CREATE USER regress_priv_user8; CREATE ROLE postgres=*# SET SESSION AUTHORIZATION regress_priv_user8; SET postgres=*> \dt+ Did not find any relations. postgres=*> set local parallel_setup_cost = 0; SET postgres=*> set local min_parallel_table_scan_size = 0; SET postgres=*> \dt+ ERROR: 22023: role "regress_priv_user8" does not exist CONTEXT: while setting parameter "session_authorization" to "regress_priv_user8" parallel worker LOCATION: call_string_check_hook, guc.c:6734 postgres=!# \q
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix parallel worker tracking of new catalog relfilenumbers.
- 67bab53d6442 18.0 landed
-
Restore relmapper state early enough in parallel workers.
- 126ec0bc76d0 18.0 landed
-
Allow parallel workers to cope with a newly-created session user ID.
- 6e086fa2e771 18.0 landed
- f5f30c22ed69 18.0 landed
- 97380d4803d1 14.13 landed
- 849326e49a5d 16.4 landed
- 68855c03878c 12.20 landed
- 5887dd4894db 17.0 landed
- 48536305370a 15.8 landed
- 216201027d90 13.16 landed
-
Clean up handling of client_encoding GUC in parallel workers.
- 0ae5b763ea0e 18.0 landed
-
Fix rd_firstRelfilenodeSubid for nailed relations, in parallel workers.
- fe4d022c8e17 14.0 cited
-
Fix several mistakes around parallel workers and client_encoding.
- 10c0558ffefc 9.6.0 cited