I'll assume we are speaking of the full-extent ...
you can then use:
SELECT Min(MbrMinX(geometry)), Min(MbrMinY(geometry)),
Max(MbrMaxX(geometry)), Max(MbrMaxY(geometry))
FROM my_table;
this will require a quite negligible time if MY_TABLE
contains some thousand rows; if MY_TABLE contains some
million rows it will require several seconds.
If your Geometry column is supported by an R*tree spatial index
you can directly query the index, as in:
SELECT Min(xmin), Min(ymin), Max(xmax), Max(ymax)
FROM idx_my_table_geometry;
timing is (more or less) quite the same as above.
bye, Sandro