Re: Fix unqualified catalog references in psql describe queries - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Fix unqualified catalog references in psql describe queries
Date
Msg-id 1236173.1781057568@sss.pgh.pa.us
Whole thread
In response to Re: Fix unqualified catalog references in psql describe queries  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Fix unqualified catalog references in psql describe queries
List pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> On Tue, Jun 09, 2026 at 09:08:50AM +0000, Bertrand Drouvot wrote:
>> Now I wonder if we shoud not "protect" the operators too. They could also
>> lead to wrong results (if not worst).

> Kind of true.  Still we have been pretty lax about the operators as
> they also lead to less readable queries.

We disclaimed security against odd search_paths for these queries long ago,
precisely because wrapping every operator in PG_OPERATOR(pg_catalog.*)
would be far too tedious and destructive of readability --- not to
mention that there are some syntaxes such as IN that don't even offer
the option to do that.

I'm okay with schema-qualifying these table references, mainly because
that preserves consistency with historical style here.  But let's not
go further than that.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Henson Choi
Date:
Subject: LLVM JIT: any JIT-compiled query crashes (SIGILL) on a libLLVM 19 + ASAN build
Next
From: Henson Choi
Date:
Subject: Re: LLVM JIT: any JIT-compiled query crashes (SIGILL) on a libLLVM 19 + ASAN build