Re: Fix unqualified catalog references in psql describe queries

Bertrand Drouvot <bertranddrouvot.pg@gmail.com>

From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Chao Li <li.evan.chao@gmail.com>, Postgres hackers <pgsql-hackers@lists.postgresql.org>, Fujii Masao <masao.fujii@gmail.com>, Peter Eisentraut <peter@eisentraut.org>, Jeff Davis <pgsql@j-davis.com>, Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>, Amit Kapila <amit.kapila16@gmail.com>
Date: 2026-06-09T09:08:50Z
Lists: pgsql-hackers
Hi,

On Tue, Jun 09, 2026 at 04:08:26PM +0900, Michael Paquier wrote:
> On Mon, Jun 08, 2026 at 04:46:46PM +0800, Chao Li wrote:
> > This is not a big problem, but it provides a way to pollute the
> > result of \dRs+ by adding a fake pg_foreign_server earlier in
> > search_path.
> 
> Which is always annoying..  Will fix and double-check later, thanks.

Now I wonder if we shoud not "protect" the operators too. They could also
lead to wrong results (if not worst).

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



Commits

  1. psql: Add some missing schema qualifications in describe.c

  2. SQL Property Graph Queries (SQL/PGQ)

  3. CREATE SUBSCRIPTION ... SERVER.