Re: alter column type

From: Casey Deccio <casey(at)deccio(dot)net>
To: Michael Nolan <htfoot(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: alter column type
Date: 2015-06-05 18:46:44
Message-ID: CAEKtLiSZaPKtkxgtr7-PqT-VzjMSgnvMPZeGQbVrJ1LaeGStWA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jun 5, 2015 at 2:36 PM, Michael Nolan <htfoot(at)gmail(dot)com> wrote:

>
> Probably too late for this time, but in the past when I've needed to
> redefine the type for a column, I've made a dump, edited the dump file to
> change the type and then renamed the table and reloaded it. That's usually
> several orders of magnitude faster.
>

Actually, not too late. My first ALTER is still running, and I still have
four more to go. Sigh. I had thought of this but wasn't sure how it might
compare. Thanks for the data point :)

Casey

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andres Freund 2015-06-05 18:47:33 Re: [HACKERS] 9.4.1 -> 9.4.2 problem: could not access status of transaction 1
Previous Message Igor Neyman 2015-06-05 18:46:15 Re: Query running slow for only one specific id. (Postgres 9.3) version