autotimestamping - Mailing list pgsql-novice

From Michael Hanna
Subject autotimestamping
Date
Msg-id 549B8742-A739-11D7-8DBC-00039308EB2C@hwcn.org
Whole thread Raw
In response to Re: connectby(... pos_of_sibling)  (Nabil Sayegh <postgresql@e-trolley.de>)
Responses Re: autotimestamping  (Nabil Sayegh <postgresql@e-trolley.de>)
List pgsql-novice
want an auto timestamping on my table.. SQL of create:
create table healthnotes (  "posted" timestamptz not null default
current_timestamp,
"notes"  text,
primary key (posted))

was succ. but how do I set it to autotimestamp when adding entries?

tried:

insert into healthnotes values ('my text notes entry my text notes
entry my text notes entry')

but said the value for timestamp was too long
clearly the autotimestamp isn't set up yet

Michael


pgsql-novice by date:

Previous
From: Nabil Sayegh
Date:
Subject: Re: connectby(... pos_of_sibling)
Next
From: Nabil Sayegh
Date:
Subject: Re: autotimestamping