Reverse statement order for PostgreSQL integrity.