SELECT AddGeometryColumn('', 'geospatial_object', 'valid_geometry', 4326, 'GEOMETRY', 2 );

CREATE INDEX valid_geometry_idx ON  geospatial_object
  USING GIST ( valid_geometry GIST_GEOMETRY_OPS );

VACUUM ANALYZE geospatial_object( valid_geometry );

SELECT AddGeometryColumn('', 'geospatial_object', 'bounding_geometry', 4326, 'GEOMETRY', 2 );

CREATE INDEX  bounding_geometry_idx ON geospatial_object 
  USING GIST ( bounding_geometry GIST_GEOMETRY_OPS );

VACUUM ANALYZE geospatial_object( bounding_geometry );
