Skip to content
RED SAGSkills
hard20 pts · first answer countstransactionspostgresql

Locks held by nobody

A table stays locked and vacuum cannot clean anything, but no session in pg_stat_activity holds the lock. pg_prepared_xacts lists a transaction from 2 days ago. What is going on?

Choose one answer