Unix Technical Forum

Question about 8-byte datatypes

This is a discussion on Question about 8-byte datatypes within the pgsql Hackers forums, part of the PostgreSQL category; --> Is int8 a passed-by-value data type on 64-bit platforms? How do we arrange for that to be the case? ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 04:25 AM
Gregory Stark
 
Posts: n/a
Default Question about 8-byte datatypes


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

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 04:25 AM
Martijn van Oosterhout
 
Posts: n/a
Default Re: Question about 8-byte datatypes

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@svana.org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFE/VNVIB7bNG8LQkwRAm0vAJ4jzJwYqubYrdlK8vju1kMxLic5gwC gi5dh
TuS1gZdUdo8VV31tq1Cn7bA=
=Scz7
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:44 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com