[GENERAL] ERROR: cannot execute nextval() in a read-only transaction

2011-05-11 Thread Dae-man Yang
I upgrade postgresql from 8.4.2 to 9.0.4. But I have one problem. The Error message 'cannot execute nextval() in a read-only transaction' Please help me. [Version 8.4.2] DEVDB=# select version(); version

Re: [GENERAL] ERROR: cannot execute nextval() in a read-only transaction

2011-05-11 Thread Craig Ringer
On 05/11/2011 02:29 PM, Dae-man Yang wrote: I upgrade postgresql from 8.4.2 to 9.0.4. But I have one problem. The Error message 'cannot execute nextval() in a read-only transaction' Please help me. nextval() modifies a sequence, so you shouldn't be doing it in a read-only transaction. Pg