Re: LEFT JOIN used in psql describe.c - Mailing list pgsql-hackers

From Tom Lane
Subject Re: LEFT JOIN used in psql describe.c
Date
Msg-id 1070.1112417201@sss.pgh.pa.us
Whole thread Raw
In response to Re: LEFT JOIN used in psql describe.c  ("Greg Sabino Mullane" <greg@turnstep.com>)
Responses Re: LEFT JOIN used in psql describe.c
List pgsql-hackers
"Greg Sabino Mullane" <greg@turnstep.com> writes:
>> Does anyone know why so many LEFT JOINs are used in psql/describe.c to
>> join to the pg_namespace table, like here:

> Yes, pg_relnamespace is definitely not null. I've actually already removed
> the left joins from my \df patch, since I had to rewrite some of the
> queries anyway. If this is wrong, please let me know of course!

I think the idea was to be certain to show every pg_proc entry (or other
catalog for other \d commands), no matter how badly broken the catalog
interrelationships might be.  If there's not an unarguable reason
for eliminating the left joins I'd be inclined to keep it like that.
What does an inner join buy here, other than brittleness?

(Yeah, I have the perspective of a developer who deals with broken
situations every day.  So?)
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: plPHP in core?
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] plPHP in core?