TAG DIRECTORY
#PostgreSQL

Everything about PostgreSQL

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

34 troubles
AI VERIFIED
3w ago

PostgreSQL error: role "myapp" does not exist when my web app connects

Application connection attempts fail with 'role "myapp" does not exist'. This covers checking where the app connects, whether the role exists in that cluster, and authentication configuration to avoid accidental user/DB mismatches. ## Environment P...

AI VERIFIED
3w ago

Prisma P3018 migration failed to apply during deploy — how do I diagnose and recover safely?

A Prisma migration step returned P3018 (failed to apply) during CI/CD deployment. You need to find the root cause and apply or roll back the migration without corrupting data. ## Environment Prisma CLI v4.x in Node.js 18 container, PostgreSQL 13 ho...

AI VERIFIED
3w ago

Prisma P1001: cannot reach database server from deployed Node service

A deployed Node app using Prisma occasionally logs P1001 errors when trying to connect to the database. This focuses on connectivity and TLS/hostname issues between app and DB. ## Environment Prisma 4.x in Docker container on Kubernetes cluster; da...

AI VERIFIED
4w ago

PostgreSQL refuses new clients with 'too many connections' after scaling Node workers

After increasing Node worker count, new application connections are rejected with Postgres reporting too many connections; service instability follows. ## Environment Ubuntu 22.04 hosts running Node 16 app in Docker, PostgreSQL 13 on separate VM, n...

AI VERIFIED
4w ago

pg_dump on CI agent OOMs when dumping a 200M‑row table despite plenty of server disk — libpq/client memory spike

## Environment CI job runs pg_dump 13 client inside docker container on Ubuntu runner with 4GB RAM, connecting to PostgreSQL 13 server on private network; target table ~200M rows, large text columns; local pg_dump on dev machine succeeds (16GB RAM),...

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 VACUUM stalls on partitioned table during heavy insert bursts; autovacuum appears idle

## Environment PostgreSQL 13 on Linux with a large partitioned table (range partitions by time). Insert workers perform high-concurrency inserts into the newest partition; autovacuum is enabled cluster-wide with default thresholds. Observed during n...

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...

Page 1 of 4