Re: [BUGS] 7.4 beta 1: SET log_statement=false

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bertrand Petit <pgsql-bugs(at)phoe(dot)frmug(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: [BUGS] 7.4 beta 1: SET log_statement=false
Date: 2003-08-13 23:33:47
Message-ID: 200308132333.h7DNXlL17323@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers pgsql-patches

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > /* Limit non-superuser changes */
> > if (record->context == PGC_USERLIMIT &&
> > source > PGC_S_UNPRIVILEGED &&
> > newval < conf->session_val &&
> ^^^^^^^^^^^
>
> I had in mind s/session_val/reset_val/ right here. Why wouldn't that
> work?

Yes, I have been thinking of that. The big question is whether a
non-super user can control the reset value? I don't know the answer, so
I didn't take the chance. Does anyone know? I assume Peter does and
was hoping for his help on this before we go 7.4 final.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Stehule 2003-08-14 06:20:18 segmention fault in psql from last cvs (long)
Previous Message Bertrand Petit 2003-08-13 23:05:29 Re: [BUGS] 7.4 beta 1: SET log_statement=false

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-08-14 00:00:29 Re: UPDATED UnixWare Threads Patch.
Previous Message Bertrand Petit 2003-08-13 23:05:29 Re: [BUGS] 7.4 beta 1: SET log_statement=false

Browse pgsql-patches by date

  From Date Subject
Next Message Euler Taveira de Oliveira 2003-08-13 23:34:01 Re: Translation to Brazilian Portuguese
Previous Message Bertrand Petit 2003-08-13 23:05:29 Re: [BUGS] 7.4 beta 1: SET log_statement=false