Re: 'WARNING: you don't own a lock of type ExclusiveLock' is printed during the GRANT command on PostgreSQL16.5 - Mailing list pgsql-bugs

From Noah Misch
Subject Re: 'WARNING: you don't own a lock of type ExclusiveLock' is printed during the GRANT command on PostgreSQL16.5
Date
Msg-id 20241126021713.71.nmisch@google.com
Whole thread Raw
In response to RE: 'WARNING: you don't own a lock of type ExclusiveLock' is printed during the GRANT command on PostgreSQL16.5  ("Aya Iwata (Fujitsu)" <iwata.aya@fujitsu.com>)
List pgsql-bugs
On Mon, Nov 25, 2024 at 05:54:50AM +0000, Aya Iwata (Fujitsu) wrote:
> >Did you ever see the WARNING with a DATABASE command, or just with a
> >TABLESPACE command?
> 
> We tried this, but there is no WARNING on GRANT xxx ON DATABASE command.
> 
> But I did notice a warning while REVOKE xxx ON TABLESPACE.
> 
> $ psql -x -p 5432 -d postgres -c "REVOKE CREATE ON TABLESPACE test_tbl_spc FROM nmluser1;"
> WARNING:  you don't own a lock of type ExclusiveLock
> REVOKE
> 
> So both GRANT and REVOKE command on TABLESPACE seems to throw an WARNING.

That makes sense.  I've pushed postgr.es/c/4ba84de for this.



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Build failure with GCC 15 (defaults to -std=gnu23)
Next
From: Thomas Munro
Date:
Subject: Re: Build failure with GCC 15 (defaults to -std=gnu23)