Re: Date column that defaults to 'now' - Mailing list pgsql-general

From Gaetano Mendola
Subject Re: Date column that defaults to 'now'
Date
Msg-id 3FFB31FE.8000106@bigfoot.com
Whole thread Raw
In response to Re: Date column that defaults to 'now'  (John Siracusa <siracusa@mindspring.com>)
List pgsql-general
John Siracusa wrote:

 > On 1/5/04 4:29 PM, Michael Glaesemann wrote:
 >
 >>(If you're not the John Siracusa who writes for Ars Technica, the
 >>sentiment still holds. :) )
 >
 >
 > I am everywhere!
 >
 > (worked, thanks to both of you who replied :)

Anyway the two solution solve different problems:

1) DEFAULT now()
    you'll have the timestamp of transaction

2) DEFAULT timeofday()
    you'll have the timestamp of insertion



Regards
Gaetano Mendola

pgsql-general by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: DBs and Schemas
Next
From: "Roderick A. Anderson"
Date:
Subject: Re: DBs and Schemas