Re: int8 sequences --- small implementation problem

From: "Serguei Mokhov" <sa_mokho(at)alcor(dot)concordia(dot)ca>
To: "Jan Wieck" <JanWieck(at)yahoo(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: int8 sequences --- small implementation problem
Date: 2001-08-14 15:18:05
Message-ID: 00bf01c124d4$55fd12c0$5dd9fea9@gunn
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

----- Original Message -----
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Sent: Tuesday, August 14, 2001 10:09 AM

> typedef struct FormData_pg_sequence
> {
> NameData sequence_name;
> int64 last_value;
> #ifdef INT64_IS_BUSTED
> int32 pad1;
[snip]
> } FormData_pg_sequence;
>
> This would work, I think, but my goodness it's an ugly solution.

Is anything wrong with just having two int32 per value for this case?

typedef struct FormData_pg_sequence
{
int32 last_value;
int32 pad1;
...
} FormData_pg_sequence;

S.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-08-14 15:28:28 Re: int8 sequences --- small implementation problem
Previous Message Tom Lane 2001-08-14 15:12:51 Re: Help with Vacuum Failure