From: Roberto Mello <rmello@cc.usu.edu>
To: Jie Liang <jliang@ipinc.com>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-hacker@postgresql.org
Subject: Re: plpgsql
Date: Fri, 20 Apr 2001 19:58:12 -0600
Message-ID: <20010420195812.A24166@cc.usu.edu> (raw)
In-Reply-To: <Pine.BSF.4.10.10104201646290.99410-100000@tidal.ipinc.com>
References: <Pine.BSF.4.10.10104201646290.99410-100000@tidal.ipinc.com>
On Fri, Apr 20, 2001 at 04:58:02PM -0700, Jie Liang wrote:
>
> I 've a question about begin...end in plpgsql
> does
> sql stmts in
> begin
> ....
> end;
> will go one transaction?
Read the documentation (programmer's guide). It's all there. It's to
answer your questions that we take the time to write docs in the first
place :)
Short answer: everything in your function is executed in one
transaction. BEGIN and END in PL/pgSQL are NOT the same as in the
transaction semantics.
-Roberto
--
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
Roberto Mello - Computer Science, USU - http://www.brasileiro.nethttp://www.sdl.usu.edu - Space Dynamics Lab, Developer
If at first you don't succeed, destroy all evidence that you tried.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rmello@cc.usu.edu, jliang@ipinc.com, pgsql-hacker@postgresql.org
Subject: Re: plpgsql
In-Reply-To: <20010420195812.A24166@cc.usu.edu>
* 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