Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: timestamps-...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 15494 of 17437
Post > Topic >>

Re: timestamps-accuracy

by kleptog@[EMAIL PROTECTED] (Martijn van Oosterhout) May 9, 2008 at 11:16 AM

--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, May 09, 2008 at 04:59:30AM -0400, Justin wrote:
> generail this don't hurt us but we have some needs with data coming
from=
=20
> manufacturing testing applications that needs to keep the timestamps to=
=20
> .000,000,001 aka 1 nano second.=20
> what would be the easiest way to do this?=20

I would suggest storing it as epoch time (seconds since X) in a numeric
fields and create some helper functions to get data in and out in the
right format. Or a timestamp(0) column with an additional nano-second
column.

Depending on how often you use it it may be interesting to create a
specific type, but this may come close enough.

Have a nice day,
--=20
Martijn van Oosterhout   <kleptog@[EMAIL PROTECTED]
>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while=20
> boarding. Thank you for flying nlogn airlines.

--ibTvN161/egqYuK8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIJBZdIB7bNG8LQkwRAn2AAJ4pW4Jckd6HbxthA5WpDBrfgDeXpQCfZWE4
TySjilSM9NK//1YWu5VSJQs=
=OO0i
-----END PGP SIGNATURE-----

--ibTvN161/egqYuK8--
 




 2 Posts in Topic:
timestamps-accuracy
justin@[EMAIL PROTECTED]   2008-05-09 04:59:30 
Re: timestamps-accuracy
kleptog@[EMAIL PROTECTED]  2008-05-09 11:16:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 13:11:56 CST 2008.