pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: josh@agliodbs.com
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Martijn van Oosterhout <kleptog@svana.org>
Cc: Manfred Koizar <mkoi-pg@aon.at>
Cc: Roland Roberts <roland@astrofoto.org>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [SQL] CURRENT_TIMESTAMP
Date: Sun, 29 Sep 2002 17:27:58 -0400 (EDT)
Message-ID: <200209292127.g8TLRw219816@candle.pha.pa.us> (raw)
In-Reply-To: <200209291347.49207.josh@agliodbs.com>

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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (61+ messages)  latest in thread

Message-ID: <200209292127.g8TLRw219816@candle.pha.pa.us>
Permalink:  ../200209292127.g8TLRw219816@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200209292127.g8TLRw219816@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pgman@candle.pha.pa.us, josh@agliodbs.com, tgl@sss.pgh.pa.us, kleptog@svana.org, mkoi-pg@aon.at, roland@astrofoto.org, pgsql-general@postgresql.org
  Subject: Re: [SQL] CURRENT_TIMESTAMP
  In-Reply-To: <200209292127.g8TLRw219816@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox