Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158]) by postgresql.org (Postfix) with ESMTP id E8093477005 for ; Wed, 27 Feb 2002 15:15:10 -0500 (EST) Received: from wocker (lists.unixathome.org [210.48.103.158]) by lists.unixathome.org (8.11.6/8.11.6) with ESMTP id g1RKExk94176; Thu, 28 Feb 2002 09:15:00 +1300 (NZDT) (envelope-from dan@lists.unixathome.org) Message-Id: <200202272015.g1RKExk94176@lists.unixathome.org> From: "Dan Langille" Organization: DVL Software Limited To: Chris Pesko Date: Wed, 27 Feb 2002 15:14:55 -0500 MIME-Version: 1.0 Subject: Re: transactions and cursors...... Reply-To: dan@langille.org Cc: pgsql-admin@postgresql.org In-reply-to: <4.3.2.7.2.20020227092743.0306bb40@mailhost.organic.com> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Archive-Number: 200202/374 X-Sequence-Number: 3527 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