Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Select for update nowait cancela la transacción


  • From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
  • To: Gregorio Diaz <gregorio_diaz(at)yahoo(dot)com>
  • Cc: pgsql-es-ayuda(at)postgresql(dot)org
  • Subject: Re: Select for update nowait cancela la transacción
  • Date: Wed, 31 May 2006 07:55:55 -0400
  • Message-id: <20060531115554(dot)GA5028(at)surnet(dot)cl>

Gregorio Diaz escribió:

> 1. ¿Cómo puedo evitar que la segunda transacción se
> cancele al generarse el error?

Una idea seria usar un SAVEPOINT antes del SELECT FOR UPDATE.

> 2. Qué estrategia me sugieren para evitar estos
> conflictos.

Depende de para que los necesitas.  En algunos casos son inevitables.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group