[GENERAL] - Mailing list pgsql-general

From K. Brannen
Subject [GENERAL]
Date
Msg-id 20171103073537.3103AB8A@m0117568.ppops.net
Whole thread Raw
Responses Re: [GENERAL]  (Rhhh Lin <ruanlinehan@hotmail.com>)
List pgsql-general
Rhhh Lin <ruanlinehan@hotmail.com> wrote:

> *Also, as a sidenote - can someone please expand on why one (I was not involved in the creation of this DB/schema
definition)would choose to have the definition of the timestamp column as a bigint in this case?
 

Because the time value you need to hold exceeds 32 bits. :)

Based on your example, you're storing epoch in milliseconds, which exceeds 2^32, so you have to use bigint. Check out
thesize of the int and bigint data types in the docs.
 

HTH,
Kevin


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: [GENERAL] Postgresql.conf not found
Next
From: Jeff Janes
Date:
Subject: Re: [GENERAL] [HACKERS] SSL and Encryption