Re: commit dentro de plpgsql

From: Alvaro Herrera <alvherre(at)surnet(dot)cl>
To: "Ing(dot) Jhon Carrillo - Caracas, Venezuela" <jdigital(at)cantv(dot)net>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: commit dentro de plpgsql
Date: 2005-05-26 19:32:45
Message-ID: 20050526193245.GD10667@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Thu, May 26, 2005 at 03:16:30PM -0400, Ing. Jhon Carrillo - Caracas, Venezuela wrote:

> En PG 7.4 como puedo utilizar las instrucciones de transacción
> commit, begin, rollback dentro de una function pl/pgsql?

De ninguna manera. Las funciones son atomicas y ya estan contenidas en
una transaccion, la cual no puedes cerrar hasta despues que la funcion
haya terminado.

--
Alvaro Herrera (<alvherre[a]surnet.cl>)
"You knock on that door or the sun will be shining on places inside you
that the sun doesn't usually shine" (en Death: "The High Cost of Living")

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jaime Casanova 2005-05-26 19:47:46 Re: Indices
Previous Message Alvaro Herrera 2005-05-26 19:17:50 Re: Indices