Re: int8 sequences --- small implementation problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: int8 sequences --- small implementation problem
Дата
Msg-id 19387.997811234@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Surviving transaction-ID wraparound, take 2  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-hackers
"Joe Conway" <joseph.conway@home.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Neil Padgett
Дата:
Сообщение: Re: int8 sequences --- small implementation problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: int8 sequences --- small implementation problem