Re: Why extract( ... from timestamp ) is not immutable?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: depesz(at)depesz(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Why extract( ... from timestamp ) is not immutable?
Date: 2012-01-25 15:43:59
Message-ID: 28307.1327506239@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

hubert depesz lubaczewski <depesz(at)depesz(dot)com> writes:
> how can I then have immutable epoch for given point in time?

What do you consider to be "a given point in time"? It seems like
you have not thought through what effects the timezone setting has
on your concept of "now", or at least you have not explained what
you need.

Perhaps even more to the point, why aren't you just storing the
timestamp or timestamptz value and being happy with that?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2012-01-25 15:44:14 Re: Why extract( ... from timestamp ) is not immutable?
Previous Message Adrian Klaver 2012-01-25 15:37:44 Re: Why extract( ... from timestamp ) is not immutable?

Browse pgsql-hackers by date

  From Date Subject
Next Message Adrian Klaver 2012-01-25 15:44:14 Re: Why extract( ... from timestamp ) is not immutable?
Previous Message Adrian Klaver 2012-01-25 15:37:44 Re: Why extract( ... from timestamp ) is not immutable?