{"Entry":{"collection":"metric","key":"pg_stat_database-sessions_abandoned","name":"pg_stat_database.sessions_abandoned","aliases":["sessions_abandoned","pg_stat_database"],"metadata":{"aliases":["sessions_abandoned","pg_stat_database"],"category":"pg_stat_database","content_hash":"4158cfd76ba7e45af33693f17268b3239994d849962bfaf2b5c3169dea5147da","imported_at":"2026-09-30T00:40:45.57556+08:00","name":"pg_stat_database.sessions_abandoned","name_zh":"","slug":"pg_stat_database-sessions_abandoned","summary":"Number of database sessions to this database that were terminated because connection to the client was lost"}},"Definition":{"Collection":"metric","Key":"pg_stat_database-sessions_abandoned","SourceDatabase":"center","Version":"18","SourceTable":"statistics_metric","SourceKey":"pg_stat_database-sessions_abandoned","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","Facts":{"comparison_data":{"field":"sessions_abandoned","sql_type":"bigint","units_mentioned":[],"view":"pg_stat_database"},"comparison_hash":"0c6cbf0507d334b5160dcef30f768d0728bbf766db7d6c5599fb1b3388eec264","description":["Number of database sessions to this database that were terminated because connection to the client was lost"],"documented":true,"facts":[{"label":"View","value":"pg_stat_database"},{"label":"Field","value":"sessions_abandoned"},{"label":"SQL type","value":"bigint"},{"label":"Units named in the field definition","value":"Not specified"},{"label":"Reset observation","value":"Time at which these statistics were last reset"}],"field":"sessions_abandoned","manual_html":"","manual_path":"/docs/18/monitoring-stats.html","related":[{"label":"pg_stat_database columns","url":"/wiki/catalog/pg_stat_database/?v=18"},{"label":"Statistics collection and reset functions","url":"/docs/18/monitoring-stats.html"}],"release":{"channel":"stable","label":"18.6","major":"18","ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sections":[{"paragraphs":["The pg_stat_database view will contain one row for each database in the cluster, plus one for shared objects, showing database-wide statistics."],"title":"View semantics"},{"paragraphs":["Read the same-version statistics collection and view documentation below for reset scope and visibility. No per-field reset rule is inferred from the field name."],"title":"Collection and reset context"},{"code":"SELECT sessions_abandoned FROM pg_catalog.pg_stat_database;","paragraphs":["Example query; no execution result or measured value is asserted."],"title":"Inspect this field"}],"signature":"SELECT sessions_abandoned FROM pg_catalog.pg_stat_database;","source_only":false,"sources":[{"label":"PostgreSQL 18 English manual","path":"monitoring-stats.html","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","url":"/docs/18/monitoring-stats.html#PG-STAT-DATABASE-VIEW"}],"sql_type":"bigint","tables":[],"units_mentioned":[],"view":"pg_stat_database"},"ManualEvidence":{"manual_path":"/docs/18/monitoring-stats.html","release":{"channel":"stable","label":"18.6","major":"18","ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sources":[{"label":"PostgreSQL 18 English manual","path":"monitoring-stats.html","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","url":"/docs/18/monitoring-stats.html#PG-STAT-DATABASE-VIEW"}]},"MeasuredEvidence":{}},"Text":{"Collection":"metric","Key":"pg_stat_database-sessions_abandoned","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_stat_database.sessions_abandoned","Summary":"Number of database sessions to this database that were terminated because connection to the client was lost","BodyHTML":"\u003cp\u003eNumber of database sessions to this database that were terminated because connection to the client was lost\u003c/p\u003e","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","ContentHash":"cf89a455b6c8a21d3c1775a7e9555353bb9a7fd4d30ed5ee2853fee131731b2d","Payload":{"description":["Number of database sessions to this database that were terminated because connection to the client was lost"],"manual_html":"","related":[{"label":"pg_stat_database columns","url":"/wiki/catalog/pg_stat_database/?v=18"},{"label":"Statistics collection and reset functions","url":"/docs/18/monitoring-stats.html"}],"sections":[{"paragraphs":["The pg_stat_database view will contain one row for each database in the cluster, plus one for shared objects, showing database-wide statistics."],"title":"View semantics"},{"paragraphs":["Read the same-version statistics collection and view documentation below for reset scope and visibility. No per-field reset rule is inferred from the field name."],"title":"Collection and reset context"},{"code":"SELECT sessions_abandoned FROM pg_catalog.pg_stat_database;","paragraphs":["Example query; no execution result or measured value is asserted."],"title":"Inspect this field"}],"tables":[]}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["14","15","16","17","18","19","20"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
