| From: | Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> |
|---|---|
| To: | Prabu Subroto <prabu_subroto(at)yahoo(dot)com> |
| Cc: | Postgres General Milis <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: the behaviour of timestamp on postgres. |
| Date: | 2004-08-11 15:15:03 |
| Message-ID: | 20040811080939.V17280@megazone.bigpanda.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Fuhr | 2004-08-11 15:34:52 | Re: POSIX RE starting with a ( |
| Previous Message | Nick Barr | 2004-08-11 15:11:17 | Re: POSIX RE starting with a ( |