"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