Re: best type for unix file system timestamp?

Поиск
Список
Период
Сортировка
От jseymour@linxnet.com (Jim Seymour)
Тема Re: best type for unix file system timestamp?
Дата
Msg-id 20040730234554.10B88430E@jimsun.linxnet.com
обсуждение исходный текст
Ответ на best type for unix file system timestamp?  (Mark Harrison <mh@pixar.com>)
Список pgsql-general
Mark Harrison <mh@pixar.com> wrote:
>
> So, I'm recording the timestamp from some unix files.
>
> Any opinions as to whether it's best to use a "bigint"
> (which matches the file system data) or a "timestamp"
> (which might be easier to manipulate in the database)?

I tend to choose datatypes that lend themselves to easily and clearly
viewing and manipulating the data with the command-line utility, unless
there's a very good reason to do otherwise.

PostgreSQL has a rich complement of operators and functions for working
with timestamp values, so I'd tend to stick with that, I think.

Jim

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

Предыдущее
От: jseymour@linxnet.com (Jim Seymour)
Дата:
Сообщение: Re: pg_hba.conf changes without restarting postmaster
Следующее
От: Robby Russell
Дата:
Сообщение: Re: best type for unix file system timestamp?