Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn8zW-0004OF-3X for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Aug 2018 20:54:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fn8zT-0005DD-7w for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Aug 2018 20:54:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn8zT-0005D6-1w for pgsql-bugs@lists.postgresql.org; Tue, 07 Aug 2018 20:54:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn8zP-00013t-S2 for pgsql-bugs@lists.postgresql.org; Tue, 07 Aug 2018 20:54:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w77Krutp006377; Tue, 7 Aug 2018 16:53:56 -0400 From: Tom Lane To: Akos Vandra cc: bruce@momjian.us, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15271: Documentation / Error reporting on GUC parameter change In-reply-to: References: <153121314370.1402.3836688647018870326@wrigleys.postgresql.org> <20180807172340.GC7297@momjian.us> <29540.1533669009@sss.pgh.pa.us> <20180807193647.GI7297@momjian.us> Comments: In-reply-to Akos Vandra message dated "Tue, 07 Aug 2018 22:50:53 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6375.1533675236.1@sss.pgh.pa.us> Date: Tue, 07 Aug 2018 16:53:56 -0400 Message-ID: <6376.1533675236@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Akos Vandra writes: > But the problem persists even as the database owner, I can't ALTER DATABASE > (as the db owner) before the extension is loaded into the session. > Actually that was the original issue. Non-owners or non-superusers can't > use ALTER DATABASE, and that's fine, but not even the DB OWNER can use > ALTER DB before a SELECT set_limit(); in case of pg_trgm. Yeah. It's a design limitation with no easy fix. You just have to load the extension so that the code knows the properties of the variable. regards, tom lane