Re: Explicitly rolling back transaction from within a C-Language function

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Mark Dilger <markdilger(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Explicitly rolling back transaction from within a C-Language function
Date: 2004-11-24 19:53:27
Message-ID: 20041124195327.GA75087@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2004-11-25 18:29:42 Re: User defined types
Previous Message Mark Dilger 2004-11-24 19:23:30 Explicitly rolling back transaction from within a C-Language function