Re: pg_upgrade problem with invalid indexes
От
Bruce Momjian
Тема
Re: pg_upgrade problem with invalid indexes
Дата
Msg-id
20121207214919.GB1428@momjian.us
Ответ на
Re: pg_upgrade problem with invalid indexes (Andres Freund)
Список
Дерево обсуждения
pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Alvaro Herrera <alvherre@2ndquadrant.com>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Alvaro Herrera <alvherre@2ndquadrant.com>
Re: pg_upgrade problem with invalid indexes Andrew Dunstan <andrew@dunslane.net>
Re: pg_upgrade problem with invalid indexes Stephen Frost <sfrost@snowman.net>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Stephen Frost <sfrost@snowman.net>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Andres Freund <andres@2ndquadrant.com>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Andres Freund <andres@2ndquadrant.com>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Stephen Frost <sfrost@snowman.net>
Re: pg_upgrade problem with invalid indexes Stephen Frost <sfrost@snowman.net>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Alvaro Herrera <alvherre@2ndquadrant.com>
Re: pg_upgrade problem with invalid indexes Simon Riggs <simon@2ndQuadrant.com>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Josh Berkus <josh@agliodbs.com>
Re: pg_upgrade problem with invalid indexes Andres Freund <andres@2ndquadrant.com>
Re: pg_upgrade problem with invalid indexes Josh Berkus <josh@agliodbs.com>
Re: pg_upgrade problem with invalid indexes Andres Freund <andres@2ndquadrant.com>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade problem with invalid indexes Andres Freund <andres@2ndquadrant.com>
Re: pg_upgrade problem with invalid indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade problem with invalid indexes Andres Freund <andres@2ndquadrant.com>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Andres Freund <andres@2ndquadrant.com>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade problem with invalid indexes Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade problem with invalid indexes Andres Freund <andres@2ndquadrant.com>
Re: pg_upgrade problem with invalid indexes Josh Berkus <josh@agliodbs.com>
Re: pg_upgrade problem with invalid indexes Jeff Davis <pgsql@j-davis.com>
Re: pg_upgrade problem with invalid indexes Andrew Dunstan <andrew@dunslane.net>
Re: pg_upgrade problem with invalid indexes Jeff Davis <pgsql@j-davis.com>
On Fri, Dec 7, 2012 at 10:38:39PM +0100, Andres Freund wrote: > On 2012-12-07 16:30:36 -0500, Bruce Momjian wrote: > > On Fri, Dec 7, 2012 at 04:21:48PM -0500, Tom Lane wrote: > > > Andres Freund writes: > > > > On 2012-12-07 13:59:41 -0500, Tom Lane wrote: > > > >> indisvalid should be sufficient. If you try to test more than that > > > >> you're going to make the code more version-specific, without actually > > > >> buying much. > > > > > > > Doesn't the check need to be at least indisvalid && indisready? Given > > > > that 9.2 represents !indislive as indisvalid && !indisready? > > > > > > Um, good point. It's annoying that we had to do it like that ... > > > > So, does this affect pg_upgrade? Which PG versions? > > Only 9.2 :(. Before that there was no DROP INDEX CONCURRENTLY and in 9.3 > there's an actual indislive field and indisready is always set to false > there if indislive is false. > > But I see no problem using !indisvalid || !indisready as the condition > in all (supported) versions. OK, updated patch attached. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +
В списке pgsql-hackers по дате отправления