Re: does timestamp precision affect storage size?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jonathan Vanasco <postgres(at)2xlp(dot)com>
Cc: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: does timestamp precision affect storage size?
Date: 2016-06-21 20:50:20
Message-ID: 18812.1466542220@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jonathan Vanasco <postgres(at)2xlp(dot)com> writes:
> would there be any savings in storage or performance improvements from losing the resolution on fractional seconds,

Storage-wise, no. If you have a resolution spec on your columns now,
I think dropping the resolution spec would save you a few nanoseconds per
row insertion due to not having to apply the roundoff function. Adding
one would certainly not improve speed.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Vanasco 2016-06-21 21:45:13 Re: does timestamp precision affect storage size?
Previous Message Vik Fearing 2016-06-21 20:47:43 Re: does timestamp precision affect storage size?