pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rugge <davidrugge@mindspring.com>
To: pgsql-sql@postgreSQL.org
Subject: timestamps
Date: Tue, 2 Nov 1999 21:51:52 -0500
Message-ID: <99110221560802.00836@joplin> (raw)

I created a table using this statement:

create table timestamptest (creation_date timestamp default text 'now')

But I get the creation date of the table instead of the date of the
transaction. This is the format suggested in the manual to workaround the
default value being set at table creation, but it doesn't work!

What can I do to make a timestamp that is the date the row was inserted into
the table?

--
David Rugge

http://www.mindspring.com/~davidrugge/index.html



view thread (2+ messages)  latest in thread

Message-ID: <99110221560802.00836@joplin>
Permalink:  ../99110221560802.00836@joplin/
Also on:    postgresql.org/message-id/99110221560802.00836@joplin

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: davidrugge@mindspring.com
  Subject: Re: timestamps
  In-Reply-To: <99110221560802.00836@joplin>
  References: <99110221560802.00836@joplin>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox