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 1fn9l8-00077y-2m for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Aug 2018 21:43:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fn9l5-0001Ch-Ai for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Aug 2018 21:43:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn9l4-0001Ca-Sp for pgsql-bugs@lists.postgresql.org; Tue, 07 Aug 2018 21:43:15 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fn9kx-00085V-9N for pgsql-bugs@lists.postgresql.org; Tue, 07 Aug 2018 21:43:13 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1fn9kw-0007tR-8u; Tue, 07 Aug 2018 17:43:06 -0400 Date: Tue, 7 Aug 2018 17:43:06 -0400 From: Bruce Momjian To: Akos Vandra Cc: Tom Lane , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15271: Documentation / Error reporting on GUC parameter change Message-ID: <20180807214306.GL7297@momjian.us> References: <153121314370.1402.3836688647018870326@wrigleys.postgresql.org> <20180807172340.GC7297@momjian.us> <29540.1533669009@sss.pgh.pa.us> <20180807193647.GI7297@momjian.us> <6376.1533675236@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Aug 7, 2018 at 11:11:16PM +0200, Akos Vandra wrote: > Yeah I guessed as much :( > > It's definitely something worth mentioning in the docs with a fat warning sign > though. We do have a _vague_ warning sign. ;-) --------------------------------------------------------------------------- > > Thanks for looking into it. > Akos > > On Tue, Aug 7, 2018, 22:53 Tom Lane wrote: > > 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 > -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +