Re: Padding on 64-bit - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Padding on 64-bit
Date
Msg-id 200705302026.l4UKQDe01510@momjian.us
Whole thread Raw
In response to Re: Padding on 64-bit  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Magnus Hagander wrote:
> >> I think that's backwards. We *are* passing them by reference, we should
> >> be considering passing them by value.
> 
> > Thanks, fixed.
> 
> Also, the TODO item ought to mention float4 and float8, which IMHO ought
> to be changed at the same time.  float4 could become pass-by-val-always.
> I think the main reason we've avoided that is to avoid breaking old code
> that is not using DatumGet/GetDatum macros, but we'll be breaking most
> such code anyway with this set of changes.

Update:

* Consider allowing 64-bit integers and floats to be passed by value on 64-bit platforms
 Also change 32-bit floats (float4) to be passed by value at the same time.

--  Bruce Momjian  <bruce@momjian.us>          http://momjian.us EnterpriseDB
http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Padding on 64-bit
Next
From: Tom Lane
Date:
Subject: Re: Ye olde drop-the-database-you-just-left problem