Re: int8 sequences --- small implementation problem

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: int8 sequences --- small implementation problem
Дата
Msg-id 200108141953.f7EJrIg18005@jupiter.us.greatbridge.com
обсуждение исходный текст
Ответ на Re: int8 sequences --- small implementation problem  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-hackers
Stephan Szabo wrote:
> On Tue, 14 Aug 2001, Tom Lane wrote:
>
> > Jan Wieck <JanWieck@yahoo.com> writes:
> > >     And he who needs that kind of long term row identifiers would
> > >     be better off with 8-byte sequences anyway - IMNSVHO.
> >
> > 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
> >
> > This would work, I think, but my goodness it's an ugly solution.
> > Has any hacker got a better one?
>
> The only thing I could think of is using a struct to hide the
> padding details instead of directly using int64, but then you'd have to
> add a '.value' or something to the references.  I'm not sure that's really
> any cleaner.
   What I'm asking myself all the time is "which platforms do we   support that doesn't have 8-byte  integers?".  Could
someone   enlighten me please?
 
   And what does int8 do on these platforms?


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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

Предыдущее
От: "Steve Howe"
Дата:
Сообщение: Retriving users from group ?...
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Rename config.h to pg_config.h?