Re: Trouble with Savepoints in postgres - Mailing list pgsql-general

From Tom Lane
Subject Re: Trouble with Savepoints in postgres
Date
Msg-id 23988.1205600595@sss.pgh.pa.us
Whole thread Raw
In response to Re: Trouble with Savepoints in postgres  (sam <sam.mahindrakar@gmail.com>)
List pgsql-general
sam <sam.mahindrakar@gmail.com> writes:
> Ok i realised that the only way data can be committed within a
> procedure is to use nested BEGIN......END.

Nothing that you said in this message is correct.  You can't "commit"
anything within a function, and bare BEGIN/END don't do anything at
all except create a syntactic grouping.

BEGIN/EXCEPT/END can indeed be used to limit the scope of errors,
but I don't think the way you've described it is a helpful way
to think about it, even with that correction.

            regards, tom lane

pgsql-general by date:

Previous
From: sam
Date:
Subject: Re: Trouble with Savepoints in postgres
Next
From: Craig Ringer
Date:
Subject: Re: Trouble with Savepoints in postgres