From: David B <postgresql@thegatelys.com>
To: pgsql-sql@postgresql.org
Subject: In 7.4 ensure you have DEFAULT now () with no spaces
Date: Fri, 18 Jun 2004 11:29:38 -0700
Message-ID: <GOEGKICPFOPNLIEIHGFJEEMMCNAA.postgresql@thegatelys.com> (raw)
Just a heads up folks...
In converting from 7.3 to 7.4 one got-ya we had was...
We had been testing 7.4 for a few days and just noticed that some tables had
created_timestamp rows with a date/time of the date the DB was created...not
the date/time the insert was done.
Looking at those tables the create DDL's for those few tables contained now
()
as in:
created_timestamp timestamp DEFAULT now () -- note the space between now
and ()
Most had correctly been defined without the space - as in now()
Simple matter of doing ALTER TABLE x ALTER COLUMN y SET DEFAULT now() while
still in 7.3 to fix.
7.4 Migration documentation does mentions this but it can easily slip by as
it did with us...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.704 / Virus Database: 460 - Release Date: 6/12/2004
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: postgresql@thegatelys.com
Subject: Re: In 7.4 ensure you have DEFAULT now () with no spaces
In-Reply-To: <GOEGKICPFOPNLIEIHGFJEEMMCNAA.postgresql@thegatelys.com>
* 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