Re: Fix for pg_upgrade and invalid indexes
От
Bruce Momjian
Тема
Re: Fix for pg_upgrade and invalid indexes
Дата
Msg-id
20130330033513.GB12134@momjian.us
Ответ на
Re: Fix for pg_upgrade and invalid indexes (Tom Lane)
Список
Дерево обсуждения
Re: Ignore invalid indexes in pg_dump. "anarazel@anarazel.de" <andres@anarazel.de>
Re: Ignore invalid indexes in pg_dump. Bruce Momjian <bruce@momjian.us>
Re: Ignore invalid indexes in pg_dump. Andres Freund <andres@2ndquadrant.com>
Re: Ignore invalid indexes in pg_dump. Tom Lane <tgl@sss.pgh.pa.us>
On Fri, Mar 29, 2013 at 07:03:05PM -0400, Tom Lane wrote: > Andres Freund writes: > > Those columns cannot be NULL, so using IS DISTINCT FROM seems a bit > > clumsy. > > That was what I started to write, too, but actually I think the IS > DISTINCT is correct and the RIGHT JOIN should be a LEFT JOIN. Note > that the query appears to be intended to collect regular tables as > well as indexes. (As patched, that's totally broken, so I infer > Bruce hasn't tested it yet.) Yes, I only ran my simple tests so far --- I wanted to at least get some eyes on it. I was wondering if we ever need to use parentheses for queries that mix normal and outer joins? I am unclear on that. Attached is a fixed patch that uses LEFT JOIN. I went back and looked at the patch that added this test and I think the patch is now complete. I would like to apply it tomorrow/Saturday so it will be ready for Monday's packaging, and get some buildfarm time on it. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +
В списке pgsql-hackers по дате отправления