Re: int8 sequences --- small implementation problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Joe Conway" <joseph(dot)conway(at)home(dot)com>
Cc: "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: int8 sequences --- small implementation problem
Date: 2001-08-14 17:47:14
Message-ID: 19387.997811234@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Joe Conway" <joseph(dot)conway(at)home(dot)com> writes:
>> What I need is a way to pad the struct declaration so that it leaves
>> 8 bytes per int64 column, no matter what. I thought of

> What if you defined int64 as a union made up of one "long int" member and
> one 8 byte char member, and then always refer to the "long int"?

Well, that'd remove the notational ugliness from the struct definition,
at the cost of adding it to the code that uses the struct. I think I'd
prefer to uglify the struct and keep the code simple. But it's a good
thought.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephan Szabo 2001-08-14 18:17:33 Re: int8 sequences --- small implementation problem
Previous Message Tom Lane 2001-08-14 17:39:10 Re: RFC: Inserting multiple values via INSERT ... VALUES ...