Re: Fix for pg_upgrade and invalid indexes - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Fix for pg_upgrade and invalid indexes
Date
Msg-id 20130330170134.GA23500@alap2.anarazel.de
Whole thread Raw
In response to Re: Fix for pg_upgrade and invalid indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: By now, why PostgreSQL 9.2 don't support SSDs?
Next
From: Satoshi Nagayasu
Date:
Subject: Re: By now, why PostgreSQL 9.2 don't support SSDs?