Re: Changing the type of timestamp columns - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Changing the type of timestamp columns
Date
Msg-id 200408091000.36298.josh@agliodbs.com
Whole thread Raw
In response to Changing the type of timestamp columns  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: Changing the type of timestamp columns  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List 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


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Add Missing From?
Next
From: Jan Wieck
Date:
Subject: Re: Ready for Beta ... ?