Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tuves-00EN68-Dp for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Mar 2025 15:48:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tuver-007272-3m for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Mar 2025 15:48:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tuvbi-006xIs-W8 for pgsql-bugs@lists.postgresql.org; Wed, 19 Mar 2025 15:45:27 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tuvbf-003mo5-0F for pgsql-bugs@lists.postgresql.org; Wed, 19 Mar 2025 15:45:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 52JFjKgq707959; Wed, 19 Mar 2025 11:45:20 -0400 From: Tom Lane To: Inzamam Shafiq cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: Possible bug acldefault function In-reply-to: References: Comments: In-reply-to Inzamam Shafiq message dated "Wed, 19 Mar 2025 12:49:14 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <707957.1742399120.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 19 Mar 2025 11:45:20 -0400 Message-ID: <707958.1742399120@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Inzamam Shafiq writes: > I came across an issue while working with acldefault function on materia= lized view, which threw an error "ERROR: unrecognized objtype abbreviation= : m", when I looked at the source code of acldefault_sql it seems that mat= erialized view case is not handled there, the SQL statement which I was ex= ecuting is as follows, No, acldefault doesn't consider 'm' to be valid input, because materialized views are not a distinct kind of object for ACL purposes; they're just relations (tables), and have relation-y privileges. In fact, none of the object type codes accepted by acldefault_sql are relkind values, except for the accidental overlap of 'r' with the relkind for plain tables. regards, tom lane