pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Mark Dilger <markdilger@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Explicitly rolling back transaction from within a C-Language function
Date: Wed, 24 Nov 2004 12:53:27 -0700
Message-ID: <20041124195327.GA75087@winnie.fuhr.org> (raw)
In-Reply-To: <20041124192330.5327.qmail@web52804.mail.yahoo.com>
References: <20041124192330.5327.qmail@web52804.mail.yahoo.com>

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/



view thread (2+ messages)

Message-ID: <20041124195327.GA75087@winnie.fuhr.org>
Permalink:  ../20041124195327.GA75087@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20041124195327.GA75087@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, markdilger@yahoo.com
  Subject: Re: Explicitly rolling back transaction from within a C-Language function
  In-Reply-To: <20041124195327.GA75087@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox