AW: BUG #18389: pg_database_owner not recognized with alter default privileges

From: Kristo Marijo <M(dot)Kristo(at)rewe-group(dot)at>
To: Noah Misch <noah(at)leadboat(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: AW: BUG #18389: pg_database_owner not recognized with alter default privileges
Date: 2024-03-13 07:16:53
Message-ID: VI1PR06MB639880F3F89FA2D496D3F5E8CD2A2@VI1PR06MB6398.eurprd06.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello,

here is the exact sql-command.

ALTER DEFAULT PRIVILEGES IN SCHEMA general,extensions for role postgres,apl_admin,pg_database_owner grant SELECT ON TABLES to app_readonly;

BR
Marijo Kristo
________________________________
Von: Noah Misch <noah(at)leadboat(dot)com>
Gesendet: Dienstag, 12. März 2024 20:55
An: Kristo Marijo <m(dot)kristo(at)rewe-group(dot)at>; pgsql-bugs(at)lists(dot)postgresql(dot)org <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Betreff: Re: BUG #18389: pg_database_owner not recognized with alter default privileges

*** CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. If you are unsure or already opened a link or attachment please contact your local IT helpdesk. ***

On Tue, Mar 12, 2024 at 07:04:11PM +0000, PG Bug reporting form wrote:
> Bug reference: 18389
> Logged by: Marijo Kristo
> Email address: m(dot)kristo(at)rewe-group(dot)at
> PostgreSQL version: 16.2
> Operating system: Debian
> Description:
>
> Hello,
>
> i am precreating schemas in template1 database and setting specific
> privileges.
> When performing "alter default privileges for role pg_database_owner ..."
> the group is recognized and the default privilege is also set. No error is
> thrown.
>
> When i create a new database the pg_database_owner role is not working
> correctly. I created then the same privilege with specifying the db owner
> and then the privilege works.

Please share the exact SQL commands you used to reproduce this.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alexander Lakhin 2024-03-13 08:00:00 Re: BUG #18385: Assert("strategy_delta >= 0") in BgBufferSync() fails due to race condition
Previous Message Tender Wang 2024-03-13 06:50:58 Re: BUG #18385: Assert("strategy_delta >= 0") in BgBufferSync() fails due to race condition