PostgreSQL sequence inspector fix