Re: timestamp no fractional seconds - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject Re: timestamp no fractional seconds
Date
Msg-id 20090602164002.GA29262@depesz.com
Whole thread Raw
In response to timestamp no fractional seconds  (Brandon Metcalf <brandon@geronimoalloys.com>)
List 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 by date:

Previous
From: John R Pierce
Date:
Subject: Re: loops
Next
From: Brandon Metcalf
Date:
Subject: Re: timestamp no fractional seconds