Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glh59-0003yU-Iy for pgsql-general@arkaria.postgresql.org; Mon, 21 Jan 2019 21:26:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1glh58-0003FI-6i for pgsql-general@arkaria.postgresql.org; Mon, 21 Jan 2019 21:26:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gldaH-0007tC-Vj for pgsql-general@lists.postgresql.org; Mon, 21 Jan 2019 17:42:06 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gldaE-00076v-Jg for pgsql-general@postgresql.org; Mon, 21 Jan 2019 17:42:05 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id EE910118A13C0 for ; Mon, 21 Jan 2019 10:41:59 -0700 (MST) Date: Mon, 21 Jan 2019 10:41:59 -0700 (MST) From: andyterry To: pgsql-general@postgresql.org Message-ID: <1548092519939-0.post@n3.nabble.com> In-Reply-To: <7422ca90-de58-2bad-61e7-2365385829ca@aklaver.com> References: <1548074591211-0.post@n3.nabble.com> <7422ca90-de58-2bad-61e7-2365385829ca@aklaver.com> Subject: Re: commit within a procedure loop - cannot commite with subtransaction MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thanks Adrian, It is PostgreSQL 11. The procedure listed is calling one postgres function which is in turn calling another postgres function but no additional procedure, just functions. It's a bit lengthy to explain what the functions are doing so i'll try testing with a less complex task i think so i can narrow things down. Appreciate your response Andy -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html