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 1i5GYI-0003dx-G0 for pgsql-general@arkaria.postgresql.org; Tue, 03 Sep 2019 21:41:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5GYG-0007s9-D4 for pgsql-general@arkaria.postgresql.org; Tue, 03 Sep 2019 21:41:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5GYG-0007o8-0O for pgsql-general@lists.postgresql.org; Tue, 03 Sep 2019 21:41:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i5GYD-0006uj-Fr for pgsql-general@lists.postgresql.org; Tue, 03 Sep 2019 21:41:22 +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 x83LfCjB007113; Tue, 3 Sep 2019 17:41:12 -0400 From: Tom Lane To: Adrian Klaver cc: "Kumar, Virendra" , "pgsql-general@lists.postgresql.org" Subject: Re: Running a Simple Update Statement Fails, Second Time Suceeds. In-reply-to: <57a979ef-52a6-2b66-9be6-1b7623d53229@aklaver.com> References: <68c971c331604cc68faf571d5ca287ed@USFKL11XG20CN01.mercer.com> <57a979ef-52a6-2b66-9be6-1b7623d53229@aklaver.com> Comments: In-reply-to Adrian Klaver message dated "Tue, 03 Sep 2019 14:32:09 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7111.1567546872.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 03 Sep 2019 17:41:12 -0400 Message-ID: <7112.1567546872@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver writes: > On 9/3/19 1:56 PM, Kumar, Virendra wrote: >> Here is simple query, I am running via function call. This statement = >> runs fine as SQL but when put in function as plpgsql it failes with = >> error below, when I ran second times in same session it succeeds: > We will need to see the function definition. Also, what PG version is that? This looks a bit like bug #15913, but it might be something else. >> This message is intended only for the use of the addressee and may cont= ain >> information that is PRIVILEGED AND CONFIDENTIAL. >> = >> If you are not the intended recipient, you are hereby notified that any >> dissemination of this communication is strictly prohibited. If you have >> received this communication in error, please erase all copies of the me= ssage >> and its attachments and notify the sender immediately. Thank you. I rather wonder whether I'm even allowed to read this, let alone answer it. You do realize that this sort of add-on is completely silly on a public mailing list? regards, tom lane