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 1iQvJv-0008Pq-JS for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Nov 2019 15:28:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iQvIv-0002DS-Ak for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Nov 2019 15:27:05 +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 1iQvIv-0002DK-2F for pgsql-hackers@lists.postgresql.org; Sat, 02 Nov 2019 15:27:05 +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 1iQvIs-0005hU-Hi for pgsql-hackers@postgresql.org; Sat, 02 Nov 2019 15:27:04 +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 xA2FQxvh030491; Sat, 2 Nov 2019 11:26:59 -0400 From: Tom Lane To: Peter Eisentraut cc: Robert Haas , pgsql-hackers Subject: Re: Remove configure --disable-float4-byval and --disable-float8-byval In-reply-to: References: <15316.1572528990@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Sat, 02 Nov 2019 08:46:12 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30489.1572708419.1@sss.pgh.pa.us> Date: Sat, 02 Nov 2019 11:26:59 -0400 Message-ID: <30490.1572708419@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 2019-11-01 15:41, Robert Haas wrote: >> On a related note, why do we store typbyval in the catalog anyway >> instead of inferring it from typlen and maybe typalign? It seems like >> a bad idea to record on disk the way we pass around values in memory, >> because it means that a change to how values are passed around in >> memory has ramifications for on-disk compatibility. > This sounds interesting. It would remove a pg_upgrade hazard (in the > long run). > There is some backward compatibility to be concerned about. Yeah. The point here is that typbyval specifies what the C functions concerned with the datatype are expecting. We can't just up and say "we're going to decide that for you". I do get the point that supporting two different typbyval options for float8 and related types is a nontrivial cost. regards, tom lane