Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.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@candle.pha.pa.us | (610)
359-1001+ If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square,
Pennsylvania19073