Re: Is this a bug?

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: Is this a bug?
Дата
Msg-id
20140825210728.GB14956@momjian.us
Ответ на
Re: Is this a bug? (Bruce Momjian)
Список
Дерево обсуждения
Is this a bug? Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Is this a bug? Euler Taveira <euler@timbira.com.br>
Re: Is this a bug? Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Is this a bug David Johnston <polobo@yahoo.com>
Re: Is this a bug? Robert Haas <robertmhaas@gmail.com>
Re: Is this a bug? Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Is this a bug? Michael Paquier <michael.paquier@gmail.com>
Re: Is this a bug? Robert Haas <robertmhaas@gmail.com>
Re: Is this a bug? Bruce Momjian <bruce@momjian.us>
Re: Is this a bug? Robert Haas <robertmhaas@gmail.com>
Re: Is this a bug? Bruce Momjian <bruce@momjian.us>
Re: Is this a bug? Bruce Momjian <bruce@momjian.us>
Re: Is this a bug? Andres Freund <andres@anarazel.de>
Re: Is this a bug? Robert Haas <robertmhaas@gmail.com>
Re: Is this a bug? Bruce Momjian <bruce@momjian.us>
Re: Is this a bug? Bruce Momjian <bruce@momjian.us>
Re: Is this a bug? Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Is this a bug? Andres Freund <andres@anarazel.de>
Re: Is this a bug? Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Is this a bug? Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Is this a bug? Robert Haas <robertmhaas@gmail.com>
Re: Is this a bug? Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Is this a bug? Michael Paquier <michael.paquier@gmail.com>
Re: Is this a bug? Bruce Momjian <bruce@momjian.us>
Re: Is this a bug? Fabrízio de Royes Mello <fabriziomello@gmail.com>
Re: Is this a bug? Thom Brown <thom@linux.com>
On Fri, Aug 22, 2014 at 10:04:50PM -0400, Bruce Momjian wrote:
> On Fri, Aug 22, 2014 at 03:12:47PM -0400, Robert Haas wrote:
> > On Fri, Aug 22, 2014 at 2:33 PM, Bruce Momjian  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.
> 
> Ah, seems ALTER TABLE ... DROP CONSTRAINT IF EXISTS also works --- I
> will use that.

OK, attached patch applied, with pg_upgrade adjustments.  I didn't
think the original regression tests for this were necessary.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +
В списке pgsql-hackers по дате отправления
От: Pavel Stehule
Дата:
От: Thomas Munro
Дата:
FAQ