pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Langille <dan@langille.org>
To: Chris Pesko <cpesko@organic.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: transactions and cursors......
Date: Wed, 27 Feb 2002 15:14:55 -0500
Message-ID: <200202272015.g1RKExk94176@lists.unixathome.org> (raw)
In-Reply-To: <4.3.2.7.2.20020227092743.0306bb40@mailhost.organic.com>

On 27 Feb 2002 at 9:30, Chris Pesko wrote:

> Can I put transactions and cursors into functions?  

No.

> As soon as I put BEGIN;
> and COMMIT; wrapping an insert statement within a function, I get errors. 
> Do these programs need to reside outside of the database?

AFAIK, yes.
-- 
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/ - practical examples




view thread (3+ messages)  latest in thread

Message-ID: <200202272015.g1RKExk94176@lists.unixathome.org>
Permalink:  ../200202272015.g1RKExk94176@lists.unixathome.org/
Also on:    postgresql.org/message-id/200202272015.g1RKExk94176@lists.unixathome.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: dan@langille.org, cpesko@organic.com
  Subject: Re: transactions and cursors......
  In-Reply-To: <200202272015.g1RKExk94176@lists.unixathome.org>
  References: <4.3.2.7.2.20020227092743.0306bb40@mailhost.organic.com> <200202272015.g1RKExk94176@lists.unixathome.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