3/FIN
3/FIN
Credit: Maxim Boguk, Postgres expert I've known for years, who now helps the @postgres_ai team excel with really large systems
2/
Credit: Maxim Boguk, Postgres expert I've known for years, who now helps the @postgres_ai team excel with really large systems
2/
1) Unused and redundant indexes → DROP INDEX CONCURRENTLY
2) Bloated indexes → REINDEX CONCURRENTLY (fully automated, with prior autovacuum tuning)
Launching very soon.
2/FIN
1) Unused and redundant indexes → DROP INDEX CONCURRENTLY
2) Bloated indexes → REINDEX CONCURRENTLY (fully automated, with prior autovacuum tuning)
Launching very soon.
2/FIN
1. Heavyweight locks = same as just "locks"
- contention → fix your SQL/schema
- held until COMMIT/ROLLBACK
2. Lightweight locks = LWLocks:
- contention on them → lack of resources, misconfiguration, suboptimal workload patterns, or Postgres internal limitations
1. Heavyweight locks = same as just "locks"
- contention → fix your SQL/schema
- held until COMMIT/ROLLBACK
2. Lightweight locks = LWLocks:
- contention on them → lack of resources, misconfiguration, suboptimal workload patterns, or Postgres internal limitations
Lock Manager is a core component of Postgres responsible for managing heavyweight locks.
10/
Lock Manager is a core component of Postgres responsible for managing heavyweight locks.
10/
- attempts to acquire locks form a queue
- there are many types of locks and sophisticated rules of conflicts between them (see www.postgresql.org/docs/current...)
9/
- attempts to acquire locks form a queue
- there are many types of locks and sophisticated rules of conflicts between them (see www.postgresql.org/docs/current...)
9/
- there is a deadlock detection mechanism – this is one of the jobs of Lock Manager
8/
- there is a deadlock detection mechanism – this is one of the jobs of Lock Manager
8/