Skip site navigation (1) Skip section navigation (2)

Re: Use of 'now'

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-documentation <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Use of 'now'
Date: 2001-11-14 02:46:32
Message-ID: 200111140246.fAE2kWE17608@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-docspgsql-hackers
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

Responses

pgsql-docs by date

Next:From: Tom LaneDate: 2001-11-14 02:52:32
Subject: Re: Use of 'now'
Previous:From: Tom LaneDate: 2001-11-14 02:27:19
Subject: Re: Use of 'now'

pgsql-hackers by date

Next:From: Tom LaneDate: 2001-11-14 02:52:32
Subject: Re: Use of 'now'
Previous:From: Tom LaneDate: 2001-11-14 02:27:19
Subject: Re: Use of 'now'

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group