Re: [GENERAL] Locking in PostgreSQL?

2006-12-05 Thread Markus Schiltknecht

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.

---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
  choose an index scan if your joining column's datatypes do not
  match


[GENERAL] Locking in PostgreSQL?

2006-12-05 Thread Joost Kraaijeveld
Does PostgreSQL lock the entire row in a table if I update only 1
column?


-- 
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl

---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster