Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E165464FD1F for ; Mon, 15 Sep 2008 13:56:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18224-02 for ; Mon, 15 Sep 2008 13:55:58 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by postgresql.org (Postfix) with ESMTP id C118264FCFD for ; Mon, 15 Sep 2008 13:55:40 -0300 (ADT) Received: by yx-out-2324.google.com with SMTP id 8so686357yxb.73 for ; Mon, 15 Sep 2008 09:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=UfOjZ+UIm3XPIPKTQlM2fgjF5EPk056dyFM4HKcX8pY=; b=t5Xm8evif5h+eBSgzRjwwEjICflGJL82h/33tIakFFb/djkqCYMf1teBxAQD7nhx4Y ff8IbeqE2J3YOEUm6z7dAinYAoR5UkLtvraByPUs6wB9HpJqyYTOC84fOHBPnGPOAu/5 CVOMCSm9cJUt7dE8LlxINvOkV4GLacmzT26bw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=JkAfmjBxamPHw8B58MVNf5YEaqcRICh6hvEaCz4GC9ua33MTvcZYCOpWDu7njugMoA cqTzNeM82fMa9K1LR7ywZglyJ/CgVPN2ssQSGpVsA0ifhbAFbcfXu3z2uu9HVFstTPYJ mTG9J6497FLoDqFtnIqtjavL9qsPph/R4MgAw= Received: by 10.150.51.2 with SMTP id y2mr11094450yby.42.1221497738073; Mon, 15 Sep 2008 09:55:38 -0700 (PDT) Received: by 10.150.146.4 with HTTP; Mon, 15 Sep 2008 09:55:38 -0700 (PDT) Message-ID: Date: Mon, 15 Sep 2008 22:25:38 +0530 From: "c k" To: pgsql-general@postgresql.org, pgsql-admin@postgresql.org Subject: Functions MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13834_27070978.1221497738059" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200809/135 X-Sequence-Number: 30228 ------=_Part_13834_27070978.1221497738059 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dear PG members,I want to know that does begin and end in plpgsql are related to begin transactions and commit? if yes/no how? If I start to execute a function of multiple statements does PG commits each transaction within a function, or whole function as a transaction. Also if first statement makes inserts/updates a row, does it automatically available to that particular function execution only or to any other instances of same function? Please give the details. In my system, function are extensively used and cab called by different clients as ODBC, JDBC and others. Thanks for help, CPK ------=_Part_13834_27070978.1221497738059 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Dear PG members,
I want to know that does begin and end in plpgsql are related to begin transactions and commit? if yes/no how? If I start to execute a function of multiple statements does PG commits each transaction within a function, or whole function as a transaction. 
Also if first statement makes inserts/updates a row, does it automatically available to that particular function execution only or to any other instances of same function?
Please give the details.

In my system, function are extensively used and cab called by different clients as ODBC, JDBC and others.

Thanks for help,

CPK
------=_Part_13834_27070978.1221497738059--