Re: ALTER USER SET log_* not allowed...

From: Andrew McMillan <andrew(at)catalyst(dot)net(dot)nz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Sean Chittenden <sean(at)chittenden(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PGBugs List <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: ALTER USER SET log_* not allowed...
Date: 2004-11-10 10:30:32
Message-ID: 1100082632.21786.55.camel@lamb.mcmillan.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, 2004-11-09 at 13:58 -0500, Tom Lane wrote:
>
> Bruce and I were chatting about this on the phone today, and we were
> seriously considering a more radical proposal: get rid of the whole
> concept of USERLIMIT variables, and make the logging variables be plain
> SUSET (ie, only superusers can change 'em). This would eliminate the
> current ability of a non-superuser to increase the logging verbosity
> of his session, but it's not real clear that that's such a good idea
> anyway. (Cranking the log verbosity up far past what the DBA wants
> could be seen as a primitive form of DOS attack; and anyway, if you are
> not a superuser then you can't see what's in the log, so why should
> you care what the verbosity is, much less be able to affect it?) Given
> the code complexity of the USERLIMIT stuff and the number of bugs
> already found in it, getting rid of it seems awfully attractive.

The current functionality could be useful inside particular code paths
of an application, where you want to increase the log verbosity in a
particular part of the code, when it (unpredictably) happens, without
nuking the logs entirely.

Of course you are superuser when you review such logs, but I wouldn't
usually want the db connection from the application to have to run as
superuser if I could help it... especially not a web application.

Regards,
Andrew McMillan.

-------------------------------------------------------------------------
Andrew @ Catalyst .Net .NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
DDI: +64(4)803-2201 MOB: +64(272)DEBIAN OFFICE: +64(4)499-2267
Survey for nothing with http://survey.net.nz/
-------------------------------------------------------------------------

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PostgreSQL Bugs List 2004-11-10 10:34:48 BUG #1311: Can't crosscompile
Previous Message Fabien COELHO 2004-11-10 09:23:41 "strange" rule behavior with nextval on new.* fields