Fix pgsql8 index extraction