Lists: | pgsql-hackers |
---|
From: | Gregory Stark <stark(at)enterprisedb(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Question about 8-byte datatypes |
Date: | 2006-09-05 10:16:06 |
Message-ID: | 87zmdehb4p.fsf@stark.enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Is int8 a passed-by-value data type on 64-bit platforms? How do we arrange for
that to be the case? I don't see any magic in pg_type.h but I'm not sure what
I'm looking for.
I'm asking because I have another 8-byte data type I want to use and it would
be nice to have that same property, assuming we have it for int8.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Question about 8-byte datatypes |
Date: | 2006-09-05 10:37:10 |
Message-ID: | 20060905103709.GE14312@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Tue, Sep 05, 2006 at 11:16:06AM +0100, Gregory Stark wrote:
>
> Is int8 a passed-by-value data type on 64-bit platforms? How do we arrange for
> that to be the case? I don't see any magic in pg_type.h but I'm not sure what
> I'm looking for.
Not AFAIK. It would involve fiddeling the catalog, tricky since the
catalog genration script doesn't understand #ifdef's. Also you would
have to add conditionals for the the PG_RETURN_* and PG_GET* macros.
> I'm asking because I have another 8-byte data type I want to use and it would
> be nice to have that same property, assuming we have it for int8.
Yes that'd be nice, but not entirely straightforward.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.