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 1i5X2H-0004Il-9o for pgsql-general@arkaria.postgresql.org; Wed, 04 Sep 2019 15:17:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5X2G-0002z0-2c for pgsql-general@arkaria.postgresql.org; Wed, 04 Sep 2019 15:17:28 +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 1i5X2F-0002wp-P9 for pgsql-general@lists.postgresql.org; Wed, 04 Sep 2019 15:17:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5X2D-0005p6-Ls for pgsql-general@lists.postgresql.org; Wed, 04 Sep 2019 15:17:27 +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 x84FHIgV003001; Wed, 4 Sep 2019 11:17:18 -0400 From: Tom Lane To: "Kumar, Virendra" cc: Adrian Klaver , "pgsql-general@lists.postgresql.org" Subject: Re: Running a Simple Update Statement Fails, Second Time Suceeds. In-reply-to: <7f6d75f52c0a4ec4b87790c5e17a7d53@USFKL11XG20CN01.mercer.com> References: <68c971c331604cc68faf571d5ca287ed@USFKL11XG20CN01.mercer.com> <57a979ef-52a6-2b66-9be6-1b7623d53229@aklaver.com>,<7112.1567546872@sss.pgh.pa.us> <7f6d75f52c0a4ec4b87790c5e17a7d53@USFKL11XG20CN01.mercer.com> Comments: In-reply-to "Kumar, Virendra" message dated "Wed, 04 Sep 2019 15:02:26 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2999.1567610238.1@sss.pgh.pa.us> Date: Wed, 04 Sep 2019 11:17:18 -0400 Message-ID: <3000.1567610238@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Kumar, Virendra" writes: > Here is function code: Hm, nothing very exciting in there. But the known reasons for this type of error involve something changing a table rowtype that the function uses (that is, ALTER TABLE ADD COLUMN or the like). Or dropping/recreating such a table altogether. Is there any part of your workflow that redefines the type of product_owner.external_sys_class_code_pres.audit_update_dt or product_owner.external_sys_class_code_pres ? Also, you still didn't tell us the server's version. regards, tom lane