From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | josh(at)agliodbs(dot)com |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, Manfred Koizar <mkoi-pg(at)aon(dot)at>, Roland Roberts <roland(at)astrofoto(dot)org>, pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org |
Subject: | Re: [SQL] CURRENT_TIMESTAMP |
Date: | 2002-09-29 21:27:58 |
Message-ID: | 200209292127.g8TLRw219816@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-sql |
Josh Berkus wrote:
> Bruce,
>
> > If we change CURRENT_TIMESTAMP to statement time, I don't think we need
> > now(""), but if we don't change it, I think we do --- somehow we should
> > allow users to access statement time.
>
> I'd argue that we need the 3 kinds of now() regardless, just to limit user
> confusion. If we set things up as:
>
> now() = transaction time
> current_timestamp = statement time
> timeofday() = exact time
>
> That does give users access to all 3 timestamps, but using a competely
> non-intuitive nomenclature. It's likely that the three types of now() would
> just be pointers to other time functions, but would provide nomenative
> clarity.
I agree, having now() as a central place for time information is a good
idea. Maybe we need to vote on these issues.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Hall | 2002-09-29 23:48:18 | PL/Python |
Previous Message | Josh Berkus | 2002-09-29 20:47:49 | Re: [SQL] CURRENT_TIMESTAMP |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-09-29 21:30:12 | Re: making use of large TLB pages |
Previous Message | Josh Berkus | 2002-09-29 20:47:49 | Re: [SQL] CURRENT_TIMESTAMP |
From | Date | Subject | |
---|---|---|---|
Next Message | Mike Sosteric | 2002-09-30 00:12:55 | Re: [SQL] arrays |
Previous Message | Josh Berkus | 2002-09-29 20:47:49 | Re: [SQL] CURRENT_TIMESTAMP |