Re: Trouble with Savepoints in postgres

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: sam <sam(dot)mahindrakar(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Trouble with Savepoints in postgres
Date: 2008-03-11 21:39:10
Message-ID: 20080311213910.GB6737@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

sam escribió:

> Iam not able to understand if this is a version problem or the way iam
> using savepoints is wrong.Please advice.

It is. You cannot use savepoints in PL/pgSQL functions (or any function
for that matter). You can use EXCEPTION clauses instead.

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tri Quach 2008-03-11 21:53:43 Re: Relocation error: /usr/lib/libpq.so.5: undefinedsymbol: krb5_cc_get_principal
Previous Message Thomas Kellerer 2008-03-11 21:33:19 Re: How to convert postgres timestamp to date: yyyy-mm-dd