From: Inzamam Shafiq <inzamam.shafiq@hotmail.com>
To: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Possible bug acldefault function
Date: Wed, 19 Mar 2025 12:49:14 +0000
Message-ID: <AM9P251MB0330304DEEE7015DEFBAB9D098D92@AM9P251MB0330.EURP251.PROD.OUTLOOK.COM> (raw)
Hi Team,
I came across an issue while working with acldefault function on materialized view, which threw an error "ERROR: unrecognized objtype abbreviation: m", when I looked at the source code of acldefault_sql it seems that materialized view case is not handled there, the SQL statement which I was executing is as follows,
`select relname, relowner, acldefault(relkind, relowner) as acl from pg_class where relkind in ('r', 'p', 'v', 'm');`
Please note that the value of relacl column in pg_class is NULL, upon assigning the permission explicitly the error goes away.
I'm not sure if it is truly a bug or I have some misunderstanding about the function.
Your guidance will be helpful to get better understanding of the issue.
Thank you.
Get Outlook for Android<https://aka.ms/AAb9ysg;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: inzamam.shafiq@hotmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: Possible bug acldefault function
In-Reply-To: <AM9P251MB0330304DEEE7015DEFBAB9D098D92@AM9P251MB0330.EURP251.PROD.OUTLOOK.COM>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox