Received: from mx1.organic.com (mx1.organic.com [207.76.139.5]) by postgresql.org (Postfix) with ESMTP id 6191D4772FD for ; Wed, 27 Feb 2002 12:28:01 -0500 (EST) Received: from vw-sf.organic.com (vw-sf.organic.com [207.76.139.10]) by mx1.organic.com (8.9.3+Sun/8.9.3) with SMTP id JAA27506 for ; Wed, 27 Feb 2002 09:27:44 -0800 (PST) Received: FROM fwd1-sf.organic.com BY vw-sf.organic.com ; Wed Feb 27 09:28:12 2002 -0800 Received: from goldengate.organic.com (goldengate.organic.com [192.168.5.47]) by fwd1-sf.organic.com (8.9.3+Sun/8.9.3) with ESMTP id JAA22782 for ; Wed, 27 Feb 2002 09:30:26 -0800 (PST) Received: from cpesko-del-sfo.organic.com (h28.n23.organic.com [192.168.23.28]) by goldengate.organic.com (8.9.3+Sun/8.9.3) with ESMTP id JAA26001 for ; Wed, 27 Feb 2002 09:28:16 -0800 (PST) Message-Id: <4.3.2.7.2.20020227092743.0306bb40@mailhost.organic.com> X-Sender: cpesko@mailhost.organic.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Wed, 27 Feb 2002 09:30:04 -0800 To: pgsql-admin@postgresql.org From: Chris Pesko Subject: transactions and cursors...... Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200202/373 X-Sequence-Number: 3526 Can I put transactions and cursors into functions? 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?