Re: Locking in PostgreSQL? - Mailing list pgsql-general

From Markus Schiltknecht
Subject Re: Locking in PostgreSQL?
Date
Msg-id 45766D30.3010008@bluegap.ch
Whole thread Raw
In response to Locking in PostgreSQL?  (Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>)
List pgsql-general
Hi,

Joost Kraaijeveld wrote:
> Does PostgreSQL lock the entire row in a table if I update only 1
> column?

Yes. In PostgreSQL, an update is much like a delete + insert. A
concurrent transaction will still see the old row. Thus the lock only
prevents other writing transactions, not readers.

Regards

Markus

P.S.: please do not cross post such questions.

pgsql-general by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: Speed of postgres compared to ms sql, is this
Next
From: Leonard Soetedjo
Date:
Subject: Error in installing compat-postgresql-libs rpm