pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andre Schubert <andre@km3.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problems with PGOPTIONS
Date: Wed, 15 Jan 2003 11:19:29 -0500
Message-ID: <5306.1042647569@sss.pgh.pa.us> (raw)
In-Reply-To: <20030115160851.71c80478.andre@km3.de>
References: <20030115115826.74472714.andre@km3.de>
	<4630.1042642887@sss.pgh.pa.us>
	<20030115160851.71c80478.andre@km3.de>

Andre Schubert <andre@km3.de> 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).

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).

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <5306.1042647569@sss.pgh.pa.us>
Permalink:  ../5306.1042647569@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5306.1042647569@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andre@km3.de
  Subject: Re: Problems with PGOPTIONS
  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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox