Skip site navigation (1) Skip section navigation (2)

Re: transaction is read-only error

From: Salil Wadnerkar <rohshall(at)gmail(dot)com>
To: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: transaction is read-only error
Date: 2010-09-17 10:14:35
Message-ID: AANLkTikjzDubZauNTGE9to_d1jym-kf41GxNnLfxLT3G@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
Hi Josh,

Thanks for replying. I tried the "set transaction" command. I still
get the "transaction is read-only" error when I issue the "insert
into" command.
If there is no other solution, how do I set the value of the variable
"default_transaction_read_only" to false from the admin console?

regards
Salil


On Wed, Sep 15, 2010 at 6:04 AM, Josh Kupershmidt <schmiddy(at)gmail(dot)com> wrote:
> On Tue, Sep 14, 2010 at 5:31 AM, Salil Wadnerkar <rohshall(at)gmail(dot)com> wrote:
> [snip]
>> This last line generates the error. So, I gave superuser permission to
>> this user gm-dbo because I think non-superusers cannot change
>> "default_transaction_read_only" to true.
>
> I think any user should be able to issue:
>  SET TRANSACTION READ WRITE;
> at the beginning of a transaction, have you tried this?
>
> Josh
>

In response to

Responses

pgsql-novice by date

Next:From: Siddharth SahaDate: 2010-09-17 10:36:54
Subject: Re: List of User Defined Types?
Previous:From: Richard BroersmaDate: 2010-09-17 03:53:44
Subject: Re: Unable to use VIEWS (Ok button remains shaded)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group