timestamp datatype cleanup

Поиск
Список
Период
Сортировка
От Warren Turkal
Тема timestamp datatype cleanup
Дата
Msg-id 12050515403756-git-send-email-turkal@google.com
обсуждение исходный текст
Ответы Re: timestamp datatype cleanup  (Michael Meskes <meskes@postgresql.org>)
Re: timestamp datatype cleanup  ("Warren Turkal" <turkal@google.com>)
Re: timestamp datatype cleanup  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
PosgreSQL hackers,

Here's an initial bit of my attempt at cleaning up the the timestamp datatype.
I have gone through the backend and made a couple small changes to stop using
the HAVE_INT64_TIMESTAMP define to select a type in code by creating typedefs
in a header and using the typedef in the code. I think this small bit is ready
for inclusion for this small bit, but I have a couple questions for further
work.

1) Is there a reason that header information is duplicated between normal
posgresql include and ecpg includes instead of defining the info in one place
and #including it into the files that need it?

2) Would it be reasonable to change timestamp.h into a file that includes other
files that define the specific parts depending on HAVE_INT64_TIMESTAMP instead
of testing for HAVE_INT64_TIMESTAMP many times throughout timestamp.h? I think
this might more cleanly separate the logic for the different timestamp types.

Thanks,
wt


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: Google Summer of Code 2008
Следующее
От: Warren Turkal
Дата:
Сообщение: [PATCH] Add TimeOffset and DateOffset typedefs