Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syY3h-000hvj-Km for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Oct 2024 14:53:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1syY2i-002Okj-S8 for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Oct 2024 14:52:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syY2i-002Okb-Jq for pgsql-bugs@lists.postgresql.org; Wed, 09 Oct 2024 14:52:00 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1syY2g-00036e-E6 for pgsql-bugs@lists.postgresql.org; Wed, 09 Oct 2024 14:51:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 499Eps482422366; Wed, 9 Oct 2024 10:51:54 -0400 From: Tom Lane To: Greg Sabino Mullane cc: Todd Brandys , "David G. Johnston" , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18647: INSERT statements execute functions twice. In-reply-to: References: <18647-8ac606f2f23b1621@postgresql.org> <8394679D-5AA0-4727-A28A-BE08A0A11103@gmail.com> Comments: In-reply-to Greg Sabino Mullane message dated "Wed, 09 Oct 2024 09:55:58 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2422364.1728485514.1@sss.pgh.pa.us> Date: Wed, 09 Oct 2024 10:51:54 -0400 Message-ID: <2422365.1728485514@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Greg Sabino Mullane writes: > More detail is still needed. We don't have access to your schemas and > functions. But at first glance, there is something else going on, not > explained by the given code. Try to remove the unimportant parts and get it > down to a reproducible test case. Yes, we really need a self-contained test case. Also, is this stock community Postgres, or some derivative (RDS, EDB, etc)? Do you have any extensions installed? regards, tom lane