Re: unlock rows

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: jose antonio leo <jaleo8(at)storelandia(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: unlock rows
Date: 2003-03-13 17:31:53
Message-ID: Pine.LNX.4.33.0303131029490.21002-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

  • unlock rows at 2003-03-13 08:54:52 from jose antonio leo

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2003-03-13 17:33:03 Re: I cannot get the db to initialize. Please help.
Previous Message scott.marlowe 2003-03-13 17:27:54 Re: Audit trail