Re: Locking tables

From: Markus Bertheau <twanger(at)bluetwanger(dot)de>
To: Dmitry Tkach <dmitry(at)openratings(dot)com>
Cc: Allan Berger <alb2(at)cornell(dot)edu>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Locking tables
Date: 2003-07-22 21:38:57
Message-ID: 1058909937.5502.4.camel@saphir
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

В Пнд, 21.07.2003, в 20:03, Dmitry Tkach пишет:

> select * from table where id=1 FOR UPDATE;
>
> ... is what you are looking for - this will put a lock on the rows that
> actually get selected, so that another transaction will not be able to
> modify them until you commit or rollback.

Can new rows be inserted by another connection with id = 1?

--
Markus Bertheau.
Berlin, Berlin.
Germany.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Dmitry Tkach 2003-07-22 22:02:51 Re: Locking tables
Previous Message Bruno Wolff III 2003-07-22 17:07:33 Re: Encrypted data.