Re: returned value from SQL statement

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Alain Roger *EXTERN*" <raf(dot)news(at)gmail(dot)com>, "Craig Ringer" <craig(at)postnewspapers(dot)com(dot)au>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: returned value from SQL statement
Date: 2008-03-27 14:05:08
Message-ID: D960CB61B694CF459DCFB4B0128514C201ED1C0B@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alain Roger wrote:
> the purpose here, it is to solve my problem with a transaction inside a function.

You cannot handle transactions inside a function (apart from using EXCEPTION blocks).
A PostgreSQL function is always executed in a single transaction.

All SQL statements you issue from within a function are in that same transaction.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Seb 2008-03-27 14:25:31 Re: casting from integer to boolean
Previous Message Brad Nicholson 2008-03-27 13:49:33 Re: page is uninitialized --- fixing