{"id":17292826,"url":"https://github.com/lesovsky/postgres-stats-qa","last_synced_at":"2025-10-05T10:17:54.478Z","repository":{"id":69264977,"uuid":"380420907","full_name":"lesovsky/postgres-stats-qa","owner":"lesovsky","description":"PostgreSQL activity statistics with questions and answers.","archived":false,"fork":false,"pushed_at":"2021-06-29T09:11:52.000Z","size":21,"stargazers_count":21,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T01:43:12.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pgstats.dev","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lesovsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-26T05:25:01.000Z","updated_at":"2024-12-04T20:51:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"82c49822-e6e3-4e02-9257-075c423b6698","html_url":"https://github.com/lesovsky/postgres-stats-qa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesovsky%2Fpostgres-stats-qa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesovsky%2Fpostgres-stats-qa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesovsky%2Fpostgres-stats-qa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lesovsky%2Fpostgres-stats-qa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lesovsky","download_url":"https://codeload.github.com/lesovsky/postgres-stats-qa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654030,"owners_count":21140235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T10:44:29.160Z","updated_at":"2025-10-05T10:17:49.439Z","avatar_url":"https://github.com/lesovsky.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL activity statistics: Questions and Answers. \n\nThis is a list of questions which might occur during PostgreSQL administration and possible ways of how to answer on these questions.\n\nThis should be used with [pgstats.dev](https://pgstats.dev)\n\n## Content\n\n1. [Client Backends](https://pgstats.dev/Client%20Backends)\n    - [x] what is client backend?\n    - [x] how many clients connected to the server?\n    - [x] how many clients connected to the database?\n    - [x] how many clients connected remotely?\n    - [x] what states of connected clients?\n    - [x] do the connected clients use SSL?\n    - [x] how much time spent by sessions?\n    - [x] how many sessions were established and terminated?\n    - [x] how much memory is used by backend?\n    \n\n2. [Query Planning](https://pgstats.dev/Query%20Planning)\n    - [x] what is planner?\n    - [x] how long queries are planned?\n    - [x] what is the ratio of planning time to executing time?\n    - [x] how to get plan of the query?\n\n\n3. [Query Execution](https://pgstats.dev/Query%20Execution)\n    - [ ] what is query executor?\n    - [ ] how many queries executed on the server, database, or from specific address?\n    - [ ] what queries are executed right now?\n    - [ ] is there any long queries or transactions on the server?\n    - [ ] what is the duration of the running xacts and queries?\n    - [ ] are there any blocked activity?\n    - [ ] which transactions or queries are blocked/waiting and who is blocking them?\n    - [ ] what the top of wait events occurs right now?\n    - [ ] how much time my functions are executed?\n    - [ ] how much time my queries are executed?\n    - [ ] how many times my queries have been called?\n    - [ ] how much time my queries are executed?\n    - [ ] how much time my queries spent doing IO?\n    - [ ] how many locks and what types of locks on the server?\n    - [ ] how much time waiting queries are waiting?\n    - [ ] how many of specific queries are executed now? how many SELECTS, UPDATES, and so on.\n    - [ ] how many CREATE INDEX opearions are running and what its progress?\n    - [ ] how many CLUSTER or VACUUM FULL opearions are running and what its progress?\n    - [ ] how many COPY opearions are running and what its progress?\n\n\n4. [Tables Usage](https://pgstats.dev/Tables%20Usage)\n    - [ ] what is tables?\n    - [ ] how many tables in my database?\n    - [ ] how my tables are accessed and how many rows retrieved?\n    - [ ] what workload is on my tables?\n\n\n5. [Indexes Usage](https://pgstats.dev/Indexes%20Usage)\n    - [ ] what is the main purpose of indexes?\n    - [ ] how many indexes is in my database or table?\n    - [ ] how often my indexes are used?\n\n\n6. [Buffers IO](https://pgstats.dev/Buffers%20IO)\n    - [ ] what is buffers IO?\n    - [ ] how much often my tables and indexes are read from cache?\n    - [ ] what cache hit ratio of my queries?\n    - [ ] how much temporary IO is produced by queries?\n    - [ ] how much local IO is produced by queries?\n\n\n7. [Shared Buffers](https://pgstats.dev/Shared%20Buffers)\n    - [ ] what is shared buffers?\n    - [ ] how much of shared buffers are used?\n    - [ ] what tables and indexes are in the shared buffers?\n    - [ ] how much space allocated by internal structures in the shared buffers?\n\n\n8. [SLRU Caches](https://pgstats.dev/SLRU%20Caches)\n    - [ ] what is SLRU cache?\n    \n\n9. [Server configuration]()\n    - [ ] how Postgres server is configured?\n    - [ ] how to list all configuration settings?\n    - [ ] how to check for unapplied settings?\n    - [ ] how to list all HBA rules?\n    - [ ] how to change settings?\n    - [ ] how to check when configuration was applied?\n\n\n10. [Postmaster](https://pgstats.dev/Postmaster)\n    - [ ] what is Postmaster?\n\n\n11. [Background Workers](https://pgstats.dev/Background%20Workers)\n    - [ ] what is background workers?\n    - [ ] how many bg workers are running (for particular pid)?\n\n\n12. [Autovacuum Launcher](https://pgstats.dev/Autovacuum%20Launcher)\n    - [ ] what is autovacuum launcher?\n    - [ ] what about wraparound?\n\n\n13. [Autovacuum Workers](https://pgstats.dev/Autovacuum%20Workers)\n    - [ ] what is autovacuum workers?\n    - [ ] how many (auto)vacuum workers are running?\n    - [ ] how long vacuum workers are executed?\n    - [ ] what the progress of vacuum?\n    - [ ] what the progress of running analyze commands?\n    - [ ] what tables have to be vacuumed or analyzed?\n    - [ ] how far autovacuum had on table?\n\n\n14. [Write-Ahead Log](https://pgstats.dev/Write-Ahead%20Log)\n    - [ ] what is Write-Ahead Log?\n    - [ ] how to calculate distance between two WAL locations?\n    - [ ] how to understand current state of WAL?\n    - [ ] how many WAL are generated by server?\n    - [ ] how many FPW are performed by server?\n    - [ ] how to count number of WAL segments and its size?\n    - [ ] how to find the most fresh standby server?\n\n\n15. [Logger Process](https://pgstats.dev/Write-Ahead%20Log)\n    - [ ] what is logger process?\n    - [ ] what the current logfile and where is it?\n    - [ ] how much size log files take?\n\n\n16. [Stats Collector](https://pgstats.dev/Stats%20Collector)\n    - [ ] what is stats collector?\n    - [ ] why there is nothing about stats collector?\n\n17. [Logical Replication](https://pgstats.dev/Logical%0AReplication)\n    - [ ] what is logical replication?\n    - [ ] how many replication slots are opened?\n    - [ ] what the status of subscriptions?\n\n\n18. [WAL Sender Process](https://pgstats.dev/WAL%20Sender%0AProcess)\n    - [ ] what is WAL sender process?\n    - [ ] how many standbys are connected to server?\n    - [ ] how far connected standbys are left behind of master?\n\n\n19. [WAL Archiver Process](https://pgstats.dev/WAL%20Archiver%0AProcess)\n    - [ ] what is WAL archiver?\n    - [ ] what the status of WAL archiver?\n    - [ ] how much WAL segments are not archived?\n\n\n20. [Background Writer Process](https://pgstats.dev/Background%0AWriter)\n    - [ ] what is background writer?\n    - [ ] how much amount of data written by bgwriter?\n    - [ ] how much amount of data written by backends?\n    - [ ] how often bgwriter has to forced to stop? \n\n\n21. [Checkpointer Process](https://pgstats.dev/Checkpointer%0AProcess)\n    - [ ] what is checkpointer?\n    - [ ] how much time are spent on write and sync phases?\n    - [ ] how much amount of data written by checkpointer?\n\n\n22. [Network](https://pgstats.dev/Network)\n    - [ ] how network is used in cluster topology?\n\n\n23. [WAL Receiver Process](https://pgstats.dev/WAL%20Receiver%20Process)\n    - [ ] what is wal receiver process?\n    - [ ] how much data recevied by wal receiver?\n\n\n24. [Recovery Process](https://pgstats.dev/Recovery%20Process)\n    - [ ] what is recovery process?\n    - [ ] what the latest WAL location or transaction is replayed?\n    - [ ] what is the state of recovery?\n\n\n25. [Storage](https://pgstats.dev/Storage)\n    - [ ] how storage is used by Postgres server?\n    - [ ] where Postgres stores its data (WAL, logs, TS, etc)?\n\n\n26. [Tables and Indexes Data Files](https://pgstats.dev/Tables%2FIndexes%20Data%20Files)\n    - [ ] what the size of my Postgres?\n    - [ ] what the size of my databases?\n    - [ ] what the size of my tables?\n    - [ ] what the size of my indexes?\n    - [ ] what the size of temporary files?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesovsky%2Fpostgres-stats-qa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flesovsky%2Fpostgres-stats-qa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesovsky%2Fpostgres-stats-qa/lists"}