pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavan Deolasee <pavan.deolasee@gmail.com>
To: luke.78@libero.it <luke.78@libero.it>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Problem commit in function
Date: Mon, 7 Apr 2008 18:06:12 +0530
Message-ID: <2e78013d0804070536t8037783x5078bd0074195a09@mail.gmail.com> (raw)
In-Reply-To: <JYYG3F$987AB0A541D783E71C50559CF6747664@libero.it>
References: <JYYG3F$987AB0A541D783E71C50559CF6747664@libero.it>

On Mon, Apr 7, 2008 at 6:00 PM, luke.78@libero.it <luke.78@libero.it> wrote:
> Hi,
>  I need to execute COMMIT in a function pgsql,
>  there is a way?
>

No. Transaction control statements like COMMIT/ROLLBACK/SAVEPOINT
are not supported inside plpgsql functions.

If you can tell us what you are trying to do, somebody may help you
with that.

Thanks,
Pavan

-- 
Pavan Deolasee
EnterpriseDB http://www.enterprisedb.com



view thread (3+ messages)  latest in thread

Message-ID: <2e78013d0804070536t8037783x5078bd0074195a09@mail.gmail.com>
Permalink:  ../2e78013d0804070536t8037783x5078bd0074195a09@mail.gmail.com/
Also on:    postgresql.org/message-id/2e78013d0804070536t8037783x5078bd0074195a09@mail.gmail.com

 · 

reply

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: pavan.deolasee@gmail.com, luke.78@libero.it
  Subject: Re: Problem commit in function
  In-Reply-To: <2e78013d0804070536t8037783x5078bd0074195a09@mail.gmail.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