{"id":50344590,"url":"https://github.com/timescale/pg-guide","last_synced_at":"2026-05-29T19:02:01.065Z","repository":{"id":334120847,"uuid":"1140136519","full_name":"timescale/pg-guide","owner":"timescale","description":"PG guide to devops/infra engineers","archived":false,"fork":false,"pushed_at":"2026-01-30T18:33:35.000Z","size":89,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T15:38:36.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"postgresql","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timescale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-22T21:52:02.000Z","updated_at":"2026-01-31T18:45:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/timescale/pg-guide","commit_stats":null,"previous_names":["sebastianwebber/pg-guide"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/timescale/pg-guide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Fpg-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Fpg-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Fpg-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Fpg-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timescale","download_url":"https://codeload.github.com/timescale/pg-guide/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timescale%2Fpg-guide/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33666290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-05-29T19:01:56.100Z","updated_at":"2026-05-29T19:02:01.049Z","avatar_url":"https://github.com/timescale.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL Core Concepts and Operations Guide\n\n## Purpose\n\nThis guide is designed to help platform engineers, software developers, Kubernetes specialists, and network engineers understand the essential PostgreSQL concepts and architecture that affect day-to-day operations.\n\n## Target Audience\n\n- Platform engineers\n- Kubernetes/Infrastructure specialists\n- Software developers\n- Network engineers\n- Anyone operating PostgreSQL in production environments\n\n## Topics\n\n### 1. [Process Architecture](01-process-architecture.md)\nUnderstanding PostgreSQL's process model, backend processes, auxiliary processes, and connection management.\n\n### 2. [Memory Management](02-memory-management.md)\nShared buffers, work memory, maintenance work memory, and how PostgreSQL uses memory.\n\n### 3. [MVCC and Transactions](03-mvcc-transactions.md)\nMulti-Version Concurrency Control, transaction isolation levels, visibility, VACUUM, autovacuum, and bloat management.\n\n### 4. [WAL (Write-Ahead Log)](04-wal.md)\nWrite-Ahead Logging, checkpoints, durability, and crash recovery.\n\n### 5. [Replication](05-replication.md)\nStreaming replication, replication slots, synchronous vs asynchronous replication, failover concepts.\n\n### 6. [Tablespaces and Storage](06-tablespaces-storage.md)\nPhysical layout, PGDATA directory structure, configuration file management, TOAST, fillfactor, and storage management.\n\n### 7. [Critical Monitoring](07-monitoring.md)\nEssential views, key metrics, and logging configuration for production operations.\n\n### 8. [Backup and Recovery](08-backup-recovery.md)\nBackup strategies, PITR, modern tools, and disaster recovery concepts.\n\n### 9. [Upgrade and Maintenance](09-upgrade-maintenance.md)\npg_upgrade, logical replication for upgrades, extension management, and version policies.\n\n### 10. [Configuration and Tuning](10-configuration-tuning.md)\nCritical postgresql.conf parameters, authentication, and workload-specific tuning.\n\n### 11. [Common Troubleshooting](11-troubleshooting.md)\nPractical solutions for replication lag, connection issues, and disk space problems.\n\n### 12. [Operational Security](12-security.md)\nRoles, privileges, SSL/TLS, audit logging, and row-level security.\n\n### 13. [TimescaleDB Specific](13-timescaledb.md)\nHypertables, chunks, compression, continuous aggregates, and operational considerations.\n\n## How to Use This Guide\n\nEach topic is structured as follows:\n- **What is it?** - Core concepts explained\n- **Why it matters** - Operational impact and importance\n- **How to monitor** - Practical queries and metrics\n- **Common problems** - Symptoms and solutions\n- **References** - Official documentation and resources\n\nStart with topics relevant to your current challenges, or read sequentially for comprehensive understanding.\n\n## Contributing\n\nThis is a living document. If you find gaps, errors, or have suggestions for improvement, please contribute.\n\n## TODO\n- [ ] expand patroni session into a whole chapter\n\n\nhttps://pgdog.dev/blog/shard-your-database","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimescale%2Fpg-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimescale%2Fpg-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimescale%2Fpg-guide/lists"}