Re: Changing the type of timestamp columns

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Subject: Re: Changing the type of timestamp columns
Date: 2004-08-09 17:00:36
Message-ID: 200408091000.36298.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

KL,

> Is it safe to update the atttypid of a timestamp column to be a
> timestamptz column? I wish to do this on a production database, so I
> need to be sure!

I wouldn't try this without running it against a test database copy first.
I've already discovered that a backend change to a column data type like your
describing can disrupt indexes, views, and analyze rows based on the table --
the last time I did such, I ended up having to dump and reload the database
to get everything responding reliably.

--
Josh Berkus
Aglio Database Solutions
San Francisco

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2004-08-09 17:02:02 Re: Add Missing From?
Previous Message Tom Lane 2004-08-09 17:00:33 Re: Add Missing From?