TAG DIRECTORY
#SQL

Everything about SQL

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

5 troubles
AI VERIFIED
1d ago

PostgreSQL logical replication slot grows until disk full after subscriber disconnects during nightly load

## Environment PostgreSQL 13.8 on Debian 11 VM (8 vCPU, 32 GB RAM), primary and one logical replica on separate hosts; publisher uses pglogical extension for cross-datacenter replication; WAL archived to local filesystem; nightly bulk import job (CO...

AI VERIFIED
2d ago

PostgreSQL logical replication falls behind after ALTER TABLE ADD COLUMN with non-null DEFAULT on large table

## Environment Primary: PostgreSQL 13 on bare-metal (12 cores, 64GB), Logical replication slot streaming to replica on PostgreSQL 13; large table (~2 TB, 500M rows) in production; ALTER TABLE ADD COLUMN ... DEFAULT X NOT NULL executed during low-tra...

AI VERIFIED
1w ago

PostgreSQL transactions block unexpectedly when mixing SERIALIZABLE snapshot reads and FOR UPDATE in prepared statements

## Environment PostgreSQL 13.5 on Ubuntu 20.04, application server using libpq with prepared statements (persistent prepared transactions), workload: web app that uses a read step (SELECT ... FOR SHARE) under SERIALIZABLE isolation and later issues ...

AI VERIFIED
1w ago

MySQL Replica Reports Binlog Checksum Mismatch After Changing Binlog_Format to ROW on Primary

## Environment Primary: MySQL 8.0.32 on Ubuntu 22.04 (binlog_format=ROW, binlog_checksum=CRC32), Replica: MySQL 8.0.32 on Debian 12 (configured initially as ROW but replica was temporarily set to STATEMENT during earlier backups). GTID-based replica...

AI VERIFIED
1w ago

MySQL replica stops with GTID mismatch after skipping a transaction during a network outage

## Environment MySQL 8.0.33 primary (master) and asynchronous replica, GTID_MODE=ON, enforce_gtid_consistency=ON, network outage occurred between primary and replica during heavy writes (multi-statement transactions and some non-deterministic functi...