From: "K(dot) Brannen" <kbrannen(at)pwhome(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject:
Date: 2017-11-03 14:35:37
Message-ID: 20171103073537.3103AB8A@m0117568.ppops.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rhhh Lin <ruanlinehan(at)hotmail(dot)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 the size of the int and bigint data types in the docs.

HTH,
Kevin

Responses

  • Re: at 2017-11-04 02:28:03 from Rhhh Lin

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2017-11-03 16:12:31 Re: [HACKERS] SSL and Encryption
Previous Message Andreas Kretschmer 2017-11-03 12:20:53 Re: Postgresql.conf not found