X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D896CD1B54F for ; Thu, 6 Nov 2003 09:47:41 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 40676-10 for ; Thu, 6 Nov 2003 05:47:12 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 1379CD1B4F9 for ; Thu, 6 Nov 2003 05:47:10 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id hA69l9Nu026879 for ; Thu, 6 Nov 2003 09:47:09 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hA69QxAv023965 for pgsql-sql@postgresql.org; Thu, 6 Nov 2003 09:26:59 GMT From: Cris Carampa X-Newsgroups: comp.databases.postgresql.sql Subject: transaction management in plpgsql functions Date: Thu, 06 Nov 2003 10:24:56 +0100 Organization: NETTuno Lines: 14 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: news@nettuno.it User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031009 X-Accept-Language: it, en-us X-Enigmail-Version: 0.76.7.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.3 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS, MAILTO_TO_SPAM_ADDR, USER_AGENT_MOZILLA_UA X-Spam-Level: * X-Archive-Number: 200311/71 X-Sequence-Number: 15886 It seems that transaction management statements (begin work...commit work) are not allowed into plpgsql functions. Is it true? If true, what happens if I put a DML statement into a function? Is it automatically commited every time the function executes? Is there no way to rollback the changes? Kind regards, -- Cris Carampa (spamto:cris119@operamail.com) "Poveri fanatici comunisti, noglobal e affetti dalla sindrome anti-microsoft" (gli utenti Linux secondo un poster di ICOD)