pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: TalGloz <glozmantal@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Executing a Function with an INSERT INTO command fails
Date: Wed, 29 Aug 2018 12:33:07 -0400
Message-ID: <21059.1535560387@sss.pgh.pa.us> (raw)
In-Reply-To: <1535560026747-0.post@n3.nabble.com>
References: <1535533938898-0.post@n3.nabble.com>
	<019001d43f86$11742960$345c7c20$@swisspug.org>
	<1535541719123-0.post@n3.nabble.com>
	<019e01d43f91$5f3c4460$1db4cd20$@swisspug.org>
	<1535560026747-0.post@n3.nabble.com>

TalGloz <glozmantal@gmail.com> writes:
> This is very strange, even if I comment all the loops in the function and
> leave only the INSERT INTO command the insert still doesn't happen.

Maybe you're rolling back the transaction after leaving the function?

			regards, tom lane




view thread (14+ messages)  latest in thread

Message-ID: <21059.1535560387@sss.pgh.pa.us>
Permalink:  ../21059.1535560387@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21059.1535560387@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, glozmantal@gmail.com
  Subject: Re: Executing a Function with an INSERT INTO command fails
  In-Reply-To: <21059.1535560387@sss.pgh.pa.us>
  References: <1535533938898-0.post@n3.nabble.com> <019001d43f86$11742960$345c7c20$@swisspug.org> <1535541719123-0.post@n3.nabble.com> <019e01d43f91$5f3c4460$1db4cd20$@swisspug.org> <1535560026747-0.post@n3.nabble.com> <21059.1535560387@sss.pgh.pa.us>

* 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