PostgreSQL checks
Every check Verbiqo can run on a PostgreSQL server, grouped by area. You never name a check: you ask in plain words.The model reads the question into topics, and Verbiqo runs only the checks those topics need. A serious finding from those checks that is outside the question, such as wraparound or IDs running out, is added at the end as one of at most three Also noticed lines.
How to read this page. Each section is one area. Why it helps says what you get from it. Ask is a question to type that runs it. The table under it lists what Verbiqo checks there: you do not run those one by one. When a check finds a problem, it appears under the answer as a finding, with its evidence and a suggested fix.
How to ask for each area
Attach the server with /pg and the connection’s name, then ask.The model reads which areas the question is about; a question can bring in several. The middle column lists the words Verbiqo goes by when the model cannot be reached or its reading is unusable. Areas marked model only are reached only through the model’s reading.
| Area | Words Verbiqo goes by without the model | Ask, for example |
|---|---|---|
| Right now | slow, hanging, stuck, blocked, locks, waiting, busy, timeouts, spike, right now, currently, what is it doing, performance | The app is slow, what is the database doing? |
| Queries and indexes | slowest, top queries, expensive, heaviest, missing index, full scans, sequential scans, optimise, cache hit | Which queries cost the most? Are any indexes missing? |
| A statement’s plan | paste the statement into the question: SELECT, UPDATE, DELETE or INSERT | Why is this slow: DELETE FROM … |
| Replication and availability | replication, replica, standby, lag, failover, switchover, primary, WAL, archiving, backups, slots, wraparound, freeze, crash, restart, disk full, recovery, outage | Why is this replica falling behind? |
| PgBouncer | pgbouncer, pooler, pool, waiting for a connection, too many clients, max_client_conn; also read for a problem happening now and for a review | Why are clients waiting for a connection? |
| The whole cluster | cluster, nodes, members, Patroni, leader, standbys | Is the cluster healthy? Who is the leader? |
| Vacuum, bloat and writes | bloat, dead rows, free space, HOT updates, fillfactor, WAL volume, full-page, I/O, writes, background writer, checkpoints, vacuum, reindex | Is anything bloated? Why is WAL growing so fast? |
| Whether a change helped | did the changes help, since the change, before and after, check the tuning, impact of the settings, did the index help, is the new index used | Did the changes help? Is the new index used? |
| Settings and memory | tune, settings, configuration, parameters, memory, shared_buffers, work_mem, autovacuum, checkpoints, max_wal_size, recommendations, best practices | What should I tune on this server? |
| IDs, indexes and statistics | sequences, serial, identity, run out of IDs, duplicate or redundant indexes, stale statistics, analyze, health check | Are any sequences close to running out? |
| Security | security, hardening, audit, superuser, roles, privileges, grants, TLS, SSL, encryption, pg_hba, passwords, SCRAM, MD5, compliance | Security review of this database |
| Capacity | capacity, forecast, how long until, fill up, growth, sizing, scale up, headroom, planning | How long until the disks fill up? |
| What happened | what happened, timeline, incident, outage, yesterday, last night, at 3pm, when did, root cause | What happened on this server last night? |
| Every database on the server | all databases, every database, across the databases | Check all databases for sequences running out |
| The databases and their sizes | database sizes, how big, largest, list the databases, what databases; also read for any question about all databases, space or capacity | Find all databases and their sizes (measured by Verbiqo from pg_database, including databases this connection cannot open) |
| What Verbiqo can see | what should I enable, readiness, permissions, privileges, what does Verbiqo need | What should I enable? |
| Lists of objects | model only (without it, list schemas and list tables in schema … are still answered) | List the triggers on t_orders. |
| Schema design | model only | Review the schema design of this database. |
| A schema change | model only | Is this safe to run now? ALTER TABLE … |
| Application patterns | model only | Do we have N+1 queries? |
| Data types and extensions | model only | Which tables suit a BRIN index? |
Right now: sessions, waits and locks
Why it helps: When something is slow or stuck now, it shows what the database is doing and what is holding it up, so you know whether the database is the cause and what to clear.
Ask The app is slow, what is the database doing?
Verbiqo samples the active sessions for 10 seconds (3 to 30, see sampling) and reports:
| Check | What it looks for |
|---|---|
| Blocking | A session blocking others, with the chain of who waits on whom and the statement holding the lock. |
| Lock waits | The share of active session time spent waiting on locks during the sample. |
| Disk waits | The share of active session time spent reading or writing disk. |
| Long-running statement | A session running one statement for a long time. |
| Deadlocks | Deadlocks that happened during the sample. |
| Temporary files | Statements that spilled to temporary files during the sample. |
| Connections near the limit | Client connections as a share of max_connections, with who is using them. |
| Sessions in a transaction | The sessions in a transaction for a minute or more, longest first, with their age, user, application and database; the shorter ones are counted, with the longest of them. The sample is described as taken (for example, 10 readings over 16 seconds). |
| Maintenance in progress | Index builds, vacuum, analyze, cluster and base backups running now, with their phase and progress. |
Queries and indexes
Why it helps: Shows which statements cost the most in total and where an index would help, so you fix the few queries that matter most.
Ask Which queries cost the most? Are any indexes missing?
From pg_stat_statements and the table and index statistics. pg_stat_statements covers every database on the server, so each statement names its database and role; one counted once per database and role is shown once, with its figures summed. A statement that runs in another database says so, and is not planned or given an index from the database Verbiqo is connected to: name its database in the question to look at its tables. In an answer about one database, such statements are counted apart from that database’s own and listed last.
| Check | What it looks for |
|---|---|
| One statement dominates | A single statement taking a large share of all statement time. |
| Slow statement | A statement with a high average time per call. |
| Statement spills to disk | A statement writing temporary files on every call: a sort or hash too big for work_mem. |
| Full scans | Large tables read in full many times, which an index would avoid. |
| Unused index | An index never scanned since statistics were reset, with what it costs to keep. An index that backs a unique, primary-key or exclusion constraint is never offered for dropping: where a query does not say, Verbiqo looks it up, and offers no drop when it cannot. Indexes under 1 MB are left out. The same index name in several schemas is one finding that lists each schema. A health answer lists the ten largest of 1 MB or more; the rest are named in the details folded under it, with a line of totals for all of them and for the ten listed. An index never scanned whose leading column a statement in the answer filters on keeps its line, the line says so, and no DROP is given for it until that statement’s plan is checked. Ask list unused indexes, or list unused indexes in <database> for a database other than the connection’s, to have every one listed with its statement. |
| Invalid index | An index left invalid by a failed CREATE INDEX CONCURRENTLY: maintained on every write, never used. |
| Plans of the heaviest reads | With PostgreSQL 16 and pg_read_all_data, the plans of up to 10 of the heaviest reads (3 if your organization limits how much Verbiqo reads per question), checked as in A statement’s plan. |
| Index for a join | A table a join reads in full for every row of the other side. With hypopg, an index on the join column is tested; it is suggested only if PostgreSQL would use it and it cuts the estimated cost by at least a fifth. |
| Index for sorted results | A query that sorts a whole large table to return its first rows (ORDER BY … LIMIT). With hypopg, an index on the filter’s columns, then the sort columns, is tested, and suggested on the same terms. |
| One index for two queries | The same index suggested for two queries is shown once. Where one query’s index starts with another’s columns, the wider index is tested on both; if PostgreSQL would use it for both, one index is suggested instead of two. |
Index tests use hypothetical indexes: nothing is built, and they are cleared before Verbiqo answers. Without hypopg, only the full-scan suggestions are made, as before.
A statement’s plan
Why it helps: Explains why one statement is slow from its plan, without running it, so you can fix that statement.
Ask Why is this slow? SELECT * FROM orders WHERE status = $1
Paste a statement into the question. Verbiqo asks PostgreSQL for the plan without running it (it needs PostgreSQL 16 and pg_read_all_data, see Explain a slow statement). For an UPDATE, DELETE or INSERT, it plans the search for the rows and reads what writing each row costs.
| Check | What it looks for |
|---|---|
| Full scan that keeps little | A sequential scan of a large table that keeps a small share of its rows: an index candidate. |
| Sort spilled to disk | A sort that did not fit in work_mem. |
| Large sort | A sort the planner expects to be bigger than work_mem. |
| Estimate far from reality | The planner expecting far more or fewer rows than it got, usually stale statistics or correlated columns. |
| Nested loop over a full scan | A table read in full once per outer row. |
| Suggested index tested | With hypopg installed, whether PostgreSQL would use the index Verbiqo suggests, before you build it. |
| Unindexed foreign key (writes) | A DELETE, or an UPDATE of a key, on a table that other tables reference with no index on their side: each row scans the other table. Gives the index to create. |
| Update of an indexed column (writes) | An UPDATE that sets an indexed column cannot be a HOT update, so it writes a new entry in every index of the table. |
| Indexes and triggers (writes) | How many indexes each written row updates, and which triggers run. |
Replication and availability
Why it helps: Shows whether replicas keep up, WAL is archived and IDs are safe from wraparound, so you hear about a failover or data-loss risk before it happens.
Ask Why is this replica falling behind?
| Check | What it looks for |
|---|---|
| WAL archiving failing | The archiver failing, so point-in-time recovery has a gap and WAL piles up. |
| Synchronous standby missing | Commits waiting for a synchronous standby that is not connected. |
| Replay paused | WAL replay paused on a replica. |
| Replay lag | WAL received by a replica but not yet replayed. |
| Vacuum held back | What keeps old rows from being cleaned up: a long session, a prepared transaction, a standby with hot_standby_feedback, or a replication slot. |
| WAL growing | pg_wal holding several times max_wal_size, usually a slot or failing archiving. |
| Freeze overdue | Tables past autovacuum_freeze_max_age. |
| Wraparound | How far each database is towards transaction ID wraparound.Once it is close, it is noticed on any question whose reads include it. |
| Logical slot without a consumer | A logical replication slot nobody is reading from, holding WAL on disk; and a consumer far behind the server. |
| Subscriptions | On a server that subscribes: a subscription disabled, enabled without an apply worker, or recording apply and sync errors. |
PgBouncer
Why it helps: Shows whether clients wait in the pooler, and why, so you can tell a pool size problem from a slow database.
Ask Why are clients waiting for a connection?
When the attached address is a PgBouncer, Verbiqo reads its console (the virtual database pgbouncer at the same host, port and credentials; the account must be in stats_users or admin_users). Nothing beyond the attached address is reached; a direct server has no console and the read is skipped.
| Check | What it looks for |
|---|---|
| Clients queued | Clients waiting for a server connection, how long the oldest has waited, and whether the pool is at its size or the server is not answering. |
| Server login stuck | Connections to the server stuck logging in while clients wait. |
| Client limit | Client connections near max_client_conn. |
| Paused or disabled | A database an operator paused or disabled, so clients wait or are refused. |
| Console refused | The console refusing the login (for example bouncer config error): the refusal is quoted and explained, the pool mode is said to be unknown, and the answer gives the next step: the user must be in stats_users or admin_users, and PgBouncer’s log has the exact cause. |
The whole cluster: standbys, Patroni and backups
Why it helps: Shows every node’s role and state, Patroni’s view and backups, so you know whether the cluster survives losing a node.
Ask Is the cluster healthy? Who is the leader?
From the attached node, Verbiqo reports the others as that node sees them (from a primary, its standbys with their state and lag; from a standby, its upstream). It does not connect to them: a question reaches only what is attached, so another node is read by attaching it in a conversation of its own (see Clusters). If the question itself asks for it, for example read the other nodes with this connection’s credentials, Verbiqo reaches the nodes the attached one reports, at the addresses it gives and with the same credentials; a saved connection is still never used. With a Prometheus source attached in the same conversation it adds Patroni and pgBackRest. A standby it did not read still shows its state, sync mode and replay lag as the primary sees them. A logical replication client (Debezium, a subscriber) is reported as a consumer with its slot and lag, not as a node to attach, and is not counted as a standby.
| Check | What it looks for |
|---|---|
| Node not read | A node that could not be reached or confirmed as part of the cluster, and why. |
| Standby on an old timeline | A standby still on a timeline the primary has left, after a failover. |
| Standby not streaming | A standby that is catching up from archive or has stopped. |
| Patroni member missing | A member Patroni lists that is not replicating from the primary. |
| Patroni leader disagrees | Patroni’s leader is not the node accepting writes. |
| No Patroni leader | The Patroni cluster has no leader. |
| Failovers | Timeline changes in the last 7 days. |
| Restart pending | Patroni reports a restart waiting on this member. |
| Backups | The last pgBackRest backup too old, page checksum errors found by a backup, WAL archiving not recorded, or the stanza reporting an error. |
Vacuum, bloat and writes
Why it helps: Finds wasted space, vacuum falling behind and heavy WAL, so tables stay small and fast and disks do not fill.
Ask Is anything bloated? Why is WAL growing so fast?
| Check | What it looks for |
|---|---|
| Autovacuum behind | Tables with many dead rows and no recent vacuum. |
| Measured bloat | An estimate for every relation, and free space and dead rows measured with pgstattuple (pgstatindex for indexes) where it is installed: every table, materialized view, leaf partition and TOAST relation of 100 MB or more, and every index of 1 GB or more with an estimate, largest first. The answer leads with Most space to give back: the ten measured relations with the most free space plus dead rows, and the total. A relation is a warning when it can give back 1 GiB or more and that is 20% of it, or half of it and 100 MiB or more; a note from 30% and 100 MiB. Measuring stays within a per-question read budget (5 GB by default, set per connection; 0 is estimates only). A relation the budget skipped says what it needs and how much budget was left. check bloat of schema.table measures one relation whatever the budget; an exact check of an index runs only on a standby, after you confirm. On a large database, a list of more than 50 relations is shown as totals by schema with the largest rows, and the complete lists are folded under the answer. |
| Few HOT updates | Tables where most updates also write every index. When pages are too full, a fillfactor sized from the table: room for the rows updated between vacuums, and at least one more row (70 to 95). When updates change indexed columns, it says fillfactor will not help. |
| Sessions writing buffers | Sessions writing dirty buffers or syncing files themselves, because the background writer and checkpointer fall behind. |
| Background writer limit | The background writer stopping at its per-round limit. |
| Full-page images | A large share of WAL records carrying full page images: checkpoints too close together. |
| WAL buffers full | WAL buffers filling and forcing writes before commit. |
Settings and memory
Why it helps: Judges each setting against what the server actually does, with the statement to change it, so you tune from evidence rather than rules of thumb.
Ask What should I tune on this server?
Settings are judged against what the server has been doing. Sizes that depend on the machine (memory, cores, storage) come from a Prometheus source attached in the same conversation (/prom name), or from what the question states (32 GB of memory, 8 cores, SSD); each finding says which. To see whether a change helped, see After a change.
| Check | What it looks for |
|---|---|
| Unsafe settings | fsync or full_page_writes off (corruption after a crash), autovacuum off. |
| Checkpoints | Checkpoints forced by WAL volume rather than time (raise max_wal_size), or written in a shorter burst than needed (checkpoint_completion_target). On a busy server with a day of statistics, checkpoints every five minutes (checkpoint_timeout). |
| WAL compression | Full-page images making up a large share of WAL while wal_compression is off (PostgreSQL 14+). |
| JIT | Short statements spending a large share of their time compiling (jit, jit_above_cost; PostgreSQL 15+). |
| work_mem | Statements by a role spilling to disk on every call, with the size that would hold them. |
| Temporary files | How much the database writes to temporary files, per day. |
| Autovacuum per table | Large tables waiting for too many dead rows before autovacuum starts. The table’s own threshold is sized from its size: about 100,000 dead rows per vacuum, between 0.2% and 5% of the table. |
| Append-only tables | Tables that are only inserted into, with most pages not yet marked all-visible: index-only scans still read the table, and freezing piles up. Gives a smaller autovacuum_vacuum_insert_scale_factor for the table (PostgreSQL 13+). |
| Autovacuum workers | Every worker busy when Verbiqo looked. |
| Autovacuum speed | Many tables past their vacuum threshold at once while vacuum runs at the default cost limit (autovacuum_vacuum_cost_limit). |
| Vacuum memory | A vacuum scanning the same indexes more than once for lack of memory. |
| shared_buffers and effective_cache_size | Left at their defaults, or out of proportion to the machine’s memory. |
| maintenance_work_mem | Out of proportion to the machine’s memory. |
| Planner costs for SSD | random_page_cost and effective_io_concurrency left at the spinning-disk defaults on SSD or network storage. |
| Parallel workers | Worker limits below what a machine with more than eight cores can use. |
| Memory overcommit | work_mem × max_connections larger than the machine. |
| Disk space | A disk on the machine low on free space. |
| End of life | A major version past its end-of-life date (a warning) or within 180 days of it (a note). The dates are from the PostgreSQL versioning policy as of 11 November 2026; the advice is to plan a major upgrade. |
IDs, indexes and statistics
Why it helps: Finds IDs about to run out, duplicate indexes and stale statistics: problems that build quietly until inserts fail or plans go wrong.
Ask Are any sequences close to running out?
These are read in one database at a time: the one connected to, or the one the question names. When the server has other databases (the default postgres alone does not count), Verbiqo says which it read and which it did not, and an answer may not call the whole server clear (“nothing needs vacuuming”) from one. Ask about all databases to read each.
| Check | What it looks for |
|---|---|
| Sequences running out | A sequence against the column it feeds: a bigint sequence behind an integer key runs out at 2.1 billion.Once it is close, it is noticed on any question whose reads include it. |
| Duplicate and overlapping indexes | An index another one already covers. A covered index under 1 MB is left out; an exact duplicate is always reported. The same pair in several schemas is one finding that lists each schema. |
| Stale statistics | Tables changed well past autovacuum’s analyze threshold and not analyzed for a day. A read that stopped at its limit never claims there are none. For tables never analyzed, those that hold rows come first; empty tables and partitioned parents (which hold no statistics of their own) are counted, not listed. |
| Statistics reset times | When each counter family was last reset: database statistics, background writer, checkpointer, WAL, archiver, I/O and pg_stat_statements. Asked as when were the statistics last reset? |
| Partitions | A range-partitioned table whose last partition has already ended or ends within two weeks, and rows piling up in a DEFAULT partition. Where pg_partman is installed in the database read, a table in that state gets pg_partman’s own steps before the standard ones, and the answer says where its last range ends or ended. |
Security
Why it helps: Shows who can do too much, what connects unencrypted and what anyone may change, so you close the gaps an audit would find.
Ask Security review of this database
| Check | What it looks for |
|---|---|
| A permission error you paste | Which role lacks which privilege on the object the error names, read from the catalog, with the grant that should fix it. Verbiqo asks which role when the error does not say (Permission errors). |
| Who can write to a table | The table’s own grants (roles that cannot log in included), the roles that hold the privilege through a group, and the superusers, each said for what it is. Asked as who has write access on app.orders? |
| Login superusers | Roles that can log in as superuser. |
| Wide roles | Login roles that can create roles or bypass row security. |
| Expired passwords | Roles whose password has expired. |
| TLS | TLS off, or remote sessions connected without it. |
| Open schemas | Schemas where every role may create objects. |
| pg_hba.conf | Rules that need no password (trust) or send it in clear text (password). Readable only by a superuser; Verbiqo says when it could not check. |
| MD5 passwords | MD5 authentication still in use instead of SCRAM. |
The same checks are controls in the security review, which covers every saved connection at once and maps each to CIS Controls, ISO 27001 and SOC 2.
Lists of objects
Why it helps: any list a DBA would ask for is in the answer itself, read from the catalog, with nothing to type in psql.
Ask List all grants in schema app_a.
Every item up to 50, up to 200 when every item is asked for, or the number the question gives (top 20); the rest are counted. A table or schema named in the question limits the list, and the first line says so. Each list is read from pg_catalog or a statistics view, one read per list, with the server counting the whole set. The kinds and what each item shows: Lists of what the server holds.
| List | What it reads |
|---|---|
| Objects of one kind | One of 31 catalog lists, from tables and partitions to grants, row security policies, casts and rules. Function bodies, passwords, subscription connection strings and foreign server options are never read. |
| Databases | A table of every database with its size, sessions and notes, largest first. The notes mark the connection’s database, templates, and a database this role cannot connect to (no CONNECT privilege). The user databases alone when asked, leaving out postgres, template0 and template1. |
| Sizes | The largest tables (with their indexes and TOAST) or indexes, ten unless a number is given; the size of each schema; empty tables. |
| Settings not at default | pg_settings: each changed setting with where it was set and whether it waits for a restart. |
| Sessions grouped | pg_stat_activity, client sessions by database, role, application, client address or state. |
| Tables by maintenance | pg_stat_user_tables: tables never vacuumed or autovacuumed, never analyzed, or with dead rows, since the last statistics reset. |
| Locks now | pg_locks, held and waited for, by kind, mode and relation. A lock held by a prepared transaction is named by its identifier; a relation of another database is named by that database, a shared catalog as one. |
| Extensions, tablespaces, publications | Installed extensions and newer versions available; tablespaces with location, size and owner; publications and the tables each publishes. |
Schema design
Why it helps: finds the design choices that break replication, slow deletes or lose data, so they are fixed before they cause an incident.
Ask Review the schema design of this database.
Read from the catalog only, for the attached database (or the one named), the schemas named, or one table. System schemas, TOAST, temporary relations and objects an extension owns are left out. Schemas the role has no USAGE on are still covered, because the catalog lists their objects, and the answer says so. Other databases are not read; the answer names them.
| Check | What it looks for |
|---|---|
| No primary key | Tables and partitioned tables without one, with size and rows, how many hold data, and a unique index that could serve as the key. When such a table is in a publication that publishes updates or deletes with no usable replica identity, UPDATE and DELETE on it fail on the publisher, and the answer says so. |
| Foreign key without an index | Foreign keys with no valid, non-partial index that starts with the referencing columns. A warning when the referencing table has 100,000 estimated rows or more and rows were deleted from the referenced table: each delete then scans the referencing table. |
| Constraints NOT VALID | Foreign key, check and not-null constraints added NOT VALID and never validated, with the VALIDATE CONSTRAINT statement for each. |
| Disabled triggers | Triggers that do not fire, and foreign keys not enforced because their internal triggers are disabled. Rows written while a foreign key’s triggers are disabled are not checked, and enabling them again does not check those rows. |
| Unlogged tables | Tables emptied after a crash and absent on standbys. |
| Column types | Columns of type timestamp without time zone, character(n), money, json, and serial columns where an identity column would do, with the type to consider instead. |
| Nested views | Views and materialized views stacked more than three levels deep, the view itself counted as level 1. |
A schema change before you run it
Why it helps: shows what a migration locks and what it would wait behind on this server now, so a deploy does not block the application.
Ask Is this safe to run now? and paste the statement.
Up to 10 statements per question: ALTER TABLE, CREATE [UNIQUE] INDEX, DROP INDEX and REINDEX, recognised by their SQL grammar. An ALTER TABLE with a subcommand Verbiqo does not recognise is not reviewed. The statement is never run, planned or explained.
| Check | What it looks for |
|---|---|
| Lock | The strongest lock the statement takes on this server’s version, and what it blocks: ACCESS EXCLUSIVE blocks reads and writes, SHARE blocks writes, SHARE UPDATE EXCLUSIVE lets both continue. |
| Rewrite or scan | Whether it rewrites the table (a volatile default, a type change, SET LOGGED), scans it (SET NOT NULL, a new constraint), builds an index, or changes only the catalog, by server version: a constant default needs no rewrite from PostgreSQL 11, for example. |
| The table | Size with indexes and TOAST, estimated rows, partitions and owner; for a type change, the column’s current type; for a new foreign key, whether an index starts with its columns. |
| Sessions in the way | Sessions holding or waiting for a lock on the table now, with the oldest open transaction among them. |
lock_timeout | The value sessions start with, the table owner’s own, and every role or database that sets one. |
| Safer form | CONCURRENTLY, NOT VALID then VALIDATE CONSTRAINT, a unique index built first then USING INDEX, or a new column filled in batches; and a short lock_timeout with a retry. |
What it cannot show: which role will run the migration, so that role’s own lock_timeout is not known.
Application patterns
Why it helps: points to application behaviour that costs the database, from counters the server already keeps.
Ask Do we have N+1 queries?
Each is a pattern the counters are consistent with, not proof. Each answer ends with what it cannot show, given in the last column. Verbiqo’s own statements are left out.
| Check | What it looks for | What it cannot show |
|---|---|---|
| N+1 shape | Statements in pg_stat_statements with at least 10,000 calls, about one row a call, a mean of 1 ms or less, and a SELECT or WITH; their share of all calls. | That the calls come from a loop in one request; application traces or the server log show that. |
| Connection churn | Databases with at least 10,000 sessions lasting under a second on average, from pg_stat_database (PostgreSQL 14 and later), with sessions abandoned, ended by a fatal error or terminated. | Which client opens them; log_connections or the pooler’s statistics show that. |
| PgBouncer transaction mode | The pool mode of PgBouncer at the attached address, max_prepared_statements (needs an admin user for SHOW CONFIG), and recorded statements that use session features transaction mode does not keep: session SET (grouped by parameter: one value everywhere is no leak, and client_encoding, DateStyle, IntervalStyle, TimeZone, standard_conforming_strings and application_name are kept per client by PgBouncer), LISTEN, WITH HOLD cursors, session advisory locks, SQL PREPARE, temporary tables and LOAD. | Protocol-level prepared statements a driver sends, and anything the application never ran; SET and LISTEN are recorded only while pg_stat_statements.track_utility is on. |
plan_cache_mode | The server value, every role or database that sets its own, and, on PostgreSQL 18 and later, the statements planned generically most often. | Which plan one execution got; auto_explain shows that. |
| Statements inside functions | pg_stat_statements.track, track_utility, track_planning, how many SQL and PL/pgSQL functions the database has, and track_functions. | Which inner statement is slow when track is top; track = all or auto_explain.log_nested_statements shows it. |
Data types and extensions
Why it helps: checks that JSONB, full-text, time-series, partitioning and vector features are indexed and maintained as they need to be.
Ask Are the jsonb columns indexed?
An extension that is not installed in the database is said in one sentence. With a table named, each answers for that table first.
| Check | What it looks for | What it cannot show |
|---|---|---|
| GIN and text search | GIN and GiST indexes with their operator classes, size, scans and pending list (the list needs pgstattuple); jsonb and tsvector columns no such index covers; trigram indexes where pg_trgm is installed; statements using LIKE or ILIKE. | Whether a LIKE pattern starts with a wildcard: pg_stat_statements keeps it as a parameter. |
| BRIN candidates | Tables of 1 GB or more whose updates and deletes are at most 10% of their inserts, with a date, time or number column whose correlation with the physical order is 0.9 or more. The correlation is in pg_stats, which the role sees only for tables it may read (pg_read_all_data); tables it cannot see are counted as not judged. | Whether queries filter that column by ranges, the only case BRIN helps. |
pg_partman and pg_cron | Whether pg_partman and pg_cron are installed in the database read. Verbiqo reads only the catalog and the statistics views, so it does not read the tables where they keep their managed tables and jobs: the answer says so. | Which tables pg_partman manages, and which pg_cron jobs ran or failed. |
pgvector | Vector columns, their dimensions, and the HNSW or IVFFlat indexes on them, or that a column has none, so every similarity search reads the whole table. | Recall and speed, which depend on the queries and on settings such as hnsw.ef_search. |
What Verbiqo can see
Why it helps: Lists what Verbiqo can and cannot see on this server, with the statement that turns each missing item on, so its answers are as complete as possible.
Ask What should I enable?
Ask what should I enable? for each optional extension and setting (pg_stat_statements, pgstattuple, hypopg, track_io_timing and others) marked ready or not, with the statements for your server. The monitoring role itself is in Set up PostgreSQL.
Ready-made reports
A report is one fixed reading of one area: no question, no model, the same output every time. Use one to look at an area yourself, or to share what it shows.
From a terminal, it prints the report:
verbiqo pg run orders blocking-tree
In verbiqo chat, it loads the report into the conversation so you can ask about it. help lists the reports:
/pg orders blocking-tree
/pg orders help
In the desktop apps, there is no report command: ask in your own words, and Verbiqo reads what the question needs.
| Report | Shows |
|---|---|
blocking-tree | Sessions waiting on a lock, and what holds it. |
long-running | Transactions and queries open longest. |
idle-in-transaction | Sessions holding a transaction open while doing nothing. |
table-bloat | Dead rows and when each table was last vacuumed. |
unused-indexes | Indexes never scanned, and what they cost to keep. |
cache-hit | How much of the working set is served from memory. |
replication | Standbys, and how far behind each one is. |
connections | Where connections are going, and how close to the limit. |
settings-of-note | Settings that most often explain a performance complaint. |
Capacity checks for PostgreSQL are on Capacity checks, and what Verbiqo finds in the PostgreSQL log is on Log findings.