Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2B4AC47621A for ; Thu, 16 Jan 2003 05:10:16 -0500 (EST) Received: from server.beierfeld.kabeljournal.de (pD900DD44.dip.t-dialin.net [217.0.221.68]) by postgresql.org (Postfix) with SMTP id D2956476128 for ; Thu, 16 Jan 2003 05:10:14 -0500 (EST) Received: (qmail 7460 invoked from network); 16 Jan 2003 10:10:15 -0000 Received: from station158.beierfeld.kabeljournal.de (192.168.128.158) by server.beierfeld.kabeljournal.de with SMTP; 16 Jan 2003 10:10:15 -0000 Date: Thu, 16 Jan 2003 11:10:14 +0100 From: Andre Schubert To: Tom Lane Cc: pgsql-admin@postgresql.org Subject: Re: Problems with PGOPTIONS Message-Id: <20030116111014.5bfc42f0.andre@km3.de> In-Reply-To: <5306.1042647569@sss.pgh.pa.us> References: <20030115115826.74472714.andre@km3.de> <4630.1042642887@sss.pgh.pa.us> <20030115160851.71c80478.andre@km3.de> <5306.1042647569@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/167 X-Sequence-Number: 7009 On Wed, 15 Jan 2003 11:19:29 -0500 Tom Lane wrote: > Andre Schubert writes: > > Ok, but is there another way to enable STATS_ROW_LEVEL for a special > > backend not connecting as superuser ? > > No: the code is deliberately designed to prevent that, on the grounds > that it'd be a security flaw (non-superusers should not be allowed to > hide their activities from the DBA). > Lets say, that the statistics that i would collect come from several scripts controlled and programmed by me. All these scripts are connecting as different users to my db. Is there a way to chnage these users to superusers and if yes would it be a security flaw to change these users to superusers ? > There's nothing to stop you from making a private version with > stats_row_level downgraded to an ordinary unprotected SET variable, > though, if that seems more appropriate to your needs. See its entry in > src/backend/utils/misc/guc.c and change it from SUSET to USERSET > category (from memory; check spelling in src/include/utils/guc.h). > I will test this. Thanks for the quick answer. Regards, as