Re: ALTER USER SET log_* not allowed... - Mailing list pgsql-bugs

From Andrew McMillan
Subject Re: ALTER USER SET log_* not allowed...
Date
Msg-id 1100082632.21786.55.camel@lamb.mcmillan.net.nz
Whole thread Raw
In response to Re: ALTER USER SET log_* not allowed...  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: ALTER USER SET log_* not allowed...
Re: ALTER USER SET log_* not allowed...
List pgsql-bugs
On Tue, 2004-11-09 at 13:58 -0500, Tom Lane wrote:
>=20
> 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/
-------------------------------------------------------------------------

pgsql-bugs by date:

Previous
From: Fabien COELHO
Date:
Subject: "strange" rule behavior with nextval on new.* fields
Next
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1311: Can't crosscompile