Re: the behaviour of timestamp on postgres. - Mailing list pgsql-general

From Stephan Szabo
Subject Re: the behaviour of timestamp on postgres.
Date
Msg-id 20040811080939.V17280@megazone.bigpanda.com
Whole thread Raw
In response to the behaviour of timestamp on postgres.  (Prabu Subroto <prabu_subroto@yahoo.com>)
List pgsql-general
On Wed, 11 Aug 2004, Prabu Subroto wrote:

> How is the behaviour of the timestamp on postgres? I

It's pretty much just a plain datatype.

> have define the datatype of the column with
> "timestamp" but each time I inserted a new record into
> the table than the timestamp column (with datatype
> "timestamp") stays empty.
>
> How can I make the postgres complete the value of the
> timestamp field automatically?

If you want insert time setting, you can use a default
clause on the column.

If you want update time modification, you can write a
before trigger that updates the column.

pgsql-general by date:

Previous
From: Nick Barr
Date:
Subject: Re: POSIX RE starting with a (
Next
From: Tom Lane
Date:
Subject: Re: psql: immediately exit after an error?