Re: [HACKERS] [COMMITTERS] pgsql: Forbid setval() during recovery.

2010-02-20 Thread Andres Freund
On Saturday 20 February 2010 17:34:50 Tom Lane wrote: > hei...@postgresql.org (Heikki Linnakangas) writes: > > Forbid setval() during recovery. This prevents the PANIC reported by > > Erik Rijkers. Patch by Andres Freund. > > ISTM this is the wrong fix. The real bug is that setval() doesn't > ch

Re: [HACKERS] [COMMITTERS] pgsql: Forbid setval() during recovery.

2010-02-20 Thread Tom Lane
hei...@postgresql.org (Heikki Linnakangas) writes: > Forbid setval() during recovery. This prevents the PANIC reported by > Erik Rijkers. Patch by Andres Freund. ISTM this is the wrong fix. The real bug is that setval() doesn't check XactReadOnly. Now XactReadOnly is only a "soft" read only mod