Is it possible to use SQL or PL/pgsql to get the largest rectangle in the R-tree index (or other types of indices) of a table, so that it can be used as Bounding box for PostGIS table?
If possible, this would be much faster than going through all shapes and aggregating the bounding box (as suggested in the answers of Bounding box for PostGIS table).
(By comparison, shapefiles have bounding rectangles pre-computed. It would be nice if PostGIS can have this too in some form.)