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.