pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Bruce Momjian <pgman@candle.pha.pa.us>
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 13:47:49 -0700
Message-ID: <200209291347.49207.josh@agliodbs.com> (raw)
In-Reply-To: <200209292038.g8TKcbR15198@candle.pha.pa.us>
References: <200209292038.g8TKcbR15198@candle.pha.pa.us>

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.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




view thread (61+ messages)  latest in thread

Message-ID: <200209291347.49207.josh@agliodbs.com>
Permalink:  ../200209291347.49207.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200209291347.49207.josh@agliodbs.com

 · 

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: josh@agliodbs.com, pgman@candle.pha.pa.us, 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: <200209291347.49207.josh@agliodbs.com>

* 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