Re: timestamp no fractional seconds

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: timestamp no fractional seconds
Дата
Msg-id 20090602164002.GA29262@depesz.com
обсуждение исходный текст
Ответ на timestamp no fractional seconds  (Brandon Metcalf <brandon@geronimoalloys.com>)
Список pgsql-general
On Tue, Jun 02, 2009 at 11:26:05AM -0500, Brandon Metcalf wrote:
> Am I creating the table correctly?  If so, how do I insert or update
> rows?

timestamp[] is array of timestamps.

there is no way to make timestamps "without subsecond data".

you can add trigger to remove unneeded parts of the data, or (much
better) strip it while selecting data - for example, using to_char()
function.

Best regards,

depesz

--
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: loops
Следующее
От: Brandon Metcalf
Дата:
Сообщение: Re: timestamp no fractional seconds