Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3A3174772A8 for ; Wed, 15 Jan 2003 10:21:35 -0500 (EST) Received: from server.beierfeld.kabeljournal.de (pD900DD42.dip.t-dialin.net [217.0.221.66]) by postgresql.org (Postfix) with SMTP id D51794764EB for ; Wed, 15 Jan 2003 10:08:44 -0500 (EST) Received: (qmail 16903 invoked from network); 15 Jan 2003 15:08:45 -0000 Received: from station158.beierfeld.kabeljournal.de (192.168.128.158) by server.beierfeld.kabeljournal.de with SMTP; 15 Jan 2003 15:08:45 -0000 Date: Wed, 15 Jan 2003 16:08:51 +0100 From: Andre Schubert To: Tom Lane Cc: pgsql-admin@postgresql.org Subject: Re: Problems with PGOPTIONS Message-Id: <20030115160851.71c80478.andre@km3.de> In-Reply-To: <4630.1042642887@sss.pgh.pa.us> References: <20030115115826.74472714.andre@km3.de> <4630.1042642887@sss.pgh.pa.us> Organization: km3 teledienst GmbH X-Mailer: Sylpheed version 0.8.6 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/160 X-Sequence-Number: 7002 On Wed, 15 Jan 2003 10:01:27 -0500 Tom Lane wrote: > Andre Schubert writes: > > I want to enable the collection of STATS_ROW_LEVEL for special backends > > by setting the environment-variable export PGOPTIONS='-c STATS_ROW_LEVEL=ON'. > > After setting this variable i cant connect to my database. > > Everytime the following error occurs: > > > Connection to database 'mydb' failed. > > FATAL 1: permission denied > > You cannot alter stats_row_level unless you're a superuser (and I think > even that exception doesn't work for PGOPTIONS, because it's processed > before the backend has determined whether you are a superuser). You'd > get the same error if you tried > > regression=> set STATS_ROW_LEVEL = on; > ERROR: 'stats_row_level': permission denied > Ok, but is there another way to enable STATS_ROW_LEVEL for a special backend not connecting as superuser ? Regards, as