Re: [GENERAL] current_timestamp and default now() - Mailing list pgsql-general

From Lincoln Yeoh
Subject Re: [GENERAL] current_timestamp and default now()
Date
Msg-id 3.0.5.32.19991026090751.008be900@pop.mecomb.po.my
Whole thread Raw
In response to current_timestamp and default now()  ("amy cheng" <amycq@hotmail.com>)
Responses Re: [GENERAL] current_timestamp and default now()
List pgsql-general
At 01:05 PM 25-10-1999 PDT, amy cheng wrote:
>hi, there,
>
>I'm using:
>
>create table test (
>proposetime   datetime not null default now(),
>)
>
>then, I find that I need to make the time uniform through the
>transaction. Is there a way to use current_timestamp('now')
>in the create table statement? Seems impossible?

How about reading off the current time (select <somethingblahblah> 'now', I
can't remember how to do it- not very obvious at first sight) and then
using that time throughout the transaction?

Cheerio,

Link.


pgsql-general by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: [HACKERS] Re: [GENERAL] Postgres INSERTs much slower than MySQL?
Next
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] Re: [GENERAL] Postgres INSERTs much slower than MySQL?