Adding gid_rowindex, temp table and EXPLAIN PLAN support