Re: Fix for pg_upgrade and invalid indexes

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Fix for pg_upgrade and invalid indexes
Дата
Msg-id 20130330170134.GA23500@alap2.anarazel.de
обсуждение исходный текст
Ответ на Re: Fix for pg_upgrade and invalid indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2013-03-29 19:03:05 -0400, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> 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.)

Ah yes. Then I'd actually find it much more readable to formulate it as a NOT
EXISTS(), but that might be just me.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: By now, why PostgreSQL 9.2 don't support SSDs?
Следующее
От: Satoshi Nagayasu
Дата:
Сообщение: Re: By now, why PostgreSQL 9.2 don't support SSDs?