Re: For update

From: Ottó Havasvölgyi <havasvolgyi(dot)otto(at)gmail(dot)com>
To: Ottó Havasvölgyi <havasvolgyi(dot)otto(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: For update
Date: 2006-01-16 21:33:08
Message-ID: 34608c0c0601161333y54d6a285l@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello,

Huh, it was weeks ago, and I thought it was normal. It was a simple view
with one or two inner joins and without aggragates. Perhaps somebody could
try it. I got an error message, that said I cannot do that. I cannot
remember the exact message unfortunately.

Best Regards,
Otto

2006/1/16, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>:
>
> Ottó Havasvölgyi wrote:
>
> > What does this do exactly:
> >
> > select * from <ViewName> where <condition> for update;
> >
> > Will be locked all the tuples in all tables it retrieves?
>
> Yes.
>
> > In 8.0.5 this did not work for me.
>
> How did it not work? Was any error message emitted? What is the view
> definition?
>
> --
> Alvaro Herrera Developer,
> http://www.PostgreSQL.org <http://www.postgresql.org/>
> "MySQL is a toy compared to PostgreSQL." (Randal L. Schwartz)
> (http://archives.postgresql.org/pgsql-general/2005-07/msg00517.php)
>

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Alvaro Herrera 2006-01-16 21:37:46 Re: For update
Previous Message Owen Jacobson 2006-01-16 18:53:52 Re: best way for constants in the database