Skip to main content

Advanced

  1. Transaction Wraparound Problem
  2. Transaction ID Freezing
  3. Integration of Freezing Logic in VACUUM
  4. Aggressive Freezing vs. Lazy Freezing
  5. Multi-page Freezing and Freeze Map Maintenance

Low level working - https://erthalion.info/2019/12/06/postgresql-stay-curious

Locking Tuples internals - https://github.com/postgres/postgres/blob/master/src/backend/access/heap/README.tuplock

Youtube - Breaking PostgreSQL at Scale - Christophe Pettus

Transaction Wraparound Problem

Tools

Row Security Policies

CREATE TABLE accounts (manager text, company text, contact_email text);

ALTER TABLE accounts ENABLE ROW LEVEL SECURITY;

CREATE POLICY account_managers ON accounts TO managers
USING (manager = current_user);

PostgreSQL: Documentation: 17: 5.9. Row Security Policies