sql: pg_catalog.pg_statistic_ext
mistakenly tries to report rows for dropped tables and fails with an error
#108813
Labels
A-sql-table-stats
Table statistics (and their automatic refresh).
A-sql-vtables
Virtual tables - pg_catalog, information_schema etc
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
db-cy-23
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Describe the problem
Observe the last query fail:
If the client waits some time after DROP and before looking at
pg_statistic_ext
, the following error is reported instead:This is especially visible because it breaks
\d
in the SQL shell starting in v23.1.Expected behavior
pg_statistic_ext
must not contain rows for dropped tables.Workaround
Until this bug is fixed, the following SQL statement can be run with the
admin
role to clear the SQL stats for dropped tables:Jira issue: CRDB-30650
Epic CRDB-27601
The text was updated successfully, but these errors were encountered: