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 1tPvub-00GPQV-SL for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Dec 2024 03:48:50 +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 1tPvub-001A9S-3P for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Dec 2024 03:48:48 +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.94.2) (envelope-from ) id 1tPvua-001A9K-Jl for pgsql-hackers@lists.postgresql.org; Tue, 24 Dec 2024 03:48:48 +0000 Received: from 008.lax.mailroute.net ([199.89.1.11]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tPvuW-001KMQ-NH for pgsql-hackers@postgresql.org; Tue, 24 Dec 2024 03:48:47 +0000 Received: from localhost (localhost [127.0.0.1]) by 008.lax.mailroute.net (Postfix) with ESMTP id 4YHLTj6Zpxz6CmM5x; Tue, 24 Dec 2024 03:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=mr01; t= 1735012119; x=1737604120; bh=o7Lx57rDQFkta5Eo3gZkkmDT6WbGERSwAE9 Aq1Yy7uo=; b=WjusqpAXEw/rZ6zUm+8SlI0Vpx5+h3Xww6wFsd4LYy4yhhtags3 iyUo0TzndSJs0DSn/vcoiQwqictZKlZJn+5Y/AUdwN2n3fs6OfrOa7xPdBN06bnU v9Z+fUp1GieLc9pD5OMUJqO9lgDfH4Y5GUEObyKkUCR8ig14hw/nZIf8ICtj+Ajx ZX2J+ki1C1zSDDkaG+7Wmjh5ynYm4cjrt2sqIOUk359RhbYQ9Lq9uy52bemNeF9v OE6kRkxxmzTmX6io1vLXvwFEad0NPtRRXCDZy7q9QlsvPqIm9KtuJU6yXYLNSgCm 6TsGI8bCQZ7gZ2FYUsmk/Xz3yMzk4kS9JKA== X-Virus-Scanned: by MailRoute Received: from 008.lax.mailroute.net ([127.0.0.1]) by localhost (008.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id yL7HCOVJWPkE; Tue, 24 Dec 2024 03:48:39 +0000 (UTC) Received: from [73.103.120.3] (c-73-103-120-3.hsd1.in.comcast.net [73.103.120.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jcflack@acm.org) by 008.lax.mailroute.net (Postfix) with ESMTPSA id 4YHLTd2xFKz6CmQvG; Tue, 24 Dec 2024 03:48:36 +0000 (UTC) Subject: Re: Add Postgres module info To: "David E. Wheeler" , Tom Lane References: <506788.1733941263@sss.pgh.pa.us> <2qdclwljzvw5abfvo4porr3ehox32icrbtfjaum327ruxts6qm@udexcbweewpq> <51416962-9118-41D7-B527-F99D81CF2B57@justatheory.com> <1480074.1734985067@sss.pgh.pa.us> <57526A36-8E10-4273-AC3A-9942850B0EE1@justatheory.com> Cc: Euler Taveira , Andres Freund , Andrei Lepikhov , pgsql-hackers From: Chapman Flack Message-ID: <676A2F0A.20904@acm.org> Date: Mon, 23 Dec 2024 22:48:26 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <57526A36-8E10-4273-AC3A-9942850B0EE1@justatheory.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/23/24 17:26, David E. Wheeler wrote: > On Dec 23, 2024, at 15:17, Tom Lane wrote: >> How would that work for extensions where the C code is intentionally >> supporting multiple versions of the SQL objects? >=20 > I guess some people do that, eh? In that case it wouldn=E2=80=99t. A function pointer rather than a version constant? Or a function pointer, to be used if the version constant is null? Regards, -Chap