Re: unlock rows - Mailing list pgsql-general

From scott.marlowe
Subject Re: unlock rows
Date
Msg-id Pine.LNX.4.33.0303131029490.21002-100000@css120.ihs.com
Whole thread Raw
In response to unlock rows  ("jose antonio leo" <jaleo8@storelandia.com>)
Responses Re: unlock rows
List pgsql-general
On Thu, 13 Mar 2003, jose antonio leo wrote:

> Hi guys,
>
> I want to control and I know the rows blocks in a table. If it is necesary
> unlock the rows.
> How can I do it?
> Can I put a timeout and unlock the rows after?
> Maybe a pgsql parameter?

Are you sure that's what you want?

Postgresql uses MVCC for locking, which is basically better than row level
locking.  In fact, this system allows multiple writes to be occuring to
your database, and for the readers to never be blocked.

Locking individual rows is a recipe for disaster under heavy parallel
load, and is usually overkill for data integrity in about 90% of all
applications.

What are you trying to accomplish?  Telling us that may help us figure out
a better (faster, more reliable, more scalable) answer.

Row locking is almost always NOT it.


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: I cannot get the db to initialize. Please help.
Next
From: "scott.marlowe"
Date:
Subject: Re: Help