Search Postgresql Archives

Re: Storage sizes for dates/times (documentation bug?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Lane wrote:
> Marc Munro <marc@xxxxxxxxxxxx> writes:

> > It makes no sense to me that by storing the date with the time you
> > can save 4 bytes.
> 
> Actually, your mistake is in imagining that timestamptz represents the
> timezone explicitly ... it doesn't.  If it did, it'd be at least as
> large as timetz.

Hmm, so timetz does that?  Amazing ... I didn't know that.

Which means that storing date + timetz in two separate columns is not
quite the same as storing a timestamptz.  Oops.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux