Re: Explicitly rolling back transaction from within a C-Language function - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: Explicitly rolling back transaction from within a C-Language function
Date
Msg-id 20041124195327.GA75087@winnie.fuhr.org
Whole thread Raw
In response to Explicitly rolling back transaction from within a C-Language function  (Mark Dilger <markdilger@yahoo.com>)
List pgsql-sql
On Wed, Nov 24, 2004 at 11:23:30AM -0800, Mark Dilger wrote:

> To clarify what I think I want:  I would like the
> C-Language function to return an error condition to
> Postgres that will cause the current Postgres
> transaction to abort.  I do not know how to do this.

See the "Reporting Errors Within the Server" documentation:

http://www.postgresql.org/docs/7.4/static/error-message-reporting.html

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


pgsql-sql by date:

Previous
From: Mark Dilger
Date:
Subject: Explicitly rolling back transaction from within a C-Language function
Next
From: terry@greatgulfhomes.com
Date:
Subject: Re: NULLS and string concatenation