Re: Change column type from int to bigint - quickest way

From: Andreas Brandl <ml(at)3(dot)141592654(dot)de>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Merlin Moncure <mmoncure(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Change column type from int to bigint - quickest way
Date: 2016-11-16 19:25:27
Message-ID: 1091750907.11313.1479324327866.JavaMail.zimbra@andreas-brandl.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Wed, Nov 16, 2016 at 7:49 AM, Merlin Moncure < mmoncure(at)gmail(dot)com > wrote:

>> On Fri, Nov 11, 2016 at 9:30 AM, Andreas Brandl < mail(at)andreas-brandl(dot)de >
>> wrote:

>> You just posted the same question a few days ago -- were the answers
>> there unsatisfactory?

> This seems to be a mail system provoked duplicate since Gmail is telling me
> this was sent 11/11 but I just received it yesterday. See my attribution
> quotes
> above.

My first post got bounced but re-appeared today - sorry about this.

The answers were very helpful indeed - thanks Tom and Merlin!

We ended up including the datatype change with the upgrade to 9.6. We're going to have a downtime for this anyways and with a dump-restore-style upgrade this is fairly easy to change.

Thanks again,
Andreas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Patrick B 2016-11-16 21:35:51 Re: Wal files being delayed - Pgsql 9.2
Previous Message Tom Lane 2016-11-16 19:05:04 Re: pg_restore --clean failing due to dependancies