diff --git a/pkg/sql/catalog/catconstants/constants.go b/pkg/sql/catalog/catconstants/constants.go index b0f6d6b3503c..292cb365ed24 100644 --- a/pkg/sql/catalog/catconstants/constants.go +++ b/pkg/sql/catalog/catconstants/constants.go @@ -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 diff --git a/pkg/sql/logictest/testdata/logic_test/create_statements b/pkg/sql/logictest/testdata/logic_test/create_statements index 95e17466af11..5431b863e5ac 100644 --- a/pkg/sql/logictest/testdata/logic_test/create_statements +++ b/pkg/sql/logictest/testdata/logic_test/create_statements @@ -4592,6 +4592,116 @@ CREATE TABLE pg_catalog.pg_stat_activity ( backend_type STRING NULL, leader_pid INT4 NULL ) {} {} +CREATE TABLE pg_catalog.pg_stat_all_indexes ( + schemaname NAME NULL, + idx_scan INT8 NULL, + idx_tup_fetch INT8 NULL, + idx_tup_read INT8 NULL, + indexrelid OID NULL, + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL +) CREATE TABLE pg_catalog.pg_stat_all_indexes ( + schemaname NAME NULL, + idx_scan INT8 NULL, + idx_tup_fetch INT8 NULL, + idx_tup_read INT8 NULL, + indexrelid OID NULL, + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_all_tables ( + n_ins_since_vacuum INT8 NULL, + seq_scan INT8 NULL, + analyze_count INT8 NULL, + autovacuum_count INT8 NULL, + last_vacuum TIMESTAMPTZ NULL, + n_dead_tup INT8 NULL, + n_tup_hot_upd INT8 NULL, + n_tup_ins INT8 NULL, + relid OID NULL, + relname NAME NULL, + autoanalyze_count INT8 NULL, + idx_scan INT8 NULL, + last_autoanalyze TIMESTAMPTZ NULL, + n_mod_since_analyze INT8 NULL, + n_tup_upd INT8 NULL, + vacuum_count INT8 NULL, + last_analyze TIMESTAMPTZ NULL, + last_autovacuum TIMESTAMPTZ NULL, + n_live_tup INT8 NULL, + n_tup_del INT8 NULL, + idx_tup_fetch INT8 NULL, + schemaname NAME NULL, + seq_tup_read INT8 NULL +) CREATE TABLE pg_catalog.pg_stat_all_tables ( + n_ins_since_vacuum INT8 NULL, + seq_scan INT8 NULL, + analyze_count INT8 NULL, + autovacuum_count INT8 NULL, + last_vacuum TIMESTAMPTZ NULL, + n_dead_tup INT8 NULL, + n_tup_hot_upd INT8 NULL, + n_tup_ins INT8 NULL, + relid OID NULL, + relname NAME NULL, + autoanalyze_count INT8 NULL, + idx_scan INT8 NULL, + last_autoanalyze TIMESTAMPTZ NULL, + n_mod_since_analyze INT8 NULL, + n_tup_upd INT8 NULL, + vacuum_count INT8 NULL, + last_analyze TIMESTAMPTZ NULL, + last_autovacuum TIMESTAMPTZ NULL, + n_live_tup INT8 NULL, + n_tup_del INT8 NULL, + idx_tup_fetch INT8 NULL, + schemaname NAME NULL, + seq_tup_read INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_archiver ( + stats_reset TIMESTAMPTZ NULL, + archived_count INT8 NULL, + failed_count INT8 NULL, + last_archived_time TIMESTAMPTZ NULL, + last_archived_wal STRING NULL, + last_failed_time TIMESTAMPTZ NULL, + last_failed_wal STRING NULL +) CREATE TABLE pg_catalog.pg_stat_archiver ( + stats_reset TIMESTAMPTZ NULL, + archived_count INT8 NULL, + failed_count INT8 NULL, + last_archived_time TIMESTAMPTZ NULL, + last_archived_wal STRING NULL, + last_failed_time TIMESTAMPTZ NULL, + last_failed_wal STRING NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_bgwriter ( + buffers_backend INT8 NULL, + buffers_clean INT8 NULL, + checkpoint_sync_time FLOAT8 NULL, + checkpoints_req INT8 NULL, + checkpoints_timed INT8 NULL, + maxwritten_clean INT8 NULL, + stats_reset TIMESTAMPTZ NULL, + buffers_alloc INT8 NULL, + buffers_backend_fsync INT8 NULL, + buffers_checkpoint INT8 NULL, + checkpoint_write_time FLOAT8 NULL +) CREATE TABLE pg_catalog.pg_stat_bgwriter ( + buffers_backend INT8 NULL, + buffers_clean INT8 NULL, + checkpoint_sync_time FLOAT8 NULL, + checkpoints_req INT8 NULL, + checkpoints_timed INT8 NULL, + maxwritten_clean INT8 NULL, + stats_reset TIMESTAMPTZ NULL, + buffers_alloc INT8 NULL, + buffers_backend_fsync INT8 NULL, + buffers_checkpoint INT8 NULL, + checkpoint_write_time FLOAT8 NULL +) {} {} CREATE TABLE pg_catalog.pg_stat_database ( datid OID NULL, datname NAME NULL, @@ -4654,6 +4764,691 @@ CREATE TABLE pg_catalog.pg_stat_database_conflicts ( confl_bufferpin INT8 NULL, confl_deadlock INT8 NULL ) {} {} +CREATE TABLE pg_catalog.pg_stat_gssapi ( + encrypted BOOL NULL, + gss_authenticated BOOL NULL, + pid INT4 NULL, + principal STRING NULL +) CREATE TABLE pg_catalog.pg_stat_gssapi ( + encrypted BOOL NULL, + gss_authenticated BOOL NULL, + pid INT4 NULL, + principal STRING NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_progress_analyze ( + child_tables_total INT8 NULL, + current_child_table_relid OID NULL, + datid OID NULL, + ext_stats_computed INT8 NULL, + pid INT4 NULL, + sample_blks_total INT8 NULL, + child_tables_done INT8 NULL, + ext_stats_total INT8 NULL, + phase STRING NULL, + relid OID NULL, + sample_blks_scanned INT8 NULL, + datname NAME NULL +) CREATE TABLE pg_catalog.pg_stat_progress_analyze ( + child_tables_total INT8 NULL, + current_child_table_relid OID NULL, + datid OID NULL, + ext_stats_computed INT8 NULL, + pid INT4 NULL, + sample_blks_total INT8 NULL, + child_tables_done INT8 NULL, + ext_stats_total INT8 NULL, + phase STRING NULL, + relid OID NULL, + sample_blks_scanned INT8 NULL, + datname NAME NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_progress_basebackup ( + backup_streamed INT8 NULL, + backup_total INT8 NULL, + phase STRING NULL, + pid INT4 NULL, + tablespaces_streamed INT8 NULL, + tablespaces_total INT8 NULL +) CREATE TABLE pg_catalog.pg_stat_progress_basebackup ( + backup_streamed INT8 NULL, + backup_total INT8 NULL, + phase STRING NULL, + pid INT4 NULL, + tablespaces_streamed INT8 NULL, + tablespaces_total INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_progress_cluster ( + cluster_index_relid OID NULL, + command STRING NULL, + datid OID NULL, + heap_tuples_scanned INT8 NULL, + phase STRING NULL, + datname NAME NULL, + heap_blks_scanned INT8 NULL, + heap_blks_total INT8 NULL, + heap_tuples_written INT8 NULL, + index_rebuild_count INT8 NULL, + pid INT4 NULL, + relid OID NULL +) CREATE TABLE pg_catalog.pg_stat_progress_cluster ( + cluster_index_relid OID NULL, + command STRING NULL, + datid OID NULL, + heap_tuples_scanned INT8 NULL, + phase STRING NULL, + datname NAME NULL, + heap_blks_scanned INT8 NULL, + heap_blks_total INT8 NULL, + heap_tuples_written INT8 NULL, + index_rebuild_count INT8 NULL, + pid INT4 NULL, + relid OID NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_progress_create_index ( + blocks_done INT8 NULL, + index_relid OID NULL, + lockers_total INT8 NULL, + partitions_done INT8 NULL, + partitions_total INT8 NULL, + blocks_total INT8 NULL, + command STRING NULL, + current_locker_pid INT8 NULL, + datid OID NULL, + pid INT4 NULL, + datname NAME NULL, + lockers_done INT8 NULL, + relid OID NULL, + tuples_done INT8 NULL, + phase STRING NULL, + tuples_total INT8 NULL +) CREATE TABLE pg_catalog.pg_stat_progress_create_index ( + blocks_done INT8 NULL, + index_relid OID NULL, + lockers_total INT8 NULL, + partitions_done INT8 NULL, + partitions_total INT8 NULL, + blocks_total INT8 NULL, + command STRING NULL, + current_locker_pid INT8 NULL, + datid OID NULL, + pid INT4 NULL, + datname NAME NULL, + lockers_done INT8 NULL, + relid OID NULL, + tuples_done INT8 NULL, + phase STRING NULL, + tuples_total INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_progress_vacuum ( + datname NAME NULL, + heap_blks_scanned INT8 NULL, + heap_blks_total INT8 NULL, + index_vacuum_count INT8 NULL, + pid INT4 NULL, + relid OID NULL, + datid OID NULL, + heap_blks_vacuumed INT8 NULL, + max_dead_tuples INT8 NULL, + num_dead_tuples INT8 NULL, + phase STRING NULL +) CREATE TABLE pg_catalog.pg_stat_progress_vacuum ( + datname NAME NULL, + heap_blks_scanned INT8 NULL, + heap_blks_total INT8 NULL, + index_vacuum_count INT8 NULL, + pid INT4 NULL, + relid OID NULL, + datid OID NULL, + heap_blks_vacuumed INT8 NULL, + max_dead_tuples INT8 NULL, + num_dead_tuples INT8 NULL, + phase STRING NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_replication ( + application_name STRING NULL, + backend_xmin INT8 NULL, + replay_lsn STRING NULL, + usesysid OID NULL, + sent_lsn STRING NULL, + sync_priority INT4 NULL, + sync_state STRING NULL, + usename NAME NULL, + backend_start TIMESTAMPTZ NULL, + client_addr INET NULL, + flush_lag INTERVAL NULL, + pid INT4 NULL, + write_lag INTERVAL NULL, + client_hostname STRING NULL, + flush_lsn STRING NULL, + write_lsn STRING NULL, + client_port INT4 NULL, + replay_lag INTERVAL NULL, + reply_time TIMESTAMPTZ NULL, + state STRING NULL +) CREATE TABLE pg_catalog.pg_stat_replication ( + application_name STRING NULL, + backend_xmin INT8 NULL, + replay_lsn STRING NULL, + usesysid OID NULL, + sent_lsn STRING NULL, + sync_priority INT4 NULL, + sync_state STRING NULL, + usename NAME NULL, + backend_start TIMESTAMPTZ NULL, + client_addr INET NULL, + flush_lag INTERVAL NULL, + pid INT4 NULL, + write_lag INTERVAL NULL, + client_hostname STRING NULL, + flush_lsn STRING NULL, + write_lsn STRING NULL, + client_port INT4 NULL, + replay_lag INTERVAL NULL, + reply_time TIMESTAMPTZ NULL, + state STRING NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_slru ( + blks_exists INT8 NULL, + name STRING NULL, + truncates INT8 NULL, + flushes INT8 NULL, + stats_reset TIMESTAMPTZ NULL, + blks_hit INT8 NULL, + blks_read INT8 NULL, + blks_written INT8 NULL, + blks_zeroed INT8 NULL +) CREATE TABLE pg_catalog.pg_stat_slru ( + blks_exists INT8 NULL, + name STRING NULL, + truncates INT8 NULL, + flushes INT8 NULL, + stats_reset TIMESTAMPTZ NULL, + blks_hit INT8 NULL, + blks_read INT8 NULL, + blks_written INT8 NULL, + blks_zeroed INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_ssl ( + issuer_dn STRING NULL, + version STRING NULL, + client_serial DECIMAL NULL, + compression BOOL NULL, + pid INT4 NULL, + ssl BOOL NULL, + bits INT4 NULL, + cipher STRING NULL, + client_dn STRING NULL +) CREATE TABLE pg_catalog.pg_stat_ssl ( + issuer_dn STRING NULL, + version STRING NULL, + client_serial DECIMAL NULL, + compression BOOL NULL, + pid INT4 NULL, + ssl BOOL NULL, + bits INT4 NULL, + cipher STRING NULL, + client_dn STRING NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_subscription ( + last_msg_receipt_time TIMESTAMPTZ NULL, + last_msg_send_time TIMESTAMPTZ NULL, + latest_end_lsn STRING NULL, + latest_end_time TIMESTAMPTZ NULL, + relid OID NULL, + pid INT4 NULL, + received_lsn STRING NULL, + subid OID NULL, + subname NAME NULL +) CREATE TABLE pg_catalog.pg_stat_subscription ( + last_msg_receipt_time TIMESTAMPTZ NULL, + last_msg_send_time TIMESTAMPTZ NULL, + latest_end_lsn STRING NULL, + latest_end_time TIMESTAMPTZ NULL, + relid OID NULL, + pid INT4 NULL, + received_lsn STRING NULL, + subid OID NULL, + subname NAME NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_sys_indexes ( + idx_tup_read INT8 NULL, + indexrelid OID NULL, + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + idx_scan INT8 NULL, + idx_tup_fetch INT8 NULL +) CREATE TABLE pg_catalog.pg_stat_sys_indexes ( + idx_tup_read INT8 NULL, + indexrelid OID NULL, + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + idx_scan INT8 NULL, + idx_tup_fetch INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_sys_tables ( + relname NAME NULL, + idx_scan INT8 NULL, + n_dead_tup INT8 NULL, + n_ins_since_vacuum INT8 NULL, + analyze_count INT8 NULL, + last_autovacuum TIMESTAMPTZ NULL, + last_vacuum TIMESTAMPTZ NULL, + n_tup_upd INT8 NULL, + seq_tup_read INT8 NULL, + n_tup_del INT8 NULL, + autoanalyze_count INT8 NULL, + autovacuum_count INT8 NULL, + idx_tup_fetch INT8 NULL, + last_analyze TIMESTAMPTZ NULL, + last_autoanalyze TIMESTAMPTZ NULL, + n_live_tup INT8 NULL, + n_mod_since_analyze INT8 NULL, + n_tup_hot_upd INT8 NULL, + n_tup_ins INT8 NULL, + relid OID NULL, + schemaname NAME NULL, + seq_scan INT8 NULL, + vacuum_count INT8 NULL +) CREATE TABLE pg_catalog.pg_stat_sys_tables ( + relname NAME NULL, + idx_scan INT8 NULL, + n_dead_tup INT8 NULL, + n_ins_since_vacuum INT8 NULL, + analyze_count INT8 NULL, + last_autovacuum TIMESTAMPTZ NULL, + last_vacuum TIMESTAMPTZ NULL, + n_tup_upd INT8 NULL, + seq_tup_read INT8 NULL, + n_tup_del INT8 NULL, + autoanalyze_count INT8 NULL, + autovacuum_count INT8 NULL, + idx_tup_fetch INT8 NULL, + last_analyze TIMESTAMPTZ NULL, + last_autoanalyze TIMESTAMPTZ NULL, + n_live_tup INT8 NULL, + n_mod_since_analyze INT8 NULL, + n_tup_hot_upd INT8 NULL, + n_tup_ins INT8 NULL, + relid OID NULL, + schemaname NAME NULL, + seq_scan INT8 NULL, + vacuum_count INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_user_functions ( + calls INT8 NULL, + funcid OID NULL, + funcname NAME NULL, + schemaname NAME NULL, + self_time FLOAT8 NULL, + total_time FLOAT8 NULL +) CREATE TABLE pg_catalog.pg_stat_user_functions ( + calls INT8 NULL, + funcid OID NULL, + funcname NAME NULL, + schemaname NAME NULL, + self_time FLOAT8 NULL, + total_time FLOAT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_user_indexes ( + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + idx_scan INT8 NULL, + idx_tup_fetch INT8 NULL, + idx_tup_read INT8 NULL, + indexrelid OID NULL +) CREATE TABLE pg_catalog.pg_stat_user_indexes ( + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + idx_scan INT8 NULL, + idx_tup_fetch INT8 NULL, + idx_tup_read INT8 NULL, + indexrelid OID NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_user_tables ( + n_ins_since_vacuum INT8 NULL, + n_tup_hot_upd INT8 NULL, + schemaname NAME NULL, + analyze_count INT8 NULL, + autovacuum_count INT8 NULL, + last_autoanalyze TIMESTAMPTZ NULL, + n_dead_tup INT8 NULL, + n_live_tup INT8 NULL, + n_tup_del INT8 NULL, + n_tup_ins INT8 NULL, + seq_tup_read INT8 NULL, + autoanalyze_count INT8 NULL, + last_analyze TIMESTAMPTZ NULL, + n_mod_since_analyze INT8 NULL, + relid OID NULL, + relname NAME NULL, + vacuum_count INT8 NULL, + idx_scan INT8 NULL, + last_autovacuum TIMESTAMPTZ NULL, + n_tup_upd INT8 NULL, + seq_scan INT8 NULL, + idx_tup_fetch INT8 NULL, + last_vacuum TIMESTAMPTZ NULL +) CREATE TABLE pg_catalog.pg_stat_user_tables ( + n_ins_since_vacuum INT8 NULL, + n_tup_hot_upd INT8 NULL, + schemaname NAME NULL, + analyze_count INT8 NULL, + autovacuum_count INT8 NULL, + last_autoanalyze TIMESTAMPTZ NULL, + n_dead_tup INT8 NULL, + n_live_tup INT8 NULL, + n_tup_del INT8 NULL, + n_tup_ins INT8 NULL, + seq_tup_read INT8 NULL, + autoanalyze_count INT8 NULL, + last_analyze TIMESTAMPTZ NULL, + n_mod_since_analyze INT8 NULL, + relid OID NULL, + relname NAME NULL, + vacuum_count INT8 NULL, + idx_scan INT8 NULL, + last_autovacuum TIMESTAMPTZ NULL, + n_tup_upd INT8 NULL, + seq_scan INT8 NULL, + idx_tup_fetch INT8 NULL, + last_vacuum TIMESTAMPTZ NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_wal_receiver ( + latest_end_time TIMESTAMPTZ NULL, + pid INT4 NULL, + sender_port INT4 NULL, + slot_name STRING NULL, + last_msg_receipt_time TIMESTAMPTZ NULL, + receive_start_lsn STRING NULL, + conninfo STRING NULL, + received_tli INT4 NULL, + sender_host STRING NULL, + flushed_lsn STRING NULL, + last_msg_send_time TIMESTAMPTZ NULL, + latest_end_lsn STRING NULL, + receive_start_tli INT4 NULL, + status STRING NULL, + written_lsn STRING NULL +) CREATE TABLE pg_catalog.pg_stat_wal_receiver ( + latest_end_time TIMESTAMPTZ NULL, + pid INT4 NULL, + sender_port INT4 NULL, + slot_name STRING NULL, + last_msg_receipt_time TIMESTAMPTZ NULL, + receive_start_lsn STRING NULL, + conninfo STRING NULL, + received_tli INT4 NULL, + sender_host STRING NULL, + flushed_lsn STRING NULL, + last_msg_send_time TIMESTAMPTZ NULL, + latest_end_lsn STRING NULL, + receive_start_tli INT4 NULL, + status STRING NULL, + written_lsn STRING NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_xact_all_tables ( + relname NAME NULL, + schemaname NAME NULL, + seq_scan INT8 NULL, + idx_scan INT8 NULL, + idx_tup_fetch INT8 NULL, + n_tup_del INT8 NULL, + n_tup_hot_upd INT8 NULL, + n_tup_ins INT8 NULL, + seq_tup_read INT8 NULL, + n_tup_upd INT8 NULL, + relid OID NULL +) CREATE TABLE pg_catalog.pg_stat_xact_all_tables ( + relname NAME NULL, + schemaname NAME NULL, + seq_scan INT8 NULL, + idx_scan INT8 NULL, + idx_tup_fetch INT8 NULL, + n_tup_del INT8 NULL, + n_tup_hot_upd INT8 NULL, + n_tup_ins INT8 NULL, + seq_tup_read INT8 NULL, + n_tup_upd INT8 NULL, + relid OID NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_xact_sys_tables ( + idx_scan INT8 NULL, + idx_tup_fetch INT8 NULL, + n_tup_del INT8 NULL, + relid OID NULL, + schemaname NAME NULL, + n_tup_hot_upd INT8 NULL, + n_tup_ins INT8 NULL, + n_tup_upd INT8 NULL, + relname NAME NULL, + seq_scan INT8 NULL, + seq_tup_read INT8 NULL +) CREATE TABLE pg_catalog.pg_stat_xact_sys_tables ( + idx_scan INT8 NULL, + idx_tup_fetch INT8 NULL, + n_tup_del INT8 NULL, + relid OID NULL, + schemaname NAME NULL, + n_tup_hot_upd INT8 NULL, + n_tup_ins INT8 NULL, + n_tup_upd INT8 NULL, + relname NAME NULL, + seq_scan INT8 NULL, + seq_tup_read INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_xact_user_functions ( + calls INT8 NULL, + funcid OID NULL, + funcname NAME NULL, + schemaname NAME NULL, + self_time FLOAT8 NULL, + total_time FLOAT8 NULL +) CREATE TABLE pg_catalog.pg_stat_xact_user_functions ( + calls INT8 NULL, + funcid OID NULL, + funcname NAME NULL, + schemaname NAME NULL, + self_time FLOAT8 NULL, + total_time FLOAT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_stat_xact_user_tables ( + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + n_tup_upd INT8 NULL, + idx_tup_fetch INT8 NULL, + n_tup_del INT8 NULL, + n_tup_hot_upd INT8 NULL, + n_tup_ins INT8 NULL, + seq_scan INT8 NULL, + seq_tup_read INT8 NULL, + idx_scan INT8 NULL +) CREATE TABLE pg_catalog.pg_stat_xact_user_tables ( + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + n_tup_upd INT8 NULL, + idx_tup_fetch INT8 NULL, + n_tup_del INT8 NULL, + n_tup_hot_upd INT8 NULL, + n_tup_ins INT8 NULL, + seq_scan INT8 NULL, + seq_tup_read INT8 NULL, + idx_scan INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_statio_all_indexes ( + idx_blks_read INT8 NULL, + indexrelid OID NULL, + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + idx_blks_hit INT8 NULL +) CREATE TABLE pg_catalog.pg_statio_all_indexes ( + idx_blks_read INT8 NULL, + indexrelid OID NULL, + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + idx_blks_hit INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_statio_all_sequences ( + blks_hit INT8 NULL, + blks_read INT8 NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL +) CREATE TABLE pg_catalog.pg_statio_all_sequences ( + blks_hit INT8 NULL, + blks_read INT8 NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL +) {} {} +CREATE TABLE pg_catalog.pg_statio_all_tables ( + idx_blks_hit INT8 NULL, + idx_blks_read INT8 NULL, + relid OID NULL, + relname NAME NULL, + tidx_blks_hit INT8 NULL, + toast_blks_hit INT8 NULL, + heap_blks_hit INT8 NULL, + heap_blks_read INT8 NULL, + toast_blks_read INT8 NULL, + schemaname NAME NULL, + tidx_blks_read INT8 NULL +) CREATE TABLE pg_catalog.pg_statio_all_tables ( + idx_blks_hit INT8 NULL, + idx_blks_read INT8 NULL, + relid OID NULL, + relname NAME NULL, + tidx_blks_hit INT8 NULL, + toast_blks_hit INT8 NULL, + heap_blks_hit INT8 NULL, + heap_blks_read INT8 NULL, + toast_blks_read INT8 NULL, + schemaname NAME NULL, + tidx_blks_read INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_statio_sys_indexes ( + idx_blks_read INT8 NULL, + indexrelid OID NULL, + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + idx_blks_hit INT8 NULL +) CREATE TABLE pg_catalog.pg_statio_sys_indexes ( + idx_blks_read INT8 NULL, + indexrelid OID NULL, + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + idx_blks_hit INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_statio_sys_sequences ( + schemaname NAME NULL, + blks_hit INT8 NULL, + blks_read INT8 NULL, + relid OID NULL, + relname NAME NULL +) CREATE TABLE pg_catalog.pg_statio_sys_sequences ( + schemaname NAME NULL, + blks_hit INT8 NULL, + blks_read INT8 NULL, + relid OID NULL, + relname NAME NULL +) {} {} +CREATE TABLE pg_catalog.pg_statio_sys_tables ( + toast_blks_hit INT8 NULL, + heap_blks_hit INT8 NULL, + idx_blks_hit INT8 NULL, + relname NAME NULL, + tidx_blks_hit INT8 NULL, + tidx_blks_read INT8 NULL, + heap_blks_read INT8 NULL, + idx_blks_read INT8 NULL, + relid OID NULL, + schemaname NAME NULL, + toast_blks_read INT8 NULL +) CREATE TABLE pg_catalog.pg_statio_sys_tables ( + toast_blks_hit INT8 NULL, + heap_blks_hit INT8 NULL, + idx_blks_hit INT8 NULL, + relname NAME NULL, + tidx_blks_hit INT8 NULL, + tidx_blks_read INT8 NULL, + heap_blks_read INT8 NULL, + idx_blks_read INT8 NULL, + relid OID NULL, + schemaname NAME NULL, + toast_blks_read INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_statio_user_indexes ( + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + idx_blks_hit INT8 NULL, + idx_blks_read INT8 NULL, + indexrelid OID NULL +) CREATE TABLE pg_catalog.pg_statio_user_indexes ( + indexrelname NAME NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + idx_blks_hit INT8 NULL, + idx_blks_read INT8 NULL, + indexrelid OID NULL +) {} {} +CREATE TABLE pg_catalog.pg_statio_user_sequences ( + blks_read INT8 NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + blks_hit INT8 NULL +) CREATE TABLE pg_catalog.pg_statio_user_sequences ( + blks_read INT8 NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + blks_hit INT8 NULL +) {} {} +CREATE TABLE pg_catalog.pg_statio_user_tables ( + heap_blks_hit INT8 NULL, + heap_blks_read INT8 NULL, + tidx_blks_read INT8 NULL, + toast_blks_hit INT8 NULL, + toast_blks_read INT8 NULL, + idx_blks_hit INT8 NULL, + idx_blks_read INT8 NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + tidx_blks_hit INT8 NULL +) CREATE TABLE pg_catalog.pg_statio_user_tables ( + heap_blks_hit INT8 NULL, + heap_blks_read INT8 NULL, + tidx_blks_read INT8 NULL, + toast_blks_hit INT8 NULL, + toast_blks_read INT8 NULL, + idx_blks_hit INT8 NULL, + idx_blks_read INT8 NULL, + relid OID NULL, + relname NAME NULL, + schemaname NAME NULL, + tidx_blks_hit INT8 NULL +) {} {} CREATE TABLE pg_catalog.pg_statistic_ext ( stxrelid OID NULL, stxstattarget INT4 NULL, diff --git a/pkg/sql/logictest/testdata/logic_test/grant_table b/pkg/sql/logictest/testdata/logic_test/grant_table index b1ee54e6a429..403aa5788e80 100644 --- a/pkg/sql/logictest/testdata/logic_test/grant_table +++ b/pkg/sql/logictest/testdata/logic_test/grant_table @@ -382,8 +382,41 @@ test pg_catalog pg_shdescription public test pg_catalog pg_shmem_allocations public SELECT test pg_catalog pg_shseclabel public SELECT test pg_catalog pg_stat_activity public SELECT +test pg_catalog pg_stat_all_indexes public SELECT +test pg_catalog pg_stat_all_tables public SELECT +test pg_catalog pg_stat_archiver public SELECT +test pg_catalog pg_stat_bgwriter public SELECT test pg_catalog pg_stat_database public SELECT test pg_catalog pg_stat_database_conflicts public SELECT +test pg_catalog pg_stat_gssapi public SELECT +test pg_catalog pg_stat_progress_analyze public SELECT +test pg_catalog pg_stat_progress_basebackup public SELECT +test pg_catalog pg_stat_progress_cluster public SELECT +test pg_catalog pg_stat_progress_create_index public SELECT +test pg_catalog pg_stat_progress_vacuum public SELECT +test pg_catalog pg_stat_replication public SELECT +test pg_catalog pg_stat_slru public SELECT +test pg_catalog pg_stat_ssl public SELECT +test pg_catalog pg_stat_subscription public SELECT +test pg_catalog pg_stat_sys_indexes public SELECT +test pg_catalog pg_stat_sys_tables public SELECT +test pg_catalog pg_stat_user_functions public SELECT +test pg_catalog pg_stat_user_indexes public SELECT +test pg_catalog pg_stat_user_tables public SELECT +test pg_catalog pg_stat_wal_receiver public SELECT +test pg_catalog pg_stat_xact_all_tables public SELECT +test pg_catalog pg_stat_xact_sys_tables public SELECT +test pg_catalog pg_stat_xact_user_functions public SELECT +test pg_catalog pg_stat_xact_user_tables public SELECT +test pg_catalog pg_statio_all_indexes public SELECT +test pg_catalog pg_statio_all_sequences public SELECT +test pg_catalog pg_statio_all_tables public SELECT +test pg_catalog pg_statio_sys_indexes public SELECT +test pg_catalog pg_statio_sys_sequences public SELECT +test pg_catalog pg_statio_sys_tables public SELECT +test pg_catalog pg_statio_user_indexes public SELECT +test pg_catalog pg_statio_user_sequences public SELECT +test pg_catalog pg_statio_user_tables public SELECT test pg_catalog pg_statistic_ext public SELECT test pg_catalog pg_subscription public SELECT test pg_catalog pg_subscription_rel public SELECT diff --git a/pkg/sql/logictest/testdata/logic_test/information_schema b/pkg/sql/logictest/testdata/logic_test/information_schema index 463f5fd5009e..bef2310a87b3 100644 --- a/pkg/sql/logictest/testdata/logic_test/information_schema +++ b/pkg/sql/logictest/testdata/logic_test/information_schema @@ -610,8 +610,41 @@ pg_catalog pg_shdescription pg_catalog pg_shmem_allocations pg_catalog pg_shseclabel pg_catalog pg_stat_activity +pg_catalog pg_stat_all_indexes +pg_catalog pg_stat_all_tables +pg_catalog pg_stat_archiver +pg_catalog pg_stat_bgwriter pg_catalog pg_stat_database pg_catalog pg_stat_database_conflicts +pg_catalog pg_stat_gssapi +pg_catalog pg_stat_progress_analyze +pg_catalog pg_stat_progress_basebackup +pg_catalog pg_stat_progress_cluster +pg_catalog pg_stat_progress_create_index +pg_catalog pg_stat_progress_vacuum +pg_catalog pg_stat_replication +pg_catalog pg_stat_slru +pg_catalog pg_stat_ssl +pg_catalog pg_stat_subscription +pg_catalog pg_stat_sys_indexes +pg_catalog pg_stat_sys_tables +pg_catalog pg_stat_user_functions +pg_catalog pg_stat_user_indexes +pg_catalog pg_stat_user_tables +pg_catalog pg_stat_wal_receiver +pg_catalog pg_stat_xact_all_tables +pg_catalog pg_stat_xact_sys_tables +pg_catalog pg_stat_xact_user_functions +pg_catalog pg_stat_xact_user_tables +pg_catalog pg_statio_all_indexes +pg_catalog pg_statio_all_sequences +pg_catalog pg_statio_all_tables +pg_catalog pg_statio_sys_indexes +pg_catalog pg_statio_sys_sequences +pg_catalog pg_statio_sys_tables +pg_catalog pg_statio_user_indexes +pg_catalog pg_statio_user_sequences +pg_catalog pg_statio_user_tables pg_catalog pg_statistic_ext pg_catalog pg_subscription pg_catalog pg_subscription_rel @@ -883,8 +916,41 @@ pg_shdescription pg_shmem_allocations pg_shseclabel pg_stat_activity +pg_stat_all_indexes +pg_stat_all_tables +pg_stat_archiver +pg_stat_bgwriter pg_stat_database pg_stat_database_conflicts +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 pg_statistic_ext pg_subscription pg_subscription_rel @@ -1191,8 +1257,41 @@ system pg_catalog pg_shdescription SYSTEM system pg_catalog pg_shmem_allocations SYSTEM VIEW NO 1 system pg_catalog pg_shseclabel SYSTEM VIEW NO 1 system pg_catalog pg_stat_activity SYSTEM VIEW NO 1 +system pg_catalog pg_stat_all_indexes SYSTEM VIEW NO 1 +system pg_catalog pg_stat_all_tables SYSTEM VIEW NO 1 +system pg_catalog pg_stat_archiver SYSTEM VIEW NO 1 +system pg_catalog pg_stat_bgwriter SYSTEM VIEW NO 1 system pg_catalog pg_stat_database SYSTEM VIEW NO 1 system pg_catalog pg_stat_database_conflicts SYSTEM VIEW NO 1 +system pg_catalog pg_stat_gssapi SYSTEM VIEW NO 1 +system pg_catalog pg_stat_progress_analyze SYSTEM VIEW NO 1 +system pg_catalog pg_stat_progress_basebackup SYSTEM VIEW NO 1 +system pg_catalog pg_stat_progress_cluster SYSTEM VIEW NO 1 +system pg_catalog pg_stat_progress_create_index SYSTEM VIEW NO 1 +system pg_catalog pg_stat_progress_vacuum SYSTEM VIEW NO 1 +system pg_catalog pg_stat_replication SYSTEM VIEW NO 1 +system pg_catalog pg_stat_slru SYSTEM VIEW NO 1 +system pg_catalog pg_stat_ssl SYSTEM VIEW NO 1 +system pg_catalog pg_stat_subscription SYSTEM VIEW NO 1 +system pg_catalog pg_stat_sys_indexes SYSTEM VIEW NO 1 +system pg_catalog pg_stat_sys_tables SYSTEM VIEW NO 1 +system pg_catalog pg_stat_user_functions SYSTEM VIEW NO 1 +system pg_catalog pg_stat_user_indexes SYSTEM VIEW NO 1 +system pg_catalog pg_stat_user_tables SYSTEM VIEW NO 1 +system pg_catalog pg_stat_wal_receiver SYSTEM VIEW NO 1 +system pg_catalog pg_stat_xact_all_tables SYSTEM VIEW NO 1 +system pg_catalog pg_stat_xact_sys_tables SYSTEM VIEW NO 1 +system pg_catalog pg_stat_xact_user_functions SYSTEM VIEW NO 1 +system pg_catalog pg_stat_xact_user_tables SYSTEM VIEW NO 1 +system pg_catalog pg_statio_all_indexes SYSTEM VIEW NO 1 +system pg_catalog pg_statio_all_sequences SYSTEM VIEW NO 1 +system pg_catalog pg_statio_all_tables SYSTEM VIEW NO 1 +system pg_catalog pg_statio_sys_indexes SYSTEM VIEW NO 1 +system pg_catalog pg_statio_sys_sequences SYSTEM VIEW NO 1 +system pg_catalog pg_statio_sys_tables SYSTEM VIEW NO 1 +system pg_catalog pg_statio_user_indexes SYSTEM VIEW NO 1 +system pg_catalog pg_statio_user_sequences SYSTEM VIEW NO 1 +system pg_catalog pg_statio_user_tables SYSTEM VIEW NO 1 system pg_catalog pg_statistic_ext SYSTEM VIEW NO 1 system pg_catalog pg_subscription SYSTEM VIEW NO 1 system pg_catalog pg_subscription_rel SYSTEM VIEW NO 1 @@ -2658,8 +2757,41 @@ NULL public system pg_catalog pg_shdescription NULL public system pg_catalog pg_shmem_allocations SELECT NULL YES NULL public system pg_catalog pg_shseclabel SELECT NULL YES NULL public system pg_catalog pg_stat_activity SELECT NULL YES +NULL public system pg_catalog pg_stat_all_indexes SELECT NULL YES +NULL public system pg_catalog pg_stat_all_tables SELECT NULL YES +NULL public system pg_catalog pg_stat_archiver SELECT NULL YES +NULL public system pg_catalog pg_stat_bgwriter SELECT NULL YES NULL public system pg_catalog pg_stat_database SELECT NULL YES NULL public system pg_catalog pg_stat_database_conflicts SELECT NULL YES +NULL public system pg_catalog pg_stat_gssapi SELECT NULL YES +NULL public system pg_catalog pg_stat_progress_analyze SELECT NULL YES +NULL public system pg_catalog pg_stat_progress_basebackup SELECT NULL YES +NULL public system pg_catalog pg_stat_progress_cluster SELECT NULL YES +NULL public system pg_catalog pg_stat_progress_create_index SELECT NULL YES +NULL public system pg_catalog pg_stat_progress_vacuum SELECT NULL YES +NULL public system pg_catalog pg_stat_replication SELECT NULL YES +NULL public system pg_catalog pg_stat_slru SELECT NULL YES +NULL public system pg_catalog pg_stat_ssl SELECT NULL YES +NULL public system pg_catalog pg_stat_subscription SELECT NULL YES +NULL public system pg_catalog pg_stat_sys_indexes SELECT NULL YES +NULL public system pg_catalog pg_stat_sys_tables SELECT NULL YES +NULL public system pg_catalog pg_stat_user_functions SELECT NULL YES +NULL public system pg_catalog pg_stat_user_indexes SELECT NULL YES +NULL public system pg_catalog pg_stat_user_tables SELECT NULL YES +NULL public system pg_catalog pg_stat_wal_receiver SELECT NULL YES +NULL public system pg_catalog pg_stat_xact_all_tables SELECT NULL YES +NULL public system pg_catalog pg_stat_xact_sys_tables SELECT NULL YES +NULL public system pg_catalog pg_stat_xact_user_functions SELECT NULL YES +NULL public system pg_catalog pg_stat_xact_user_tables SELECT NULL YES +NULL public system pg_catalog pg_statio_all_indexes SELECT NULL YES +NULL public system pg_catalog pg_statio_all_sequences SELECT NULL YES +NULL public system pg_catalog pg_statio_all_tables SELECT NULL YES +NULL public system pg_catalog pg_statio_sys_indexes SELECT NULL YES +NULL public system pg_catalog pg_statio_sys_sequences SELECT NULL YES +NULL public system pg_catalog pg_statio_sys_tables SELECT NULL YES +NULL public system pg_catalog pg_statio_user_indexes SELECT NULL YES +NULL public system pg_catalog pg_statio_user_sequences SELECT NULL YES +NULL public system pg_catalog pg_statio_user_tables SELECT NULL YES NULL public system pg_catalog pg_statistic_ext SELECT NULL YES NULL public system pg_catalog pg_subscription SELECT NULL YES NULL public system pg_catalog pg_subscription_rel SELECT NULL YES @@ -3190,8 +3322,41 @@ NULL public system pg_catalog pg_shdescription NULL public system pg_catalog pg_shmem_allocations SELECT NULL YES NULL public system pg_catalog pg_shseclabel SELECT NULL YES NULL public system pg_catalog pg_stat_activity SELECT NULL YES +NULL public system pg_catalog pg_stat_all_indexes SELECT NULL YES +NULL public system pg_catalog pg_stat_all_tables SELECT NULL YES +NULL public system pg_catalog pg_stat_archiver SELECT NULL YES +NULL public system pg_catalog pg_stat_bgwriter SELECT NULL YES NULL public system pg_catalog pg_stat_database SELECT NULL YES NULL public system pg_catalog pg_stat_database_conflicts SELECT NULL YES +NULL public system pg_catalog pg_stat_gssapi SELECT NULL YES +NULL public system pg_catalog pg_stat_progress_analyze SELECT NULL YES +NULL public system pg_catalog pg_stat_progress_basebackup SELECT NULL YES +NULL public system pg_catalog pg_stat_progress_cluster SELECT NULL YES +NULL public system pg_catalog pg_stat_progress_create_index SELECT NULL YES +NULL public system pg_catalog pg_stat_progress_vacuum SELECT NULL YES +NULL public system pg_catalog pg_stat_replication SELECT NULL YES +NULL public system pg_catalog pg_stat_slru SELECT NULL YES +NULL public system pg_catalog pg_stat_ssl SELECT NULL YES +NULL public system pg_catalog pg_stat_subscription SELECT NULL YES +NULL public system pg_catalog pg_stat_sys_indexes SELECT NULL YES +NULL public system pg_catalog pg_stat_sys_tables SELECT NULL YES +NULL public system pg_catalog pg_stat_user_functions SELECT NULL YES +NULL public system pg_catalog pg_stat_user_indexes SELECT NULL YES +NULL public system pg_catalog pg_stat_user_tables SELECT NULL YES +NULL public system pg_catalog pg_stat_wal_receiver SELECT NULL YES +NULL public system pg_catalog pg_stat_xact_all_tables SELECT NULL YES +NULL public system pg_catalog pg_stat_xact_sys_tables SELECT NULL YES +NULL public system pg_catalog pg_stat_xact_user_functions SELECT NULL YES +NULL public system pg_catalog pg_stat_xact_user_tables SELECT NULL YES +NULL public system pg_catalog pg_statio_all_indexes SELECT NULL YES +NULL public system pg_catalog pg_statio_all_sequences SELECT NULL YES +NULL public system pg_catalog pg_statio_all_tables SELECT NULL YES +NULL public system pg_catalog pg_statio_sys_indexes SELECT NULL YES +NULL public system pg_catalog pg_statio_sys_sequences SELECT NULL YES +NULL public system pg_catalog pg_statio_sys_tables SELECT NULL YES +NULL public system pg_catalog pg_statio_user_indexes SELECT NULL YES +NULL public system pg_catalog pg_statio_user_sequences SELECT NULL YES +NULL public system pg_catalog pg_statio_user_tables SELECT NULL YES NULL public system pg_catalog pg_statistic_ext SELECT NULL YES NULL public system pg_catalog pg_subscription SELECT NULL YES NULL public system pg_catalog pg_subscription_rel SELECT NULL YES diff --git a/pkg/sql/logictest/testdata/logic_test/pg_catalog b/pkg/sql/logictest/testdata/logic_test/pg_catalog index c3cfca954a9f..c90a497058f3 100644 --- a/pkg/sql/logictest/testdata/logic_test/pg_catalog +++ b/pkg/sql/logictest/testdata/logic_test/pg_catalog @@ -88,8 +88,41 @@ pg_catalog pg_shdescription table NULL NULL NULL pg_catalog pg_shmem_allocations table NULL NULL NULL pg_catalog pg_shseclabel table NULL NULL NULL pg_catalog pg_stat_activity table NULL NULL NULL +pg_catalog pg_stat_all_indexes table NULL NULL NULL +pg_catalog pg_stat_all_tables table NULL NULL NULL +pg_catalog pg_stat_archiver table NULL NULL NULL +pg_catalog pg_stat_bgwriter table NULL NULL NULL pg_catalog pg_stat_database table NULL NULL NULL pg_catalog pg_stat_database_conflicts table NULL NULL NULL +pg_catalog pg_stat_gssapi table NULL NULL NULL +pg_catalog pg_stat_progress_analyze table NULL NULL NULL +pg_catalog pg_stat_progress_basebackup table NULL NULL NULL +pg_catalog pg_stat_progress_cluster table NULL NULL NULL +pg_catalog pg_stat_progress_create_index table NULL NULL NULL +pg_catalog pg_stat_progress_vacuum table NULL NULL NULL +pg_catalog pg_stat_replication table NULL NULL NULL +pg_catalog pg_stat_slru table NULL NULL NULL +pg_catalog pg_stat_ssl table NULL NULL NULL +pg_catalog pg_stat_subscription table NULL NULL NULL +pg_catalog pg_stat_sys_indexes table NULL NULL NULL +pg_catalog pg_stat_sys_tables table NULL NULL NULL +pg_catalog pg_stat_user_functions table NULL NULL NULL +pg_catalog pg_stat_user_indexes table NULL NULL NULL +pg_catalog pg_stat_user_tables table NULL NULL NULL +pg_catalog pg_stat_wal_receiver table NULL NULL NULL +pg_catalog pg_stat_xact_all_tables table NULL NULL NULL +pg_catalog pg_stat_xact_sys_tables table NULL NULL NULL +pg_catalog pg_stat_xact_user_functions table NULL NULL NULL +pg_catalog pg_stat_xact_user_tables table NULL NULL NULL +pg_catalog pg_statio_all_indexes table NULL NULL NULL +pg_catalog pg_statio_all_sequences table NULL NULL NULL +pg_catalog pg_statio_all_tables table NULL NULL NULL +pg_catalog pg_statio_sys_indexes table NULL NULL NULL +pg_catalog pg_statio_sys_sequences table NULL NULL NULL +pg_catalog pg_statio_sys_tables table NULL NULL NULL +pg_catalog pg_statio_user_indexes table NULL NULL NULL +pg_catalog pg_statio_user_sequences table NULL NULL NULL +pg_catalog pg_statio_user_tables table NULL NULL NULL pg_catalog pg_statistic_ext table NULL NULL NULL pg_catalog pg_subscription table NULL NULL NULL pg_catalog pg_subscription_rel table NULL NULL NULL @@ -206,8 +239,41 @@ pg_catalog pg_shdescription table NULL NULL NULL pg_catalog pg_shmem_allocations table NULL NULL NULL pg_catalog pg_shseclabel table NULL NULL NULL pg_catalog pg_stat_activity table NULL NULL NULL +pg_catalog pg_stat_all_indexes table NULL NULL NULL +pg_catalog pg_stat_all_tables table NULL NULL NULL +pg_catalog pg_stat_archiver table NULL NULL NULL +pg_catalog pg_stat_bgwriter table NULL NULL NULL pg_catalog pg_stat_database table NULL NULL NULL pg_catalog pg_stat_database_conflicts table NULL NULL NULL +pg_catalog pg_stat_gssapi table NULL NULL NULL +pg_catalog pg_stat_progress_analyze table NULL NULL NULL +pg_catalog pg_stat_progress_basebackup table NULL NULL NULL +pg_catalog pg_stat_progress_cluster table NULL NULL NULL +pg_catalog pg_stat_progress_create_index table NULL NULL NULL +pg_catalog pg_stat_progress_vacuum table NULL NULL NULL +pg_catalog pg_stat_replication table NULL NULL NULL +pg_catalog pg_stat_slru table NULL NULL NULL +pg_catalog pg_stat_ssl table NULL NULL NULL +pg_catalog pg_stat_subscription table NULL NULL NULL +pg_catalog pg_stat_sys_indexes table NULL NULL NULL +pg_catalog pg_stat_sys_tables table NULL NULL NULL +pg_catalog pg_stat_user_functions table NULL NULL NULL +pg_catalog pg_stat_user_indexes table NULL NULL NULL +pg_catalog pg_stat_user_tables table NULL NULL NULL +pg_catalog pg_stat_wal_receiver table NULL NULL NULL +pg_catalog pg_stat_xact_all_tables table NULL NULL NULL +pg_catalog pg_stat_xact_sys_tables table NULL NULL NULL +pg_catalog pg_stat_xact_user_functions table NULL NULL NULL +pg_catalog pg_stat_xact_user_tables table NULL NULL NULL +pg_catalog pg_statio_all_indexes table NULL NULL NULL +pg_catalog pg_statio_all_sequences table NULL NULL NULL +pg_catalog pg_statio_all_tables table NULL NULL NULL +pg_catalog pg_statio_sys_indexes table NULL NULL NULL +pg_catalog pg_statio_sys_sequences table NULL NULL NULL +pg_catalog pg_statio_sys_tables table NULL NULL NULL +pg_catalog pg_statio_user_indexes table NULL NULL NULL +pg_catalog pg_statio_user_sequences table NULL NULL NULL +pg_catalog pg_statio_user_tables table NULL NULL NULL pg_catalog pg_statistic_ext table NULL NULL NULL pg_catalog pg_subscription table NULL NULL NULL pg_catalog pg_subscription_rel table NULL NULL NULL @@ -1459,30 +1525,63 @@ oid typname typnamespace typowner typ 100072 _newtype1 2332901747 1546506610 -1 false b 100073 newtype2 2332901747 1546506610 -1 false e 100074 _newtype2 2332901747 1546506610 -1 false b -4294967054 spatial_ref_sys 3553698885 3233629770 -1 false c -4294967055 geometry_columns 3553698885 3233629770 -1 false c -4294967056 geography_columns 3553698885 3233629770 -1 false c -4294967058 pg_views 1307062959 3233629770 -1 false c -4294967059 pg_user 1307062959 3233629770 -1 false c -4294967060 pg_user_mappings 1307062959 3233629770 -1 false c -4294967061 pg_user_mapping 1307062959 3233629770 -1 false c -4294967062 pg_type 1307062959 3233629770 -1 false c -4294967063 pg_ts_template 1307062959 3233629770 -1 false c -4294967064 pg_ts_parser 1307062959 3233629770 -1 false c -4294967065 pg_ts_dict 1307062959 3233629770 -1 false c -4294967066 pg_ts_config 1307062959 3233629770 -1 false c -4294967067 pg_ts_config_map 1307062959 3233629770 -1 false c -4294967068 pg_trigger 1307062959 3233629770 -1 false c -4294967069 pg_transform 1307062959 3233629770 -1 false c -4294967070 pg_timezone_names 1307062959 3233629770 -1 false c -4294967071 pg_timezone_abbrevs 1307062959 3233629770 -1 false c -4294967072 pg_tablespace 1307062959 3233629770 -1 false c -4294967073 pg_tables 1307062959 3233629770 -1 false c -4294967074 pg_subscription 1307062959 3233629770 -1 false c -4294967075 pg_subscription_rel 1307062959 3233629770 -1 false c -4294967076 pg_statistic_ext 1307062959 3233629770 -1 false c -4294967077 pg_stat_database 1307062959 3233629770 -1 false c -4294967078 pg_stat_database_conflicts 1307062959 3233629770 -1 false c +4294967021 spatial_ref_sys 3553698885 3233629770 -1 false c +4294967022 geometry_columns 3553698885 3233629770 -1 false c +4294967023 geography_columns 3553698885 3233629770 -1 false c +4294967025 pg_views 1307062959 3233629770 -1 false c +4294967026 pg_user 1307062959 3233629770 -1 false c +4294967027 pg_user_mappings 1307062959 3233629770 -1 false c +4294967028 pg_user_mapping 1307062959 3233629770 -1 false c +4294967029 pg_type 1307062959 3233629770 -1 false c +4294967030 pg_ts_template 1307062959 3233629770 -1 false c +4294967031 pg_ts_parser 1307062959 3233629770 -1 false c +4294967032 pg_ts_dict 1307062959 3233629770 -1 false c +4294967033 pg_ts_config 1307062959 3233629770 -1 false c +4294967034 pg_ts_config_map 1307062959 3233629770 -1 false c +4294967035 pg_trigger 1307062959 3233629770 -1 false c +4294967036 pg_transform 1307062959 3233629770 -1 false c +4294967037 pg_timezone_names 1307062959 3233629770 -1 false c +4294967038 pg_timezone_abbrevs 1307062959 3233629770 -1 false c +4294967039 pg_tablespace 1307062959 3233629770 -1 false c +4294967040 pg_tables 1307062959 3233629770 -1 false c +4294967041 pg_subscription 1307062959 3233629770 -1 false c +4294967042 pg_subscription_rel 1307062959 3233629770 -1 false c +4294967043 pg_statistic_ext 1307062959 3233629770 -1 false c +4294967044 pg_statio_user_tables 1307062959 3233629770 -1 false c +4294967045 pg_statio_user_sequences 1307062959 3233629770 -1 false c +4294967046 pg_statio_user_indexes 1307062959 3233629770 -1 false c +4294967047 pg_statio_sys_tables 1307062959 3233629770 -1 false c +4294967048 pg_statio_sys_sequences 1307062959 3233629770 -1 false c +4294967049 pg_statio_sys_indexes 1307062959 3233629770 -1 false c +4294967050 pg_statio_all_tables 1307062959 3233629770 -1 false c +4294967051 pg_statio_all_sequences 1307062959 3233629770 -1 false c +4294967052 pg_statio_all_indexes 1307062959 3233629770 -1 false c +4294967053 pg_stat_xact_user_tables 1307062959 3233629770 -1 false c +4294967054 pg_stat_xact_user_functions 1307062959 3233629770 -1 false c +4294967055 pg_stat_xact_sys_tables 1307062959 3233629770 -1 false c +4294967056 pg_stat_xact_all_tables 1307062959 3233629770 -1 false c +4294967057 pg_stat_wal_receiver 1307062959 3233629770 -1 false c +4294967058 pg_stat_user_tables 1307062959 3233629770 -1 false c +4294967059 pg_stat_user_indexes 1307062959 3233629770 -1 false c +4294967060 pg_stat_user_functions 1307062959 3233629770 -1 false c +4294967061 pg_stat_sys_tables 1307062959 3233629770 -1 false c +4294967062 pg_stat_sys_indexes 1307062959 3233629770 -1 false c +4294967063 pg_stat_subscription 1307062959 3233629770 -1 false c +4294967064 pg_stat_ssl 1307062959 3233629770 -1 false c +4294967065 pg_stat_slru 1307062959 3233629770 -1 false c +4294967066 pg_stat_replication 1307062959 3233629770 -1 false c +4294967067 pg_stat_progress_vacuum 1307062959 3233629770 -1 false c +4294967068 pg_stat_progress_create_index 1307062959 3233629770 -1 false c +4294967069 pg_stat_progress_cluster 1307062959 3233629770 -1 false c +4294967070 pg_stat_progress_basebackup 1307062959 3233629770 -1 false c +4294967071 pg_stat_progress_analyze 1307062959 3233629770 -1 false c +4294967072 pg_stat_gssapi 1307062959 3233629770 -1 false c +4294967073 pg_stat_database 1307062959 3233629770 -1 false c +4294967074 pg_stat_database_conflicts 1307062959 3233629770 -1 false c +4294967075 pg_stat_bgwriter 1307062959 3233629770 -1 false c +4294967076 pg_stat_archiver 1307062959 3233629770 -1 false c +4294967077 pg_stat_all_tables 1307062959 3233629770 -1 false c +4294967078 pg_stat_all_indexes 1307062959 3233629770 -1 false c 4294967079 pg_stat_activity 1307062959 3233629770 -1 false c 4294967080 pg_shmem_allocations 1307062959 3233629770 -1 false c 4294967081 pg_shdepend 1307062959 3233629770 -1 false c @@ -1794,30 +1893,63 @@ oid typname typcategory typispreferred 100072 _newtype1 A false true , 0 100071 0 100073 newtype2 E false true , 0 0 100074 100074 _newtype2 A false true , 0 100073 0 -4294967054 spatial_ref_sys C false true , 4294967054 0 0 -4294967055 geometry_columns C false true , 4294967055 0 0 -4294967056 geography_columns C false true , 4294967056 0 0 -4294967058 pg_views C false true , 4294967058 0 0 -4294967059 pg_user C false true , 4294967059 0 0 -4294967060 pg_user_mappings C false true , 4294967060 0 0 -4294967061 pg_user_mapping C false true , 4294967061 0 0 -4294967062 pg_type C false true , 4294967062 0 0 -4294967063 pg_ts_template C false true , 4294967063 0 0 -4294967064 pg_ts_parser C false true , 4294967064 0 0 -4294967065 pg_ts_dict C false true , 4294967065 0 0 -4294967066 pg_ts_config C false true , 4294967066 0 0 -4294967067 pg_ts_config_map C false true , 4294967067 0 0 -4294967068 pg_trigger C false true , 4294967068 0 0 -4294967069 pg_transform C false true , 4294967069 0 0 -4294967070 pg_timezone_names C false true , 4294967070 0 0 -4294967071 pg_timezone_abbrevs C false true , 4294967071 0 0 -4294967072 pg_tablespace C false true , 4294967072 0 0 -4294967073 pg_tables C false true , 4294967073 0 0 -4294967074 pg_subscription C false true , 4294967074 0 0 -4294967075 pg_subscription_rel C false true , 4294967075 0 0 -4294967076 pg_statistic_ext C false true , 4294967076 0 0 -4294967077 pg_stat_database C false true , 4294967077 0 0 -4294967078 pg_stat_database_conflicts C false true , 4294967078 0 0 +4294967021 spatial_ref_sys C false true , 4294967021 0 0 +4294967022 geometry_columns C false true , 4294967022 0 0 +4294967023 geography_columns C false true , 4294967023 0 0 +4294967025 pg_views C false true , 4294967025 0 0 +4294967026 pg_user C false true , 4294967026 0 0 +4294967027 pg_user_mappings C false true , 4294967027 0 0 +4294967028 pg_user_mapping C false true , 4294967028 0 0 +4294967029 pg_type C false true , 4294967029 0 0 +4294967030 pg_ts_template C false true , 4294967030 0 0 +4294967031 pg_ts_parser C false true , 4294967031 0 0 +4294967032 pg_ts_dict C false true , 4294967032 0 0 +4294967033 pg_ts_config C false true , 4294967033 0 0 +4294967034 pg_ts_config_map C false true , 4294967034 0 0 +4294967035 pg_trigger C false true , 4294967035 0 0 +4294967036 pg_transform C false true , 4294967036 0 0 +4294967037 pg_timezone_names C false true , 4294967037 0 0 +4294967038 pg_timezone_abbrevs C false true , 4294967038 0 0 +4294967039 pg_tablespace C false true , 4294967039 0 0 +4294967040 pg_tables C false true , 4294967040 0 0 +4294967041 pg_subscription C false true , 4294967041 0 0 +4294967042 pg_subscription_rel C false true , 4294967042 0 0 +4294967043 pg_statistic_ext C false true , 4294967043 0 0 +4294967044 pg_statio_user_tables C false true , 4294967044 0 0 +4294967045 pg_statio_user_sequences C false true , 4294967045 0 0 +4294967046 pg_statio_user_indexes C false true , 4294967046 0 0 +4294967047 pg_statio_sys_tables C false true , 4294967047 0 0 +4294967048 pg_statio_sys_sequences C false true , 4294967048 0 0 +4294967049 pg_statio_sys_indexes C false true , 4294967049 0 0 +4294967050 pg_statio_all_tables C false true , 4294967050 0 0 +4294967051 pg_statio_all_sequences C false true , 4294967051 0 0 +4294967052 pg_statio_all_indexes C false true , 4294967052 0 0 +4294967053 pg_stat_xact_user_tables C false true , 4294967053 0 0 +4294967054 pg_stat_xact_user_functions C false true , 4294967054 0 0 +4294967055 pg_stat_xact_sys_tables C false true , 4294967055 0 0 +4294967056 pg_stat_xact_all_tables C false true , 4294967056 0 0 +4294967057 pg_stat_wal_receiver C false true , 4294967057 0 0 +4294967058 pg_stat_user_tables C false true , 4294967058 0 0 +4294967059 pg_stat_user_indexes C false true , 4294967059 0 0 +4294967060 pg_stat_user_functions C false true , 4294967060 0 0 +4294967061 pg_stat_sys_tables C false true , 4294967061 0 0 +4294967062 pg_stat_sys_indexes C false true , 4294967062 0 0 +4294967063 pg_stat_subscription C false true , 4294967063 0 0 +4294967064 pg_stat_ssl C false true , 4294967064 0 0 +4294967065 pg_stat_slru C false true , 4294967065 0 0 +4294967066 pg_stat_replication C false true , 4294967066 0 0 +4294967067 pg_stat_progress_vacuum C false true , 4294967067 0 0 +4294967068 pg_stat_progress_create_index C false true , 4294967068 0 0 +4294967069 pg_stat_progress_cluster C false true , 4294967069 0 0 +4294967070 pg_stat_progress_basebackup C false true , 4294967070 0 0 +4294967071 pg_stat_progress_analyze C false true , 4294967071 0 0 +4294967072 pg_stat_gssapi C false true , 4294967072 0 0 +4294967073 pg_stat_database C false true , 4294967073 0 0 +4294967074 pg_stat_database_conflicts C false true , 4294967074 0 0 +4294967075 pg_stat_bgwriter C false true , 4294967075 0 0 +4294967076 pg_stat_archiver C false true , 4294967076 0 0 +4294967077 pg_stat_all_tables C false true , 4294967077 0 0 +4294967078 pg_stat_all_indexes C false true , 4294967078 0 0 4294967079 pg_stat_activity C false true , 4294967079 0 0 4294967080 pg_shmem_allocations C false true , 4294967080 0 0 4294967081 pg_shdepend C false true , 4294967081 0 0 @@ -2129,30 +2261,63 @@ oid typname typinput typoutput 100072 _newtype1 array_in array_out array_recv array_send 0 0 0 100073 newtype2 enum_in enum_out enum_recv enum_send 0 0 0 100074 _newtype2 array_in array_out array_recv array_send 0 0 0 -4294967054 spatial_ref_sys record_in record_out record_recv record_send 0 0 0 -4294967055 geometry_columns record_in record_out record_recv record_send 0 0 0 -4294967056 geography_columns record_in record_out record_recv record_send 0 0 0 -4294967058 pg_views record_in record_out record_recv record_send 0 0 0 -4294967059 pg_user record_in record_out record_recv record_send 0 0 0 -4294967060 pg_user_mappings record_in record_out record_recv record_send 0 0 0 -4294967061 pg_user_mapping record_in record_out record_recv record_send 0 0 0 -4294967062 pg_type record_in record_out record_recv record_send 0 0 0 -4294967063 pg_ts_template record_in record_out record_recv record_send 0 0 0 -4294967064 pg_ts_parser record_in record_out record_recv record_send 0 0 0 -4294967065 pg_ts_dict record_in record_out record_recv record_send 0 0 0 -4294967066 pg_ts_config record_in record_out record_recv record_send 0 0 0 -4294967067 pg_ts_config_map record_in record_out record_recv record_send 0 0 0 -4294967068 pg_trigger record_in record_out record_recv record_send 0 0 0 -4294967069 pg_transform record_in record_out record_recv record_send 0 0 0 -4294967070 pg_timezone_names record_in record_out record_recv record_send 0 0 0 -4294967071 pg_timezone_abbrevs record_in record_out record_recv record_send 0 0 0 -4294967072 pg_tablespace record_in record_out record_recv record_send 0 0 0 -4294967073 pg_tables record_in record_out record_recv record_send 0 0 0 -4294967074 pg_subscription record_in record_out record_recv record_send 0 0 0 -4294967075 pg_subscription_rel record_in record_out record_recv record_send 0 0 0 -4294967076 pg_statistic_ext record_in record_out record_recv record_send 0 0 0 -4294967077 pg_stat_database record_in record_out record_recv record_send 0 0 0 -4294967078 pg_stat_database_conflicts record_in record_out record_recv record_send 0 0 0 +4294967021 spatial_ref_sys record_in record_out record_recv record_send 0 0 0 +4294967022 geometry_columns record_in record_out record_recv record_send 0 0 0 +4294967023 geography_columns record_in record_out record_recv record_send 0 0 0 +4294967025 pg_views record_in record_out record_recv record_send 0 0 0 +4294967026 pg_user record_in record_out record_recv record_send 0 0 0 +4294967027 pg_user_mappings record_in record_out record_recv record_send 0 0 0 +4294967028 pg_user_mapping record_in record_out record_recv record_send 0 0 0 +4294967029 pg_type record_in record_out record_recv record_send 0 0 0 +4294967030 pg_ts_template record_in record_out record_recv record_send 0 0 0 +4294967031 pg_ts_parser record_in record_out record_recv record_send 0 0 0 +4294967032 pg_ts_dict record_in record_out record_recv record_send 0 0 0 +4294967033 pg_ts_config record_in record_out record_recv record_send 0 0 0 +4294967034 pg_ts_config_map record_in record_out record_recv record_send 0 0 0 +4294967035 pg_trigger record_in record_out record_recv record_send 0 0 0 +4294967036 pg_transform record_in record_out record_recv record_send 0 0 0 +4294967037 pg_timezone_names record_in record_out record_recv record_send 0 0 0 +4294967038 pg_timezone_abbrevs record_in record_out record_recv record_send 0 0 0 +4294967039 pg_tablespace record_in record_out record_recv record_send 0 0 0 +4294967040 pg_tables record_in record_out record_recv record_send 0 0 0 +4294967041 pg_subscription record_in record_out record_recv record_send 0 0 0 +4294967042 pg_subscription_rel record_in record_out record_recv record_send 0 0 0 +4294967043 pg_statistic_ext record_in record_out record_recv record_send 0 0 0 +4294967044 pg_statio_user_tables record_in record_out record_recv record_send 0 0 0 +4294967045 pg_statio_user_sequences record_in record_out record_recv record_send 0 0 0 +4294967046 pg_statio_user_indexes record_in record_out record_recv record_send 0 0 0 +4294967047 pg_statio_sys_tables record_in record_out record_recv record_send 0 0 0 +4294967048 pg_statio_sys_sequences record_in record_out record_recv record_send 0 0 0 +4294967049 pg_statio_sys_indexes record_in record_out record_recv record_send 0 0 0 +4294967050 pg_statio_all_tables record_in record_out record_recv record_send 0 0 0 +4294967051 pg_statio_all_sequences record_in record_out record_recv record_send 0 0 0 +4294967052 pg_statio_all_indexes record_in record_out record_recv record_send 0 0 0 +4294967053 pg_stat_xact_user_tables record_in record_out record_recv record_send 0 0 0 +4294967054 pg_stat_xact_user_functions record_in record_out record_recv record_send 0 0 0 +4294967055 pg_stat_xact_sys_tables record_in record_out record_recv record_send 0 0 0 +4294967056 pg_stat_xact_all_tables record_in record_out record_recv record_send 0 0 0 +4294967057 pg_stat_wal_receiver record_in record_out record_recv record_send 0 0 0 +4294967058 pg_stat_user_tables record_in record_out record_recv record_send 0 0 0 +4294967059 pg_stat_user_indexes record_in record_out record_recv record_send 0 0 0 +4294967060 pg_stat_user_functions record_in record_out record_recv record_send 0 0 0 +4294967061 pg_stat_sys_tables record_in record_out record_recv record_send 0 0 0 +4294967062 pg_stat_sys_indexes record_in record_out record_recv record_send 0 0 0 +4294967063 pg_stat_subscription record_in record_out record_recv record_send 0 0 0 +4294967064 pg_stat_ssl record_in record_out record_recv record_send 0 0 0 +4294967065 pg_stat_slru record_in record_out record_recv record_send 0 0 0 +4294967066 pg_stat_replication record_in record_out record_recv record_send 0 0 0 +4294967067 pg_stat_progress_vacuum record_in record_out record_recv record_send 0 0 0 +4294967068 pg_stat_progress_create_index record_in record_out record_recv record_send 0 0 0 +4294967069 pg_stat_progress_cluster record_in record_out record_recv record_send 0 0 0 +4294967070 pg_stat_progress_basebackup record_in record_out record_recv record_send 0 0 0 +4294967071 pg_stat_progress_analyze record_in record_out record_recv record_send 0 0 0 +4294967072 pg_stat_gssapi record_in record_out record_recv record_send 0 0 0 +4294967073 pg_stat_database record_in record_out record_recv record_send 0 0 0 +4294967074 pg_stat_database_conflicts record_in record_out record_recv record_send 0 0 0 +4294967075 pg_stat_bgwriter record_in record_out record_recv record_send 0 0 0 +4294967076 pg_stat_archiver record_in record_out record_recv record_send 0 0 0 +4294967077 pg_stat_all_tables record_in record_out record_recv record_send 0 0 0 +4294967078 pg_stat_all_indexes record_in record_out record_recv record_send 0 0 0 4294967079 pg_stat_activity record_in record_out record_recv record_send 0 0 0 4294967080 pg_shmem_allocations record_in record_out record_recv record_send 0 0 0 4294967081 pg_shdepend record_in record_out record_recv record_send 0 0 0 @@ -2464,30 +2629,63 @@ oid typname typalign typstorage typnotn 100072 _newtype1 NULL NULL false 0 -1 100073 newtype2 NULL NULL false 0 -1 100074 _newtype2 NULL NULL false 0 -1 -4294967054 spatial_ref_sys NULL NULL false 0 -1 -4294967055 geometry_columns NULL NULL false 0 -1 -4294967056 geography_columns NULL NULL false 0 -1 -4294967058 pg_views NULL NULL false 0 -1 -4294967059 pg_user NULL NULL false 0 -1 -4294967060 pg_user_mappings NULL NULL false 0 -1 -4294967061 pg_user_mapping NULL NULL false 0 -1 -4294967062 pg_type NULL NULL false 0 -1 -4294967063 pg_ts_template NULL NULL false 0 -1 -4294967064 pg_ts_parser NULL NULL false 0 -1 -4294967065 pg_ts_dict NULL NULL false 0 -1 -4294967066 pg_ts_config NULL NULL false 0 -1 -4294967067 pg_ts_config_map NULL NULL false 0 -1 -4294967068 pg_trigger NULL NULL false 0 -1 -4294967069 pg_transform NULL NULL false 0 -1 -4294967070 pg_timezone_names NULL NULL false 0 -1 -4294967071 pg_timezone_abbrevs NULL NULL false 0 -1 -4294967072 pg_tablespace NULL NULL false 0 -1 -4294967073 pg_tables NULL NULL false 0 -1 -4294967074 pg_subscription NULL NULL false 0 -1 -4294967075 pg_subscription_rel NULL NULL false 0 -1 -4294967076 pg_statistic_ext NULL NULL false 0 -1 -4294967077 pg_stat_database NULL NULL false 0 -1 -4294967078 pg_stat_database_conflicts NULL NULL false 0 -1 +4294967021 spatial_ref_sys NULL NULL false 0 -1 +4294967022 geometry_columns NULL NULL false 0 -1 +4294967023 geography_columns NULL NULL false 0 -1 +4294967025 pg_views NULL NULL false 0 -1 +4294967026 pg_user NULL NULL false 0 -1 +4294967027 pg_user_mappings NULL NULL false 0 -1 +4294967028 pg_user_mapping NULL NULL false 0 -1 +4294967029 pg_type NULL NULL false 0 -1 +4294967030 pg_ts_template NULL NULL false 0 -1 +4294967031 pg_ts_parser NULL NULL false 0 -1 +4294967032 pg_ts_dict NULL NULL false 0 -1 +4294967033 pg_ts_config NULL NULL false 0 -1 +4294967034 pg_ts_config_map NULL NULL false 0 -1 +4294967035 pg_trigger NULL NULL false 0 -1 +4294967036 pg_transform NULL NULL false 0 -1 +4294967037 pg_timezone_names NULL NULL false 0 -1 +4294967038 pg_timezone_abbrevs NULL NULL false 0 -1 +4294967039 pg_tablespace NULL NULL false 0 -1 +4294967040 pg_tables NULL NULL false 0 -1 +4294967041 pg_subscription NULL NULL false 0 -1 +4294967042 pg_subscription_rel NULL NULL false 0 -1 +4294967043 pg_statistic_ext NULL NULL false 0 -1 +4294967044 pg_statio_user_tables NULL NULL false 0 -1 +4294967045 pg_statio_user_sequences NULL NULL false 0 -1 +4294967046 pg_statio_user_indexes NULL NULL false 0 -1 +4294967047 pg_statio_sys_tables NULL NULL false 0 -1 +4294967048 pg_statio_sys_sequences NULL NULL false 0 -1 +4294967049 pg_statio_sys_indexes NULL NULL false 0 -1 +4294967050 pg_statio_all_tables NULL NULL false 0 -1 +4294967051 pg_statio_all_sequences NULL NULL false 0 -1 +4294967052 pg_statio_all_indexes NULL NULL false 0 -1 +4294967053 pg_stat_xact_user_tables NULL NULL false 0 -1 +4294967054 pg_stat_xact_user_functions NULL NULL false 0 -1 +4294967055 pg_stat_xact_sys_tables NULL NULL false 0 -1 +4294967056 pg_stat_xact_all_tables NULL NULL false 0 -1 +4294967057 pg_stat_wal_receiver NULL NULL false 0 -1 +4294967058 pg_stat_user_tables NULL NULL false 0 -1 +4294967059 pg_stat_user_indexes NULL NULL false 0 -1 +4294967060 pg_stat_user_functions NULL NULL false 0 -1 +4294967061 pg_stat_sys_tables NULL NULL false 0 -1 +4294967062 pg_stat_sys_indexes NULL NULL false 0 -1 +4294967063 pg_stat_subscription NULL NULL false 0 -1 +4294967064 pg_stat_ssl NULL NULL false 0 -1 +4294967065 pg_stat_slru NULL NULL false 0 -1 +4294967066 pg_stat_replication NULL NULL false 0 -1 +4294967067 pg_stat_progress_vacuum NULL NULL false 0 -1 +4294967068 pg_stat_progress_create_index NULL NULL false 0 -1 +4294967069 pg_stat_progress_cluster NULL NULL false 0 -1 +4294967070 pg_stat_progress_basebackup NULL NULL false 0 -1 +4294967071 pg_stat_progress_analyze NULL NULL false 0 -1 +4294967072 pg_stat_gssapi NULL NULL false 0 -1 +4294967073 pg_stat_database NULL NULL false 0 -1 +4294967074 pg_stat_database_conflicts NULL NULL false 0 -1 +4294967075 pg_stat_bgwriter NULL NULL false 0 -1 +4294967076 pg_stat_archiver NULL NULL false 0 -1 +4294967077 pg_stat_all_tables NULL NULL false 0 -1 +4294967078 pg_stat_all_indexes NULL NULL false 0 -1 4294967079 pg_stat_activity NULL NULL false 0 -1 4294967080 pg_shmem_allocations NULL NULL false 0 -1 4294967081 pg_shdepend NULL NULL false 0 -1 @@ -2799,30 +2997,63 @@ oid typname typndims typcollation typde 100072 _newtype1 0 0 NULL NULL NULL 100073 newtype2 0 0 NULL NULL NULL 100074 _newtype2 0 0 NULL NULL NULL -4294967054 spatial_ref_sys 0 0 NULL NULL NULL -4294967055 geometry_columns 0 0 NULL NULL NULL -4294967056 geography_columns 0 0 NULL NULL NULL -4294967058 pg_views 0 0 NULL NULL NULL -4294967059 pg_user 0 0 NULL NULL NULL -4294967060 pg_user_mappings 0 0 NULL NULL NULL -4294967061 pg_user_mapping 0 0 NULL NULL NULL -4294967062 pg_type 0 0 NULL NULL NULL -4294967063 pg_ts_template 0 0 NULL NULL NULL -4294967064 pg_ts_parser 0 0 NULL NULL NULL -4294967065 pg_ts_dict 0 0 NULL NULL NULL -4294967066 pg_ts_config 0 0 NULL NULL NULL -4294967067 pg_ts_config_map 0 0 NULL NULL NULL -4294967068 pg_trigger 0 0 NULL NULL NULL -4294967069 pg_transform 0 0 NULL NULL NULL -4294967070 pg_timezone_names 0 0 NULL NULL NULL -4294967071 pg_timezone_abbrevs 0 0 NULL NULL NULL -4294967072 pg_tablespace 0 0 NULL NULL NULL -4294967073 pg_tables 0 0 NULL NULL NULL -4294967074 pg_subscription 0 0 NULL NULL NULL -4294967075 pg_subscription_rel 0 0 NULL NULL NULL -4294967076 pg_statistic_ext 0 0 NULL NULL NULL -4294967077 pg_stat_database 0 0 NULL NULL NULL -4294967078 pg_stat_database_conflicts 0 0 NULL NULL NULL +4294967021 spatial_ref_sys 0 0 NULL NULL NULL +4294967022 geometry_columns 0 0 NULL NULL NULL +4294967023 geography_columns 0 0 NULL NULL NULL +4294967025 pg_views 0 0 NULL NULL NULL +4294967026 pg_user 0 0 NULL NULL NULL +4294967027 pg_user_mappings 0 0 NULL NULL NULL +4294967028 pg_user_mapping 0 0 NULL NULL NULL +4294967029 pg_type 0 0 NULL NULL NULL +4294967030 pg_ts_template 0 0 NULL NULL NULL +4294967031 pg_ts_parser 0 0 NULL NULL NULL +4294967032 pg_ts_dict 0 0 NULL NULL NULL +4294967033 pg_ts_config 0 0 NULL NULL NULL +4294967034 pg_ts_config_map 0 0 NULL NULL NULL +4294967035 pg_trigger 0 0 NULL NULL NULL +4294967036 pg_transform 0 0 NULL NULL NULL +4294967037 pg_timezone_names 0 0 NULL NULL NULL +4294967038 pg_timezone_abbrevs 0 0 NULL NULL NULL +4294967039 pg_tablespace 0 0 NULL NULL NULL +4294967040 pg_tables 0 0 NULL NULL NULL +4294967041 pg_subscription 0 0 NULL NULL NULL +4294967042 pg_subscription_rel 0 0 NULL NULL NULL +4294967043 pg_statistic_ext 0 0 NULL NULL NULL +4294967044 pg_statio_user_tables 0 0 NULL NULL NULL +4294967045 pg_statio_user_sequences 0 0 NULL NULL NULL +4294967046 pg_statio_user_indexes 0 0 NULL NULL NULL +4294967047 pg_statio_sys_tables 0 0 NULL NULL NULL +4294967048 pg_statio_sys_sequences 0 0 NULL NULL NULL +4294967049 pg_statio_sys_indexes 0 0 NULL NULL NULL +4294967050 pg_statio_all_tables 0 0 NULL NULL NULL +4294967051 pg_statio_all_sequences 0 0 NULL NULL NULL +4294967052 pg_statio_all_indexes 0 0 NULL NULL NULL +4294967053 pg_stat_xact_user_tables 0 0 NULL NULL NULL +4294967054 pg_stat_xact_user_functions 0 0 NULL NULL NULL +4294967055 pg_stat_xact_sys_tables 0 0 NULL NULL NULL +4294967056 pg_stat_xact_all_tables 0 0 NULL NULL NULL +4294967057 pg_stat_wal_receiver 0 0 NULL NULL NULL +4294967058 pg_stat_user_tables 0 0 NULL NULL NULL +4294967059 pg_stat_user_indexes 0 0 NULL NULL NULL +4294967060 pg_stat_user_functions 0 0 NULL NULL NULL +4294967061 pg_stat_sys_tables 0 0 NULL NULL NULL +4294967062 pg_stat_sys_indexes 0 0 NULL NULL NULL +4294967063 pg_stat_subscription 0 0 NULL NULL NULL +4294967064 pg_stat_ssl 0 0 NULL NULL NULL +4294967065 pg_stat_slru 0 0 NULL NULL NULL +4294967066 pg_stat_replication 0 0 NULL NULL NULL +4294967067 pg_stat_progress_vacuum 0 0 NULL NULL NULL +4294967068 pg_stat_progress_create_index 0 0 NULL NULL NULL +4294967069 pg_stat_progress_cluster 0 0 NULL NULL NULL +4294967070 pg_stat_progress_basebackup 0 0 NULL NULL NULL +4294967071 pg_stat_progress_analyze 0 0 NULL NULL NULL +4294967072 pg_stat_gssapi 0 0 NULL NULL NULL +4294967073 pg_stat_database 0 0 NULL NULL NULL +4294967074 pg_stat_database_conflicts 0 0 NULL NULL NULL +4294967075 pg_stat_bgwriter 0 0 NULL NULL NULL +4294967076 pg_stat_archiver 0 0 NULL NULL NULL +4294967077 pg_stat_all_tables 0 0 NULL NULL NULL +4294967078 pg_stat_all_indexes 0 0 NULL NULL NULL 4294967079 pg_stat_activity 0 0 NULL NULL NULL 4294967080 pg_shmem_allocations 0 0 NULL NULL NULL 4294967081 pg_shdepend 0 0 NULL NULL NULL @@ -3453,30 +3684,63 @@ objoid classoid objsubid description 4294967080 4294967138 0 pg_shmem_allocations was created for compatibility and is currently unimplemented 4294967082 4294967138 0 shared security labels (empty - feature not supported) 4294967079 4294967138 0 backend access statistics (empty - monitoring works differently in CockroachDB) -4294967077 4294967138 0 pg_stat_database was created for compatibility and is currently unimplemented -4294967078 4294967138 0 pg_stat_database_conflicts was created for compatibility and is currently unimplemented -4294967076 4294967138 0 pg_statistic_ext was created for compatibility and is currently unimplemented -4294967074 4294967138 0 pg_subscription was created for compatibility and is currently unimplemented -4294967075 4294967138 0 pg_subscription_rel was created for compatibility and is currently unimplemented -4294967073 4294967138 0 tables summary (see also information_schema.tables, pg_catalog.pg_class) -4294967072 4294967138 0 available tablespaces (incomplete; concept inapplicable to CockroachDB) -4294967071 4294967138 0 pg_timezone_abbrevs was created for compatibility and is currently unimplemented -4294967070 4294967138 0 pg_timezone_names was created for compatibility and is currently unimplemented -4294967069 4294967138 0 pg_transform was created for compatibility and is currently unimplemented -4294967068 4294967138 0 triggers (empty - feature does not exist) -4294967066 4294967138 0 pg_ts_config was created for compatibility and is currently unimplemented -4294967067 4294967138 0 pg_ts_config_map was created for compatibility and is currently unimplemented -4294967065 4294967138 0 pg_ts_dict was created for compatibility and is currently unimplemented -4294967064 4294967138 0 pg_ts_parser was created for compatibility and is currently unimplemented -4294967063 4294967138 0 pg_ts_template was created for compatibility and is currently unimplemented -4294967062 4294967138 0 scalar types (incomplete) -4294967059 4294967138 0 database users -4294967061 4294967138 0 local to remote user mapping (empty - feature does not exist) -4294967060 4294967138 0 pg_user_mappings was created for compatibility and is currently unimplemented -4294967058 4294967138 0 view definitions (incomplete - see also information_schema.views) -4294967056 4294967138 0 Shows all defined geography columns. Matches PostGIS' geography_columns functionality. -4294967055 4294967138 0 Shows all defined geometry columns. Matches PostGIS' geometry_columns functionality. -4294967054 4294967138 0 Shows all defined Spatial Reference Identifiers (SRIDs). Matches PostGIS' spatial_ref_sys table. +4294967078 4294967138 0 pg_stat_all_indexes was created for compatibility and is currently unimplemented +4294967077 4294967138 0 pg_stat_all_tables was created for compatibility and is currently unimplemented +4294967076 4294967138 0 pg_stat_archiver was created for compatibility and is currently unimplemented +4294967075 4294967138 0 pg_stat_bgwriter was created for compatibility and is currently unimplemented +4294967073 4294967138 0 pg_stat_database was created for compatibility and is currently unimplemented +4294967074 4294967138 0 pg_stat_database_conflicts was created for compatibility and is currently unimplemented +4294967072 4294967138 0 pg_stat_gssapi was created for compatibility and is currently unimplemented +4294967071 4294967138 0 pg_stat_progress_analyze was created for compatibility and is currently unimplemented +4294967070 4294967138 0 pg_stat_progress_basebackup was created for compatibility and is currently unimplemented +4294967069 4294967138 0 pg_stat_progress_cluster was created for compatibility and is currently unimplemented +4294967068 4294967138 0 pg_stat_progress_create_index was created for compatibility and is currently unimplemented +4294967067 4294967138 0 pg_stat_progress_vacuum was created for compatibility and is currently unimplemented +4294967066 4294967138 0 pg_stat_replication was created for compatibility and is currently unimplemented +4294967065 4294967138 0 pg_stat_slru was created for compatibility and is currently unimplemented +4294967064 4294967138 0 pg_stat_ssl was created for compatibility and is currently unimplemented +4294967063 4294967138 0 pg_stat_subscription was created for compatibility and is currently unimplemented +4294967062 4294967138 0 pg_stat_sys_indexes was created for compatibility and is currently unimplemented +4294967061 4294967138 0 pg_stat_sys_tables was created for compatibility and is currently unimplemented +4294967060 4294967138 0 pg_stat_user_functions was created for compatibility and is currently unimplemented +4294967059 4294967138 0 pg_stat_user_indexes was created for compatibility and is currently unimplemented +4294967058 4294967138 0 pg_stat_user_tables was created for compatibility and is currently unimplemented +4294967057 4294967138 0 pg_stat_wal_receiver was created for compatibility and is currently unimplemented +4294967056 4294967138 0 pg_stat_xact_all_tables was created for compatibility and is currently unimplemented +4294967055 4294967138 0 pg_stat_xact_sys_tables was created for compatibility and is currently unimplemented +4294967054 4294967138 0 pg_stat_xact_user_functions was created for compatibility and is currently unimplemented +4294967053 4294967138 0 pg_stat_xact_user_tables was created for compatibility and is currently unimplemented +4294967052 4294967138 0 pg_statio_all_indexes was created for compatibility and is currently unimplemented +4294967051 4294967138 0 pg_statio_all_sequences was created for compatibility and is currently unimplemented +4294967050 4294967138 0 pg_statio_all_tables was created for compatibility and is currently unimplemented +4294967049 4294967138 0 pg_statio_sys_indexes was created for compatibility and is currently unimplemented +4294967048 4294967138 0 pg_statio_sys_sequences was created for compatibility and is currently unimplemented +4294967047 4294967138 0 pg_statio_sys_tables was created for compatibility and is currently unimplemented +4294967046 4294967138 0 pg_statio_user_indexes was created for compatibility and is currently unimplemented +4294967045 4294967138 0 pg_statio_user_sequences was created for compatibility and is currently unimplemented +4294967044 4294967138 0 pg_statio_user_tables was created for compatibility and is currently unimplemented +4294967043 4294967138 0 pg_statistic_ext was created for compatibility and is currently unimplemented +4294967041 4294967138 0 pg_subscription was created for compatibility and is currently unimplemented +4294967042 4294967138 0 pg_subscription_rel was created for compatibility and is currently unimplemented +4294967040 4294967138 0 tables summary (see also information_schema.tables, pg_catalog.pg_class) +4294967039 4294967138 0 available tablespaces (incomplete; concept inapplicable to CockroachDB) +4294967038 4294967138 0 pg_timezone_abbrevs was created for compatibility and is currently unimplemented +4294967037 4294967138 0 pg_timezone_names was created for compatibility and is currently unimplemented +4294967036 4294967138 0 pg_transform was created for compatibility and is currently unimplemented +4294967035 4294967138 0 triggers (empty - feature does not exist) +4294967033 4294967138 0 pg_ts_config was created for compatibility and is currently unimplemented +4294967034 4294967138 0 pg_ts_config_map was created for compatibility and is currently unimplemented +4294967032 4294967138 0 pg_ts_dict was created for compatibility and is currently unimplemented +4294967031 4294967138 0 pg_ts_parser was created for compatibility and is currently unimplemented +4294967030 4294967138 0 pg_ts_template was created for compatibility and is currently unimplemented +4294967029 4294967138 0 scalar types (incomplete) +4294967026 4294967138 0 database users +4294967028 4294967138 0 local to remote user mapping (empty - feature does not exist) +4294967027 4294967138 0 pg_user_mappings was created for compatibility and is currently unimplemented +4294967025 4294967138 0 view definitions (incomplete - see also information_schema.views) +4294967023 4294967138 0 Shows all defined geography columns. Matches PostGIS' geography_columns functionality. +4294967022 4294967138 0 Shows all defined geometry columns. Matches PostGIS' geometry_columns functionality. +4294967021 4294967138 0 Shows all defined Spatial Reference Identifiers (SRIDs). Matches PostGIS' spatial_ref_sys table. ## pg_catalog.pg_shdescription @@ -4678,7 +4942,7 @@ indoption query TTI SELECT database_name, descriptor_name, descriptor_id from test.crdb_internal.create_statements where descriptor_name = 'pg_views' ---- -test pg_views 4294967058 +test pg_views 4294967025 # Verify INCLUDED columns appear in pg_index. See issue #59563 statement ok diff --git a/pkg/sql/logictest/testdata/logic_test/table b/pkg/sql/logictest/testdata/logic_test/table index 53646fd224fa..6cd284291dc3 100644 --- a/pkg/sql/logictest/testdata/logic_test/table +++ b/pkg/sql/logictest/testdata/logic_test/table @@ -758,8 +758,41 @@ pg_shdescription NULL pg_shmem_allocations NULL pg_shseclabel NULL pg_stat_activity NULL +pg_stat_all_indexes NULL +pg_stat_all_tables NULL +pg_stat_archiver NULL +pg_stat_bgwriter NULL pg_stat_database NULL pg_stat_database_conflicts NULL +pg_stat_gssapi NULL +pg_stat_progress_analyze NULL +pg_stat_progress_basebackup NULL +pg_stat_progress_cluster NULL +pg_stat_progress_create_index NULL +pg_stat_progress_vacuum NULL +pg_stat_replication NULL +pg_stat_slru NULL +pg_stat_ssl NULL +pg_stat_subscription NULL +pg_stat_sys_indexes NULL +pg_stat_sys_tables NULL +pg_stat_user_functions NULL +pg_stat_user_indexes NULL +pg_stat_user_tables NULL +pg_stat_wal_receiver NULL +pg_stat_xact_all_tables NULL +pg_stat_xact_sys_tables NULL +pg_stat_xact_user_functions NULL +pg_stat_xact_user_tables NULL +pg_statio_all_indexes NULL +pg_statio_all_sequences NULL +pg_statio_all_tables NULL +pg_statio_sys_indexes NULL +pg_statio_sys_sequences NULL +pg_statio_sys_tables NULL +pg_statio_user_indexes NULL +pg_statio_user_sequences NULL +pg_statio_user_tables NULL pg_statistic_ext NULL pg_subscription NULL pg_subscription_rel NULL diff --git a/pkg/sql/pg_catalog.go b/pkg/sql/pg_catalog.go index 373121331877..e57358f42334 100644 --- a/pkg/sql/pg_catalog.go +++ b/pkg/sql/pg_catalog.go @@ -88,33 +88,6 @@ var pgCatalog = virtualSchema{ // select distinct '"'||table_name||'",' from information_schema.tables // where table_schema='pg_catalog' order by table_name; "pg_pltemplate", - "pg_stat_all_indexes", - "pg_stat_all_tables", - "pg_stat_archiver", - "pg_stat_bgwriter", - "pg_stat_progress_vacuum", - "pg_stat_replication", - "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", "pg_statistic", "pg_stats", ), @@ -190,8 +163,41 @@ var pgCatalog = virtualSchema{ catconstants.PgCatalogShdependTableID: pgCatalogShdependTable, catconstants.PgCatalogShmemAllocationsTableID: pgCatalogShmemAllocationsTable, catconstants.PgCatalogStatActivityTableID: pgCatalogStatActivityTable, + catconstants.PgCatalogStatAllIndexesTableID: pgCatalogStatAllIndexesTable, + catconstants.PgCatalogStatAllTablesTableID: pgCatalogStatAllTablesTable, + catconstants.PgCatalogStatArchiverTableID: pgCatalogStatArchiverTable, + catconstants.PgCatalogStatBgwriterTableID: pgCatalogStatBgwriterTable, catconstants.PgCatalogStatDatabaseConflictsTableID: pgCatalogStatDatabaseConflictsTable, catconstants.PgCatalogStatDatabaseTableID: pgCatalogStatDatabaseTable, + catconstants.PgCatalogStatGssapiTableID: pgCatalogStatGssapiTable, + catconstants.PgCatalogStatProgressAnalyzeTableID: pgCatalogStatProgressAnalyzeTable, + catconstants.PgCatalogStatProgressBasebackupTableID: pgCatalogStatProgressBasebackupTable, + catconstants.PgCatalogStatProgressClusterTableID: pgCatalogStatProgressClusterTable, + catconstants.PgCatalogStatProgressCreateIndexTableID: pgCatalogStatProgressCreateIndexTable, + catconstants.PgCatalogStatProgressVacuumTableID: pgCatalogStatProgressVacuumTable, + catconstants.PgCatalogStatReplicationTableID: pgCatalogStatReplicationTable, + catconstants.PgCatalogStatSlruTableID: pgCatalogStatSlruTable, + catconstants.PgCatalogStatSslTableID: pgCatalogStatSslTable, + catconstants.PgCatalogStatSubscriptionTableID: pgCatalogStatSubscriptionTable, + catconstants.PgCatalogStatSysIndexesTableID: pgCatalogStatSysIndexesTable, + catconstants.PgCatalogStatSysTablesTableID: pgCatalogStatSysTablesTable, + catconstants.PgCatalogStatUserFunctionsTableID: pgCatalogStatUserFunctionsTable, + catconstants.PgCatalogStatUserIndexesTableID: pgCatalogStatUserIndexesTable, + catconstants.PgCatalogStatUserTablesTableID: pgCatalogStatUserTablesTable, + catconstants.PgCatalogStatWalReceiverTableID: pgCatalogStatWalReceiverTable, + catconstants.PgCatalogStatXactAllTablesTableID: pgCatalogStatXactAllTablesTable, + catconstants.PgCatalogStatXactSysTablesTableID: pgCatalogStatXactSysTablesTable, + catconstants.PgCatalogStatXactUserFunctionsTableID: pgCatalogStatXactUserFunctionsTable, + catconstants.PgCatalogStatXactUserTablesTableID: pgCatalogStatXactUserTablesTable, + catconstants.PgCatalogStatioAllIndexesTableID: pgCatalogStatioAllIndexesTable, + catconstants.PgCatalogStatioAllSequencesTableID: pgCatalogStatioAllSequencesTable, + catconstants.PgCatalogStatioAllTablesTableID: pgCatalogStatioAllTablesTable, + catconstants.PgCatalogStatioSysIndexesTableID: pgCatalogStatioSysIndexesTable, + catconstants.PgCatalogStatioSysSequencesTableID: pgCatalogStatioSysSequencesTable, + catconstants.PgCatalogStatioSysTablesTableID: pgCatalogStatioSysTablesTable, + catconstants.PgCatalogStatioUserIndexesTableID: pgCatalogStatioUserIndexesTable, + catconstants.PgCatalogStatioUserSequencesTableID: pgCatalogStatioUserSequencesTable, + catconstants.PgCatalogStatioUserTablesTableID: pgCatalogStatioUserTablesTable, catconstants.PgCatalogStatisticExtTableID: pgCatalogStatisticExtTable, catconstants.PgCatalogSubscriptionRelTableID: pgCatalogSubscriptionRelTable, catconstants.PgCatalogSubscriptionTableID: pgCatalogSubscriptionTable, @@ -3182,6 +3188,303 @@ var pgCatalogStatDatabaseConflictsTable = virtualSchemaTable{ unimplemented: true, } +var pgCatalogStatioUserSequencesTable = virtualSchemaTable{ + comment: "pg_statio_user_sequences was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatioUserSequences, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatReplicationTable = virtualSchemaTable{ + comment: "pg_stat_replication was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatReplication, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatSysIndexesTable = virtualSchemaTable{ + comment: "pg_stat_sys_indexes was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatSysIndexes, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatXactUserTablesTable = virtualSchemaTable{ + comment: "pg_stat_xact_user_tables was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatXactUserTables, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatUserTablesTable = virtualSchemaTable{ + comment: "pg_stat_user_tables was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatUserTables, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatAllTablesTable = virtualSchemaTable{ + comment: "pg_stat_all_tables was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatAllTables, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatioUserTablesTable = virtualSchemaTable{ + comment: "pg_statio_user_tables was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatioUserTables, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatUserIndexesTable = virtualSchemaTable{ + comment: "pg_stat_user_indexes was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatUserIndexes, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatXactSysTablesTable = virtualSchemaTable{ + comment: "pg_stat_xact_sys_tables was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatXactSysTables, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatioSysTablesTable = virtualSchemaTable{ + comment: "pg_statio_sys_tables was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatioSysTables, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatGssapiTable = virtualSchemaTable{ + comment: "pg_stat_gssapi was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatGssapi, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatSlruTable = virtualSchemaTable{ + comment: "pg_stat_slru was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatSlru, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatXactAllTablesTable = virtualSchemaTable{ + comment: "pg_stat_xact_all_tables was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatXactAllTables, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatioUserIndexesTable = virtualSchemaTable{ + comment: "pg_statio_user_indexes was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatioUserIndexes, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatioSysSequencesTable = virtualSchemaTable{ + comment: "pg_statio_sys_sequences was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatioSysSequences, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatSubscriptionTable = virtualSchemaTable{ + comment: "pg_stat_subscription was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatSubscription, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatProgressBasebackupTable = virtualSchemaTable{ + comment: "pg_stat_progress_basebackup was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatProgressBasebackup, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatWalReceiverTable = virtualSchemaTable{ + comment: "pg_stat_wal_receiver was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatWalReceiver, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatSysTablesTable = virtualSchemaTable{ + comment: "pg_stat_sys_tables was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatSysTables, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatSslTable = virtualSchemaTable{ + comment: "pg_stat_ssl was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatSsl, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatioAllSequencesTable = virtualSchemaTable{ + comment: "pg_statio_all_sequences was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatioAllSequences, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatProgressVacuumTable = virtualSchemaTable{ + comment: "pg_stat_progress_vacuum was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatProgressVacuum, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatAllIndexesTable = virtualSchemaTable{ + comment: "pg_stat_all_indexes was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatAllIndexes, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatioSysIndexesTable = virtualSchemaTable{ + comment: "pg_statio_sys_indexes was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatioSysIndexes, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatUserFunctionsTable = virtualSchemaTable{ + comment: "pg_stat_user_functions was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatUserFunctions, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatArchiverTable = virtualSchemaTable{ + comment: "pg_stat_archiver was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatArchiver, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatProgressClusterTable = virtualSchemaTable{ + comment: "pg_stat_progress_cluster was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatProgressCluster, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatBgwriterTable = virtualSchemaTable{ + comment: "pg_stat_bgwriter was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatBgwriter, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatProgressAnalyzeTable = virtualSchemaTable{ + comment: "pg_stat_progress_analyze was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatProgressAnalyze, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatioAllIndexesTable = virtualSchemaTable{ + comment: "pg_statio_all_indexes was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatioAllIndexes, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatXactUserFunctionsTable = virtualSchemaTable{ + comment: "pg_stat_xact_user_functions was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatXactUserFunctions, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatioAllTablesTable = virtualSchemaTable{ + comment: "pg_statio_all_tables was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatioAllTables, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + +var pgCatalogStatProgressCreateIndexTable = virtualSchemaTable{ + comment: "pg_stat_progress_create_index was created for compatibility and is currently unimplemented", + schema: vtable.PgCatalogStatProgressCreateIndex, + populate: func(ctx context.Context, p *planner, _ catalog.DatabaseDescriptor, addRow func(...tree.Datum) error) error { + return nil + }, + unimplemented: true, +} + // typOid is the only OID generation approach that does not use oidHasher, because // object identifiers for types are not arbitrary, but instead need to be kept in // sync with Postgres. diff --git a/pkg/sql/testdata/postgres_test_expected_diffs_on_pg_catalog.json b/pkg/sql/testdata/postgres_test_expected_diffs_on_pg_catalog.json index 87be1077e1da..6171f2bd8b93 100644 --- a/pkg/sql/testdata/postgres_test_expected_diffs_on_pg_catalog.json +++ b/pkg/sql/testdata/postgres_test_expected_diffs_on_pg_catalog.json @@ -2,8 +2,8 @@ "pgVersion": "13.3", "diffSummary": { "TotalTables": 129, - "TotalColumns": 782, - "MissingTables": 37, + "TotalColumns": 1130, + "MissingTables": 4, "MissingColumns": 1, "DatatypeMismatches": 20 }, @@ -147,39 +147,6 @@ "expectedDataType": "int4" } }, - "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": {}, "pg_statistic": {}, "pg_statistic_ext_data": {}, "pg_stats": {}, diff --git a/pkg/sql/testdata/telemetry/error b/pkg/sql/testdata/telemetry/error index a9c428cc04a0..060204889d10 100644 --- a/pkg/sql/testdata/telemetry/error +++ b/pkg/sql/testdata/telemetry/error @@ -97,14 +97,6 @@ error: pq: unimplemented: use CREATE INDEX to make interleaved indexes errorcodes.0A000 unimplemented.#9148 -# 0A000 is pgcode.FeatureNotSupported. -feature-usage -SELECT * FROM pg_catalog.pg_stat_wal_receiver ----- -error: pq: unimplemented: virtual schema table not implemented: pg_catalog.pg_stat_wal_receiver -errorcodes.0A000 -unimplemented.pg_catalog.pg_stat_wal_receiver - # 22012 is pgcode.DivisionByZero. feature-usage SELECT 2/0 diff --git a/pkg/sql/vtable/pg_catalog.go b/pkg/sql/vtable/pg_catalog.go index 565c430d79d5..ae508f5276de 100644 --- a/pkg/sql/vtable/pg_catalog.go +++ b/pkg/sql/vtable/pg_catalog.go @@ -1408,3 +1408,516 @@ CREATE TABLE pg_catalog.pg_stat_database_conflicts ( confl_bufferpin INT, confl_deadlock INT )` + +//PgCatalogStatAllIndexes is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatAllIndexes = ` +CREATE TABLE pg_catalog.pg_stat_all_indexes ( + schemaname NAME, + idx_scan INT, + idx_tup_fetch INT, + idx_tup_read INT, + indexrelid OID, + indexrelname NAME, + relid OID, + relname NAME +)` + +//PgCatalogStatioSysIndexes is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatioSysIndexes = ` +CREATE TABLE pg_catalog.pg_statio_sys_indexes ( + idx_blks_read INT, + indexrelid OID, + indexrelname NAME, + relid OID, + relname NAME, + schemaname NAME, + idx_blks_hit INT +)` + +//PgCatalogStatUserFunctions is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatUserFunctions = ` +CREATE TABLE pg_catalog.pg_stat_user_functions ( + calls INT, + funcid OID, + funcname NAME, + schemaname NAME, + self_time FLOAT, + total_time FLOAT +)` + +//PgCatalogStatArchiver is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatArchiver = ` +CREATE TABLE pg_catalog.pg_stat_archiver ( + stats_reset TIMESTAMPTZ, + archived_count INT, + failed_count INT, + last_archived_time TIMESTAMPTZ, + last_archived_wal STRING, + last_failed_time TIMESTAMPTZ, + last_failed_wal STRING +)` + +//PgCatalogStatProgressCluster is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatProgressCluster = ` +CREATE TABLE pg_catalog.pg_stat_progress_cluster ( + cluster_index_relid OID, + command STRING, + datid OID, + heap_tuples_scanned INT, + phase STRING, + datname NAME, + heap_blks_scanned INT, + heap_blks_total INT, + heap_tuples_written INT, + index_rebuild_count INT, + pid INT4, + relid OID +)` + +//PgCatalogStatBgwriter is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatBgwriter = ` +CREATE TABLE pg_catalog.pg_stat_bgwriter ( + buffers_backend INT, + buffers_clean INT, + checkpoint_sync_time FLOAT, + checkpoints_req INT, + checkpoints_timed INT, + maxwritten_clean INT, + stats_reset TIMESTAMPTZ, + buffers_alloc INT, + buffers_backend_fsync INT, + buffers_checkpoint INT, + checkpoint_write_time FLOAT +)` + +//PgCatalogStatProgressAnalyze is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatProgressAnalyze = ` +CREATE TABLE pg_catalog.pg_stat_progress_analyze ( + child_tables_total INT, + current_child_table_relid OID, + datid OID, + ext_stats_computed INT, + pid INT4, + sample_blks_total INT, + child_tables_done INT, + ext_stats_total INT, + phase STRING, + relid OID, + sample_blks_scanned INT, + datname NAME +)` + +//PgCatalogStatioAllIndexes is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatioAllIndexes = ` +CREATE TABLE pg_catalog.pg_statio_all_indexes ( + idx_blks_read INT, + indexrelid OID, + indexrelname NAME, + relid OID, + relname NAME, + schemaname NAME, + idx_blks_hit INT +)` + +//PgCatalogStatXactUserFunctions is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatXactUserFunctions = ` +CREATE TABLE pg_catalog.pg_stat_xact_user_functions ( + calls INT, + funcid OID, + funcname NAME, + schemaname NAME, + self_time FLOAT, + total_time FLOAT +)` + +//PgCatalogStatioAllTables is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatioAllTables = ` +CREATE TABLE pg_catalog.pg_statio_all_tables ( + idx_blks_hit INT, + idx_blks_read INT, + relid OID, + relname NAME, + tidx_blks_hit INT, + toast_blks_hit INT, + heap_blks_hit INT, + heap_blks_read INT, + toast_blks_read INT, + schemaname NAME, + tidx_blks_read INT +)` + +//PgCatalogStatProgressCreateIndex is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatProgressCreateIndex = ` +CREATE TABLE pg_catalog.pg_stat_progress_create_index ( + blocks_done INT, + index_relid OID, + lockers_total INT, + partitions_done INT, + partitions_total INT, + blocks_total INT, + command STRING, + current_locker_pid INT, + datid OID, + pid INT4, + datname NAME, + lockers_done INT, + relid OID, + tuples_done INT, + phase STRING, + tuples_total INT +)` + +//PgCatalogStatioUserSequences is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatioUserSequences = ` +CREATE TABLE pg_catalog.pg_statio_user_sequences ( + blks_read INT, + relid OID, + relname NAME, + schemaname NAME, + blks_hit INT +)` + +//PgCatalogStatReplication is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatReplication = ` +CREATE TABLE pg_catalog.pg_stat_replication ( + application_name STRING, + backend_xmin INT, + replay_lsn STRING, + usesysid OID, + sent_lsn STRING, + sync_priority INT4, + sync_state STRING, + usename NAME, + backend_start TIMESTAMPTZ, + client_addr INET, + flush_lag INTERVAL, + pid INT4, + write_lag INTERVAL, + client_hostname STRING, + flush_lsn STRING, + write_lsn STRING, + client_port INT4, + replay_lag INTERVAL, + reply_time TIMESTAMPTZ, + state STRING +)` + +//PgCatalogStatSysIndexes is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatSysIndexes = ` +CREATE TABLE pg_catalog.pg_stat_sys_indexes ( + idx_tup_read INT, + indexrelid OID, + indexrelname NAME, + relid OID, + relname NAME, + schemaname NAME, + idx_scan INT, + idx_tup_fetch INT +)` + +//PgCatalogStatXactUserTables is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatXactUserTables = ` +CREATE TABLE pg_catalog.pg_stat_xact_user_tables ( + relid OID, + relname NAME, + schemaname NAME, + n_tup_upd INT, + idx_tup_fetch INT, + n_tup_del INT, + n_tup_hot_upd INT, + n_tup_ins INT, + seq_scan INT, + seq_tup_read INT, + idx_scan INT +)` + +//PgCatalogStatUserTables is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatUserTables = ` +CREATE TABLE pg_catalog.pg_stat_user_tables ( + n_ins_since_vacuum INT, + n_tup_hot_upd INT, + schemaname NAME, + analyze_count INT, + autovacuum_count INT, + last_autoanalyze TIMESTAMPTZ, + n_dead_tup INT, + n_live_tup INT, + n_tup_del INT, + n_tup_ins INT, + seq_tup_read INT, + autoanalyze_count INT, + last_analyze TIMESTAMPTZ, + n_mod_since_analyze INT, + relid OID, + relname NAME, + vacuum_count INT, + idx_scan INT, + last_autovacuum TIMESTAMPTZ, + n_tup_upd INT, + seq_scan INT, + idx_tup_fetch INT, + last_vacuum TIMESTAMPTZ +)` + +//PgCatalogStatAllTables is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatAllTables = ` +CREATE TABLE pg_catalog.pg_stat_all_tables ( + n_ins_since_vacuum INT, + seq_scan INT, + analyze_count INT, + autovacuum_count INT, + last_vacuum TIMESTAMPTZ, + n_dead_tup INT, + n_tup_hot_upd INT, + n_tup_ins INT, + relid OID, + relname NAME, + autoanalyze_count INT, + idx_scan INT, + last_autoanalyze TIMESTAMPTZ, + n_mod_since_analyze INT, + n_tup_upd INT, + vacuum_count INT, + last_analyze TIMESTAMPTZ, + last_autovacuum TIMESTAMPTZ, + n_live_tup INT, + n_tup_del INT, + idx_tup_fetch INT, + schemaname NAME, + seq_tup_read INT +)` + +//PgCatalogStatioUserTables is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatioUserTables = ` +CREATE TABLE pg_catalog.pg_statio_user_tables ( + heap_blks_hit INT, + heap_blks_read INT, + tidx_blks_read INT, + toast_blks_hit INT, + toast_blks_read INT, + idx_blks_hit INT, + idx_blks_read INT, + relid OID, + relname NAME, + schemaname NAME, + tidx_blks_hit INT +)` + +//PgCatalogStatUserIndexes is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatUserIndexes = ` +CREATE TABLE pg_catalog.pg_stat_user_indexes ( + indexrelname NAME, + relid OID, + relname NAME, + schemaname NAME, + idx_scan INT, + idx_tup_fetch INT, + idx_tup_read INT, + indexrelid OID +)` + +//PgCatalogStatXactSysTables is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatXactSysTables = ` +CREATE TABLE pg_catalog.pg_stat_xact_sys_tables ( + idx_scan INT, + idx_tup_fetch INT, + n_tup_del INT, + relid OID, + schemaname NAME, + n_tup_hot_upd INT, + n_tup_ins INT, + n_tup_upd INT, + relname NAME, + seq_scan INT, + seq_tup_read INT +)` + +//PgCatalogStatioSysTables is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatioSysTables = ` +CREATE TABLE pg_catalog.pg_statio_sys_tables ( + toast_blks_hit INT, + heap_blks_hit INT, + idx_blks_hit INT, + relname NAME, + tidx_blks_hit INT, + tidx_blks_read INT, + heap_blks_read INT, + idx_blks_read INT, + relid OID, + schemaname NAME, + toast_blks_read INT +)` + +//PgCatalogStatGssapi is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatGssapi = ` +CREATE TABLE pg_catalog.pg_stat_gssapi ( + encrypted BOOL, + gss_authenticated BOOL, + pid INT4, + principal STRING +)` + +//PgCatalogStatSlru is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatSlru = ` +CREATE TABLE pg_catalog.pg_stat_slru ( + blks_exists INT, + name STRING, + truncates INT, + flushes INT, + stats_reset TIMESTAMPTZ, + blks_hit INT, + blks_read INT, + blks_written INT, + blks_zeroed INT +)` + +//PgCatalogStatXactAllTables is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatXactAllTables = ` +CREATE TABLE pg_catalog.pg_stat_xact_all_tables ( + relname NAME, + schemaname NAME, + seq_scan INT, + idx_scan INT, + idx_tup_fetch INT, + n_tup_del INT, + n_tup_hot_upd INT, + n_tup_ins INT, + seq_tup_read INT, + n_tup_upd INT, + relid OID +)` + +//PgCatalogStatioUserIndexes is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatioUserIndexes = ` +CREATE TABLE pg_catalog.pg_statio_user_indexes ( + indexrelname NAME, + relid OID, + relname NAME, + schemaname NAME, + idx_blks_hit INT, + idx_blks_read INT, + indexrelid OID +)` + +//PgCatalogStatioSysSequences is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatioSysSequences = ` +CREATE TABLE pg_catalog.pg_statio_sys_sequences ( + schemaname NAME, + blks_hit INT, + blks_read INT, + relid OID, + relname NAME +)` + +//PgCatalogStatSubscription is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatSubscription = ` +CREATE TABLE pg_catalog.pg_stat_subscription ( + last_msg_receipt_time TIMESTAMPTZ, + last_msg_send_time TIMESTAMPTZ, + latest_end_lsn STRING, + latest_end_time TIMESTAMPTZ, + relid OID, + pid INT4, + received_lsn STRING, + subid OID, + subname NAME +)` + +//PgCatalogStatProgressBasebackup is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatProgressBasebackup = ` +CREATE TABLE pg_catalog.pg_stat_progress_basebackup ( + backup_streamed INT, + backup_total INT, + phase STRING, + pid INT4, + tablespaces_streamed INT, + tablespaces_total INT +)` + +//PgCatalogStatWalReceiver is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatWalReceiver = ` +CREATE TABLE pg_catalog.pg_stat_wal_receiver ( + latest_end_time TIMESTAMPTZ, + pid INT4, + sender_port INT4, + slot_name STRING, + last_msg_receipt_time TIMESTAMPTZ, + receive_start_lsn STRING, + conninfo STRING, + received_tli INT4, + sender_host STRING, + flushed_lsn STRING, + last_msg_send_time TIMESTAMPTZ, + latest_end_lsn STRING, + receive_start_tli INT4, + status STRING, + written_lsn STRING +)` + +//PgCatalogStatSysTables is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatSysTables = ` +CREATE TABLE pg_catalog.pg_stat_sys_tables ( + relname NAME, + idx_scan INT, + n_dead_tup INT, + n_ins_since_vacuum INT, + analyze_count INT, + last_autovacuum TIMESTAMPTZ, + last_vacuum TIMESTAMPTZ, + n_tup_upd INT, + seq_tup_read INT, + n_tup_del INT, + autoanalyze_count INT, + autovacuum_count INT, + idx_tup_fetch INT, + last_analyze TIMESTAMPTZ, + last_autoanalyze TIMESTAMPTZ, + n_live_tup INT, + n_mod_since_analyze INT, + n_tup_hot_upd INT, + n_tup_ins INT, + relid OID, + schemaname NAME, + seq_scan INT, + vacuum_count INT +)` + +//PgCatalogStatSsl is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatSsl = ` +CREATE TABLE pg_catalog.pg_stat_ssl ( + issuer_dn STRING, + version STRING, + client_serial DECIMAL, + compression BOOL, + pid INT4, + ssl BOOL, + bits INT4, + cipher STRING, + client_dn STRING +)` + +//PgCatalogStatioAllSequences is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatioAllSequences = ` +CREATE TABLE pg_catalog.pg_statio_all_sequences ( + blks_hit INT, + blks_read INT, + relid OID, + relname NAME, + schemaname NAME +)` + +//PgCatalogStatProgressVacuum is an empty table in the pg_catalog that is not implemented yet +const PgCatalogStatProgressVacuum = ` +CREATE TABLE pg_catalog.pg_stat_progress_vacuum ( + datname NAME, + heap_blks_scanned INT, + heap_blks_total INT, + index_vacuum_count INT, + pid INT4, + relid OID, + datid OID, + heap_blks_vacuumed INT, + max_dead_tuples INT, + num_dead_tuples INT, + phase STRING +)`