Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fv3PE-0005Ku-T1 for pgsql-general@arkaria.postgresql.org; Wed, 29 Aug 2018 16:33:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fv3PB-0008C2-Gq for pgsql-general@arkaria.postgresql.org; Wed, 29 Aug 2018 16:33:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fv3PB-0008Br-5g for pgsql-general@lists.postgresql.org; Wed, 29 Aug 2018 16:33:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fv3P3-00018z-SS for pgsql-general@postgresql.org; Wed, 29 Aug 2018 16:33:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7TGX7Ou021060; Wed, 29 Aug 2018 12:33:07 -0400 From: Tom Lane To: TalGloz cc: pgsql-general@postgresql.org Subject: Re: Executing a Function with an INSERT INTO command fails 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> Comments: In-reply-to TalGloz message dated "Wed, 29 Aug 2018 09:27:06 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21058.1535560387.1@sss.pgh.pa.us> Date: Wed, 29 Aug 2018 12:33:07 -0400 Message-ID: <21059.1535560387@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk TalGloz 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