pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL-documentation <pgsql-docs@postgresql.org>
Subject: Re: Use of 'now'
Date: Tue, 13 Nov 2001 21:46:32 -0500 (EST)
Message-ID: <200111140246.fAE2kWE17608@candle.pha.pa.us> (raw)
In-Reply-To: <4537.1005704839@sss.pgh.pa.us>

> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > This seems wrong to me.  What does it mean when it says 'current' is
> > resolved every time the value is retrieved?
> 
> Nothing of interest anymore, since 'current' has been removed as of 7.2.
> However, Thomas has yet to commit any docs updates for his recent
> datetime-related changes ... including that one ...

Seems it is still in there somewhere:

	test=> create table bb (x timestamp default 'current', y int);
	CREATE
	test=> insert into bb (y) values (1);
	INSERT 16591 1
	test=> select * from bb;
	               x               | y 
	-------------------------------+---
	 2001-11-13 21:45:22.473896-05 | 1
	(1 row)

Do you mean that 'current' is now the same as 'now'?  :-)

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (16+ messages)  latest in thread

Message-ID: <200111140246.fAE2kWE17608@candle.pha.pa.us>
Permalink:  ../200111140246.fAE2kWE17608@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200111140246.fAE2kWE17608@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-docs@postgresql.org
  Cc: pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us
  Subject: Re: Use of 'now'
  In-Reply-To: <200111140246.fAE2kWE17608@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