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 1rk2nv-009sOP-19 for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Mar 2024 14:08:31 +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 1rk2nt-00DHKZ-99 for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Mar 2024 14:08:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rk2nt-00DHKQ-0u for pgsql-bugs@lists.postgresql.org; Tue, 12 Mar 2024 14:08:29 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rk2np-00484m-V3 for pgsql-bugs@lists.postgresql.org; Tue, 12 Mar 2024 14:08:28 +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 42CE8Ef41669467; Tue, 12 Mar 2024 10:08:14 -0400 From: Tom Lane To: Laurenz Albe cc: Heikki Linnakangas , maxim.boguk@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18387: Erroneous permission checks and/or misleading error messages with refresh materialized view In-reply-to: References: <18387-12041858d9efb6f6@postgresql.org> <36bb333d-13ec-4f8e-af33-48249ca2fe69@iki.fi> Comments: In-reply-to Laurenz Albe message dated "Tue, 12 Mar 2024 08:34:40 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1669465.1710252494.1@sss.pgh.pa.us> Date: Tue, 12 Mar 2024 10:08:14 -0400 Message-ID: <1669466.1710252494@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > On Tue, 2024-03-12 at 01:02 +0200, Heikki Linnakangas wrote: >> I guess we need to allow creating such internal temporary tables, >> despite the missing permission. That'll need some careful analysis to >> make sure we don't accidentally allow creating other temporary tables... > Wouldn't it be sufficient to document that fact, perhaps add an > error hint and require the MV owner to have TEMP on the database? +1. I don't see a need for this to be a low-permissions feature. regards, tom lane