Re: lock timeout

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Oswaldo Hernández <listas(at)soft-com(dot)es>
Cc: Lista Postgres <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: lock timeout
Date: 2005-01-13 23:04:11
Message-ID: 20050113230411.GF11197@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Thu, Jan 13, 2005 at 09:44:33PM +0100, Oswaldo Hernández wrote:

Hola,

> No encuentro ningun punto ni variable para configurar el valor de
> timeout para los locks.

No hay.

> El problema es que cuando ejecuto un bloqueo sobre una tabla, o un
> registro, y desde otro proceso intento realizar una actualización sobre
> el registro bloqueado, este se queda esperando indefinidamente y nunca
> da el error de 'registro bloqueado'.

Realmente necesitas bloquear el registro en cuestion? Echale una mirada
a esta presentacion:

http://conferences.oreillynet.com/cs/os2002/view/e_sess/2681

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
Essentially, you're proposing Kevlar shoes as a solution for the problem
that you want to walk around carrying a loaded gun aimed at your foot.
(Tom Lane)

In response to

  • lock timeout at 2005-01-13 20:44:33 from Oswaldo Hernández

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message viernes 2005-01-13 23:23:30 Transaciones en pgsql
Previous Message Alvaro Herrera 2005-01-13 22:56:02 Re: Consulta sobre deadlock