Re-exports§
pub use queries::all_locks::AllLocks;
pub use queries::bloat::Bloat;
pub use queries::blocking::Blocking;
pub use queries::buffercache_stats::BuffercacheStats;
pub use queries::buffercache_usage::BuffercacheUsage;
pub use queries::cache_hit::CacheHit;
pub use queries::calls::Calls;
pub use queries::connections::Connections;
pub use queries::db_settings::DbSettings;
pub use queries::duplicate_indexes::DuplicateIndexes;
pub use queries::extensions::Extensions;
pub use queries::index_cache_hit::IndexCacheHit;
pub use queries::index_scans::IndexScans;
pub use queries::index_size::IndexSize;
pub use queries::index_usage::IndexUsage;
pub use queries::indexes::Indexes;
pub use queries::locks::Locks;
pub use queries::long_running_queries::LongRunningQueries;
pub use queries::mandelbrot::Mandelbrot;
pub use queries::null_indexes::NullIndexes;
pub use queries::outliers::Outliers;
pub use queries::records_rank::RecordsRank;
pub use queries::seq_scans::SeqScans;
pub use queries::shared::get_default_schema;
pub use queries::shared::Query;
pub use queries::ssl_used::SslUsed;
pub use queries::table_cache_hit::TableCacheHit;
pub use queries::table_index_scans::TableIndexScans;
pub use queries::table_indexes_size::TableIndexesSize;
pub use queries::table_size::TableSize;
pub use queries::tables::Tables;
pub use queries::total_index_size::TotalIndexSize;
pub use queries::total_table_size::TotalTableSize;
pub use queries::unused_indexes::UnusedIndexes;
pub use queries::vacuum_stats::VacuumStats;
Modules§
Structs§
Enums§
Functions§
- all_
locks - Shows detailed information about all locks in the database.
- bloat
- Returns table and index bloat in your database ordered by most wasteful.
- blocking
- Lists queries that are blocking other queries.
- buffercache_
stats - Shows statistics about shared buffer cache usage.
- buffercache_
usage - Shows distribution of buffer cache usage by database objects.
- cache_
hit - Shows cache hit rates for both tables and indexes.
- calls
- Returns statistics about query calls in the database.
- connections
- Shows information about current database connections and their states.
- db_
settings - Shows current values of important PostgreSQL settings.
- diagnose
- Runs a comprehensive set of diagnostic checks on the database.
- duplicate_
indexes - Shows indexes that have identical definitions but different names.
- extensions
- Lists all installed PostgreSQL extensions.
- index_
cache_ hit - Shows index cache hit rates.
- index_
scans - Shows statistics about index scans.
- index_
size - Shows the size of all indexes, ordered by size.
- index_
usage - Shows statistics about index usage.
- indexes
- Lists all indexes in the database.
- locks
- Shows information about locks in the database.
- long_
running_ queries - Lists currently running queries that have been running for a long time.
- mandelbrot
- Generates a Mandelbrot set as a test query.
- null_
indexes - Shows indexes that contain mostly NULL values.
- outliers
- Shows queries with the longest execution time in aggregate.
- pg_pool
- Creates a new connection pool to PostgreSQL.
- records_
rank - Shows estimated number of rows in each table, ordered by estimated count.
- render_
table - Renders a table to stdout for any type that implements the Query trait.
- seq_
scans - Shows statistics about sequential scans performed on tables.
- ssl_
used - Shows whether SSL is being used for current connections.
- table_
cache_ hit - Shows cache hit rates for tables.
- table_
index_ scans - Shows statistics about index scans performed on tables.
- table_
indexes_ size - Shows total size of all indexes for each table.
- table_
size - Shows disk space used by each table, excluding indexes.
- tables
- Lists all tables in the database with their basic information.
- total_
index_ size - Shows total size of all indexes in the database.
- total_
table_ size - Shows total disk space used by tables and indexes.
- unused_
indexes - Lists indexes that haven’t been used or are rarely used.
- vacuum_
stats - Shows statistics about VACUUM and ANALYZE operations.