Skip to content

Commit

Permalink
Merge #67947
Browse files Browse the repository at this point in the history
67947: sql: added empty stubs for pg_stat* tables r=rafiss a=mnovelodou

Previously, pg_catalog didn't include pg_stat* empty stubs
This was inadequate because tools try to use these tables and fail
To address this, this patch adds empty stubs for pg_stats tables

Release note (sql change): Added empty pg_stat* tables on pg_catalog

pg_stat_all_indexes
pg_stat_all_tables
pg_stat_archiver
pg_stat_bgwriter
pg_stat_gssapi
pg_stat_progress_analyze
pg_stat_progress_basebackup
pg_stat_progress_cluster
pg_stat_progress_create_index
pg_stat_progress_vacuum
pg_stat_replication
pg_stat_slru
pg_stat_ssl
pg_stat_subscription
pg_stat_sys_indexes
pg_stat_sys_tables
pg_stat_user_functions
pg_stat_user_indexes
pg_stat_user_tables
pg_stat_wal_receiver
pg_stat_xact_all_tables
pg_stat_xact_sys_tables
pg_stat_xact_user_functions
pg_stat_xact_user_tables
pg_statio_all_indexes
pg_statio_all_sequences
pg_statio_all_tables
pg_statio_sys_indexes
pg_statio_sys_sequences
pg_statio_sys_tables
pg_statio_user_indexes
pg_statio_user_sequences
pg_statio_user_tables

Fixes #67690

Co-authored-by: MiguelNovelo <[email protected]>
  • Loading branch information
craig[bot] and MiguelNovelo committed Jul 27, 2021
2 parents e6ca2f9 + 9e2fea3 commit c7e039f
Show file tree
Hide file tree
Showing 10 changed files with 2,313 additions and 215 deletions.
33 changes: 33 additions & 0 deletions pkg/sql/catalog/catconstants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,41 @@ const (
PgCatalogShdependTableID
PgCatalogShmemAllocationsTableID
PgCatalogStatActivityTableID
PgCatalogStatAllIndexesTableID
PgCatalogStatAllTablesTableID
PgCatalogStatArchiverTableID
PgCatalogStatBgwriterTableID
PgCatalogStatDatabaseConflictsTableID
PgCatalogStatDatabaseTableID
PgCatalogStatGssapiTableID
PgCatalogStatProgressAnalyzeTableID
PgCatalogStatProgressBasebackupTableID
PgCatalogStatProgressClusterTableID
PgCatalogStatProgressCreateIndexTableID
PgCatalogStatProgressVacuumTableID
PgCatalogStatReplicationTableID
PgCatalogStatSlruTableID
PgCatalogStatSslTableID
PgCatalogStatSubscriptionTableID
PgCatalogStatSysIndexesTableID
PgCatalogStatSysTablesTableID
PgCatalogStatUserFunctionsTableID
PgCatalogStatUserIndexesTableID
PgCatalogStatUserTablesTableID
PgCatalogStatWalReceiverTableID
PgCatalogStatXactAllTablesTableID
PgCatalogStatXactSysTablesTableID
PgCatalogStatXactUserFunctionsTableID
PgCatalogStatXactUserTablesTableID
PgCatalogStatioAllIndexesTableID
PgCatalogStatioAllSequencesTableID
PgCatalogStatioAllTablesTableID
PgCatalogStatioSysIndexesTableID
PgCatalogStatioSysSequencesTableID
PgCatalogStatioSysTablesTableID
PgCatalogStatioUserIndexesTableID
PgCatalogStatioUserSequencesTableID
PgCatalogStatioUserTablesTableID
PgCatalogStatisticExtTableID
PgCatalogSubscriptionRelTableID
PgCatalogSubscriptionTableID
Expand Down
Loading

0 comments on commit c7e039f

Please sign in to comment.