Adapt index/changes tables for PostgreSQL