pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: psql \dX: check schema when listing statistics objects
2+ messages / 1 participants
[nested] [flat]

* pgsql: psql \dX: check schema when listing statistics objects
@ 2021-07-26 15:42  Tomas Vondra <tomas.vondra@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Tomas Vondra @ 2021-07-26 15:42 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

psql \dX: check schema when listing statistics objects

Commit ad600bba04 added psql command \dX listing extended statistics
objects, but it failed to consider search_path when selecting the
elements so some of the returned elements might be invisible.

The visibility was already considered for tab completion (added by
commit d99d58cdc8), so adding it to the query is fairly simple.

Reported and fix by Justin Pryzby, regression tests by me. Backpatch
to PostgreSQL 14, where \dX was introduced.

Batchpatch-through: 14
Author: Justin Pryzby
Reviewed-by: Tatsuro Yamada
Discussion: https://postgr.es/m/c027a541-5856-75a5-0868-341301e1624b%40nttcom.co.jp_1

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f68b609230689f9886a46e5d9ab8d6cdd947e0dc

Modified Files
--------------
src/bin/psql/describe.c                 |  2 +-
src/test/regress/expected/stats_ext.out | 52 +++++++++++++++++++++------------
src/test/regress/sql/stats_ext.sql      |  5 ++++
3 files changed, 40 insertions(+), 19 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: psql \dX: check schema when listing statistics objects
@ 2021-07-26 15:42  Tomas Vondra <tomas.vondra@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Tomas Vondra @ 2021-07-26 15:42 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

psql \dX: check schema when listing statistics objects

Commit ad600bba04 added psql command \dX listing extended statistics
objects, but it failed to consider search_path when selecting the
elements so some of the returned elements might be invisible.

The visibility was already considered for tab completion (added by
commit d99d58cdc8), so adding it to the query is fairly simple.

Reported and fix by Justin Pryzby, regression tests by me. Backpatch
to PostgreSQL 14, where \dX was introduced.

Batchpatch-through: 14
Author: Justin Pryzby
Reviewed-by: Tatsuro Yamada
Discussion: https://postgr.es/m/c027a541-5856-75a5-0868-341301e1624b%40nttcom.co.jp_1

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/611e42444b121370f561d860552beb7d28dacbf8

Modified Files
--------------
src/bin/psql/describe.c                 |  2 +-
src/test/regress/expected/stats_ext.out | 52 +++++++++++++++++++++------------
src/test/regress/sql/stats_ext.sql      |  5 ++++
3 files changed, 40 insertions(+), 19 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-07-26 15:42 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 15:42 pgsql: psql \dX: check schema when listing statistics objects Tomas Vondra <tomas.vondra@postgresql.org>
2021-07-26 15:42 pgsql: psql \dX: check schema when listing statistics objects Tomas Vondra <tomas.vondra@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox