agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Christopher Browne <cbbrowne@sympatico.ca>
To: Suresh Raja <suresh.rajaabc@gmail.com>
Cc: pgsql-sql@postgresql.org, PostgreSQL Mailing Lists <pgsql-general@postgresql.org>
Subject: Re: commit inside a function failing
Date: Sat, 24 Jan 2015 10:26:58 -0500
Message-ID: <BLU436-SMTP17078F7243A8AD8C98CC6B3B3370@phx.gbl> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

<p dir="ltr">The straightforward answer is that stored functions always run *inside* the context of a preexisting transaction, therefore you cannot request a separate transaction from within a stored function.</p>
<p dir="ltr">What you are asking is fairly deeply impossible.</p>


view thread (5+ messages)

Message-ID: <BLU436-SMTP17078F7243A8AD8C98CC6B3B3370@phx.gbl>
Permalink:  ../BLU436-SMTP17078F7243A8AD8C98CC6B3B3370@phx.gbl/
Also on:    postgresql.org/message-id/BLU436-SMTP17078F7243A8AD8C98CC6B3B3370@phx.gbl

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: cbbrowne@sympatico.ca, suresh.rajaabc@gmail.com, pgsql-general@postgresql.org
  Subject: Re: commit inside a function failing
  In-Reply-To: <BLU436-SMTP17078F7243A8AD8C98CC6B3B3370@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox