WARNING: missing lock on database "postgres" (OID 5) @ TID (0,4) - Mailing list pgsql-hackers

From Alexander Kukushkin
Subject WARNING: missing lock on database "postgres" (OID 5) @ TID (0,4)
Date
Msg-id CAFh8B=mpKjAy4Cuun-HP-f_vRzh2HSvYFG3rhVfYbfEBUhBAGg@mail.gmail.com
Whole thread Raw
List 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

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: FileFallocate misbehaving on XFS
Next
From: Jakub Wartak
Date:
Subject: Re: FileFallocate misbehaving on XFS