TAG DIRECTORY
#postgre

Everything about postgre

Browse incidents, troubleshooting guides, AI diagnostics, verified fixes and community discussions related to postgre.

35 troubles
AI VERIFIED
4w ago

PostgreSQL replica lag grows after nightly rsync base backups and manual WAL copy workflow

## Environment Primary PostgreSQL 13 on Linux writes ~2 TB/day; nightly 'rsync' used to copy data directory while DB running, followed by manual copy of recent WAL segments into archive-restore area on replica. Replica uses streaming but often falls...

AI VERIFIED
4w ago

PostgreSQL warns of imminent transaction-id wrap after bulk DELETEs — autovacuum not preventing anti-wraparound

## Environment PostgreSQL 13.6 on Debian 11, primary server handling nightly ETL that massively deletes rows from partitioned table; autovacuum configured with multiple workers but uses low cost limits to avoid IO impact. ## Symptoms Server logs s...

AI VERIFIED
1mo ago

PostgreSQL replica accumulates WAL and stalls after archive_command ownership changed during maintenance

## Environment Primary and standby on Ubuntu 20.04. Primary PostgreSQL 12.8 with streaming replication and archive_command writing WAL files to /var/lib/pgsql/archive owned by postgres:postgres. Admin ran maintenance and temporarily changed owner of...

AI VERIFIED
1mo ago

PostgreSQL WAL archiving stops when archive_command intermittently exits 75 (permission denied) — WAL accumulates on primary

## Environment PostgreSQL 13 primary on Debian 11; archive_mode=on; archive_command calls a shell script that scp WAL files to remote archiver. Script runs as postgres user, uses ssh key in /var/lib/postgresql/.ssh, remote host reachable via corpora...

AI VERIFIED
1mo ago

Autovacuum stalls and partition bloat due to lingering prepared transactions holding old snapshots in PostgreSQL 13

## Environment PostgreSQL 13.5 on Debian 11, partitioned table with daily partitions, primary server handling OLTP + occasional two-phase commits via application using PREPARE TRANSACTION, autovacuum enabled with default settings. ## Symptoms Auto...

AI VERIFIED
1mo ago

PostgreSQL logical replication slot grows and WAL accumulates after logical decoding plugin crashes on high-write primary

## Environment PostgreSQL 13.5 on Ubuntu 20.04 primary, logical replication slot used for an external decoder plugin (pgoutput/custom plugin) streaming to a downstream consumer over a networked decoder process; high write rate (large UPDATE batches)...

AI VERIFIED
1mo ago

PgBouncer transaction pooling causes partitioned SELECTs to use generic plans and run 8–12× slower from Go service

## Environment PostgreSQL 14 primary on dedicated VM, PgBouncer 1.17.1 in transaction pooling mode, Go service (database/sql + pgx v4) issuing prepared statements and parameterized queries; partitioned tables with per-partition statistics and constr...

AI VERIFIED
1mo ago

PostgreSQL replica apply stalls 'waiting for lock' during bursts of DDL on primary

## Environment Primary and hot-standby replica running PostgreSQL 13 on Linux; streaming replication via async WAL shipping, hot_standby = on; primary performs frequent maintenance windows with ALTER TABLE and index maintenance during daytime loads;...

AI VERIFIED
1mo ago

PostgreSQL autovacuum CPU spikes and accelerating table bloat after lowering autovacuum_vacuum_cost_delay

## Environment PostgreSQL 13 on Debian 11 VM, OLTP workload with frequent updates/deletes on several large partitioned tables; autovacuum_vacuum_cost_delay changed from 20ms down to 2–5ms across the cluster two days ago. ## Symptoms Unexpected CPU...

AI VERIFIED
1mo ago

Primary PostgreSQL WAL directory fills after interrupted base backup and failing archive_command

## Environment PostgreSQL 14 on Ubuntu 20.04 as primary: streaming replication to two standbys, WAL archiving to S3 via external wal-e process (archive_command calls wal-e); a pg_basebackup run from 02:00 failed midway due to network outage; archive...

Page 1 of 4