WARNING: missing lock on database "postgres" (OID 5) @ TID (0,4)
Alexander Kukushkin <cyberdemn@gmail.com>
From: Alexander Kukushkin <cyberdemn@gmail.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>, noah@leadboat.com
Date: 2024-12-09T10:27:06Z
Lists: pgsql-hackers
Hello Hacker, When Postgres is compiled with --enable-cassert I get subj when doing the following: postgres=# create user test; CREATE ROLE postgres=# alter database postgres owner to test; ALTER DATABASE postgres=# reassign owned by test to postgres; WARNING: missing lock on database "postgres" (OID 5) @ TID (0,4) REASSIGN OWNED It was discovered on 16.6, however the master shows the same behaviour. I suspect it to be due to aac2c9b4fde889d13f859c233c2523345e72d32b. Regards, -- Alexander Kukushkin
Commits
-
In REASSIGN OWNED of a database, lock the tuple as mandated.
- 536acda0bc79 14.16 landed
- 1025463225b8 13.19 landed
- fa6131377054 17.3 landed
- 83bb52375630 15.11 landed
- 5d94aa4dc3a4 16.7 landed
- ff90ee614509 18.0 landed
-
For inplace update durability, make heap_update() callers wait.
- aac2c9b4fde8 18.0 cited