Re: Add prefix pg_catalog to pg_get_statisticsobjdef_columns() in describe.c (\dX)

Magnus Hagander <magnus@hagander.net>

From: Magnus Hagander <magnus@hagander.net>
To: Tatsuro Yamada <tatsuro.yamada.tf@nttcom.co.jp>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>, Tomas Vondra <tomas.vondra@enterprisedb.com>, Justin Pryzby <pryzby@telsasoft.com>, Alvaro Herrera <alvherre@2ndquadrant.com>
Date: 2021-09-28T14:25:11Z
Lists: pgsql-hackers
On Mon, Sep 27, 2021 at 2:14 AM Tatsuro Yamada <
tatsuro.yamada.tf@nttcom.co.jp> wrote:

> Hi,
>
> I found other functions that we should add "pg_catalog" prefix in
> describe.c. This fix is similar to the following commit.
>

Hi!

Yup, that's correct. Applied and backpatched to 14 (but it won't be in the
14.0 release).

-- 
 Magnus Hagander
 Me: https://www.hagander.net/ <http://www.hagander.net/>
 Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Commits

  1. Fix issues with describe queries of extended statistics in psql

  2. Properly schema-prefix reference to pg_catalog.pg_get_statisticsobjdef_columns

  3. psql \dX: reference regclass with "pg_catalog." prefix