Search Postgresql Archives

Re: How do I make a timestamp column default to current time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"John D. Burger" <john@xxxxxxxxx> writes:
>> mycol timestamp default now()
>> or
>> mycol timestamp default current_timestamp

> And both of these return start time of the current transaction, yes?  
> Is it the case that there is no SQL-standard way to get the current 
> time?

AFAIK the spec doesn't really define the meaning of current_timestamp
all that closely.  I believe there's a patch in the queue to add some
additional nonstandard functions for current time and start of current
interactive command, though.

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux