Re: Is this a bug? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Is this a bug?
Date
Msg-id CA+TgmoYpnSwjhfN2v9tskeBYWruV-G3pYrb4MDQSPmxPJtHm9A@mail.gmail.com
Whole thread Raw
In response to Re: Is this a bug?  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Is this a bug?
List pgsql-hackers
On Fri, Aug 22, 2014 at 2:33 PM, Bruce Momjian <bruce@momjian.us> wrote:
>> Yes, you remember well.  I will have to find a different way for
>> pg_upgrade to call a no-op ALTER TABLE, which is fine.
>
> Looking at the ALTER TABLE options, I am going to put this check in a
> !IsBinaryUpgrade block so pg_upgrade can still use its trick.

-1, that's really ugly.

Maybe the right solution is to add a form of ALTER TABLE that is
specifically defined to do only this check.  This is an ongoing need,
so that might not be out of line.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Is this a bug?
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCH] Incremental backup: add backup profile to base backup