Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuf5i-0003u4-O7 for pgsql-bugs@arkaria.postgresql.org; Fri, 27 May 2022 18:53:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nuf5g-0000xQ-Vl for pgsql-bugs@arkaria.postgresql.org; Fri, 27 May 2022 18:53:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuf5g-0000xH-Ni for pgsql-bugs@lists.postgresql.org; Fri, 27 May 2022 18:53:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuf5e-0006iK-FN for pgsql-bugs@lists.postgresql.org; Fri, 27 May 2022 18:53:40 +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 24RIrZtF2703830; Fri, 27 May 2022 14:53:35 -0400 From: Tom Lane To: Robert Haas cc: Noah Misch , =?UTF-8?B?RsOkcmJlciwgRnJhbnotSm9zZWYgKFN0TVVLKQ==?= , PostgreSQL mailing lists Subject: Re: Extension pg_trgm, permissions and pg_dump order In-reply-to: References: <1961551.1653498155@sss.pgh.pa.us> <20220526055047.GA3153526@rfd.leadboat.com> Comments: In-reply-to Robert Haas message dated "Fri, 27 May 2022 14:46:41 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2703828.1653677615.1@sss.pgh.pa.us> Date: Fri, 27 May 2022 14:53:35 -0400 Message-ID: <2703829.1653677615@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > Why isn't the current behavior - i.e. failing with a permissions error > - correct? I mean I realize it's wrong in the sense that you can't > restore a dump you just took, but what about from a security > perspective?