how to use savepoint and rollback in function

From: tushar nehete <tpnehete(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: how to use savepoint and rollback in function
Date: 2011-03-16 05:25:23
Message-ID: AANLkTikBKPa-uvrCsjxkTmEhMbBZf8GeHApKvkZ=Lu_j@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All,
In Postgresql we can use savepoint and rollback to savepoint in transaction.
But we cannot use savepoint in function.
Currently I am doing migration from Informix to Postgresql 8.4.
In Informix they used Savepoint.
Please advice how to use Savepoint and rollback to savepoint in function.
I know Postgresql has autocommit. But I want to rollback to a particular
savepoint.

Thanks & Regards,
Tushar

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2011-03-16 07:35:46 Re: A join of 2 tables with sum(column) > 30
Previous Message Francisco Figueiredo Jr. 2011-03-16 02:37:06 Re: [GENERAL] Re: [GENERAL] Different encoding for string values and identifier strings? Or (select 'tést' as tést) returns different values for string and identifier...