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.96) (envelope-from ) id 1wVcjl-0025Y0-0Y for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2026 22:09:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVcjk-00F2H4-0K for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2026 22:09:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wVcjj-00F2Gu-2h for pgsql-hackers@lists.postgresql.org; Fri, 05 Jun 2026 22:09:55 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wVcjh-00000001Uzn-2XNe for pgsql-hackers@postgresql.org; Fri, 05 Jun 2026 22:09:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 655M9l563788239; Fri, 5 Jun 2026 18:09:47 -0400 From: Tom Lane To: Ayush Tiwari cc: PostgreSQL Hackers , =?UTF-8?Q?=C3=81lvaro_Herrera?= , Nathan Bossart Subject: Re: Remove the refint contrib module (for v20) In-reply-to: References: Comments: In-reply-to Ayush Tiwari message dated "Sat, 06 Jun 2026 00:57:56 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3788237.1780697387.1@sss.pgh.pa.us> Date: Fri, 05 Jun 2026 18:09:47 -0400 Message-ID: <3788238.1780697387@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ayush Tiwari writes: > Thoughts? Does this look like the right approach, or is there a > reason to keep refint around? The only reason for refint to exist anymore is as example code, but I think it's well short of our current standards, so it really would need more work if we want to keep it. Some things I'd want to see worked on if we keep it: * The comments are not great * Error handling is haphazard, eg inconsistent mix of elog and ereport * After the cache-ectomy, it's hardly clear why it's still using SPI_prepare rather than just SPI_execute_with_args I doubt that anyone really wants to put in that work, so I'm good with just removing it. regards, tom lane