From: Dennis Sacks <dennis@illusions.com>
To: pgsql-sql@postgresql.org
Subject: commit inside plpgsql function
Date: Tue, 21 Dec 2004 10:21:51 -0700
Message-ID: <41C85BAF.6000305@illusions.com> (raw)
Hi,
I am converting oracle stored procedures to plpgsql. There are several
of the oracle procedures where a parameter vCommit is passed into the
procedure and:
if vCommit = 1
then
commit;
do_something_commit(vdate);
else
do_something(vdate);
end if;
does this make sense in plpgsql? Does it make sense to do a commit in
plpgsql?
Thanks,
Dennis
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: dennis@illusions.com
Subject: Re: commit inside plpgsql function
In-Reply-To: <41C85BAF.6000305@illusions.com>
* 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