SELECT vrevisions.for_vrevisions('
    CREATE INDEX objects_p7_the_geom_domain_service_attrs_idx
        ON objects_p7
        USING gist (the_geom, domain_attrs, service_attrs);

    CREATE INDEX objects_p8_the_geom_domain_service_attrs_idx
        ON objects_p8
        USING gist (the_geom, domain_attrs, service_attrs);

    CREATE INDEX objects_p10_the_geom_domain_service_attrs_idx
        ON objects_p10
        USING gist (the_geom, domain_attrs, service_attrs);

    CREATE INDEX objects_p12_the_geom_domain_service_attrs_idx
        ON objects_p12
        USING gist (the_geom, domain_attrs, service_attrs);

    CREATE INDEX objects_p14_the_geom_domain_service_attrs_idx
        ON objects_p14
        USING gist (the_geom, domain_attrs, service_attrs);

    CREATE INDEX objects_p16_the_geom_domain_service_attrs_idx
        ON objects_p16
        USING gist (the_geom, domain_attrs, service_attrs);


    DROP INDEX IF EXISTS objects_p7_domain_attrs_gist;
    DROP INDEX IF EXISTS objects_p7_service_attrs_gist;
    DROP INDEX IF EXISTS objects_p7_the_geom_domain_attrs_index;

    DROP INDEX IF EXISTS objects_p8_domain_attrs_gist;
    DROP INDEX IF EXISTS objects_p8_service_attrs_gist;
    DROP INDEX IF EXISTS objects_p8_the_geom_domain_attrs_index;

    DROP INDEX IF EXISTS objects_p10_domain_attrs_gist;
    DROP INDEX IF EXISTS objects_p10_service_attrs_gist;
    DROP INDEX IF EXISTS objects_p10_the_geom_domain_attrs_index;

    DROP INDEX IF EXISTS objects_p12_domain_attrs_gist;
    DROP INDEX IF EXISTS objects_p12_service_attrs_gist;
    DROP INDEX IF EXISTS objects_p12_the_geom_domain_attrs_index;

    DROP INDEX IF EXISTS objects_p14_domain_attrs_gist;
    DROP INDEX IF EXISTS objects_p14_service_attrs_gist;
    DROP INDEX IF EXISTS objects_p14_the_geom_domain_attrs_index;

    DROP INDEX IF EXISTS objects_p16_domain_attrs_gist;
    DROP INDEX IF EXISTS objects_p16_service_attrs_gist;
    DROP INDEX IF EXISTS objects_p16_the_geom_domain_attrs_index;
');
