Ticket #877 (closed defect: fixed)
st_estimated_extent returns error on empty table
| Reported by: | martins | Owned by: | pramsey |
|---|---|---|---|
| Priority: | high | Milestone: | PostGIS 1.5.4 |
| Component: | postgis | Version: | 1.5.X |
| Keywords: | history | Cc: |
Description
To reproduce:
create table t(gid serial); select addgeometrycolumn('t','g',4326,'GEOMETRY',2); vacuum analyze t; select st_estimated_extent('t','g');
ERROR: LWGEOM_estimated_extent: couldn't locate table within current schema
This is especially annoying for us, because we must execute estimated_extent inside a transaction.
Could the function be changed to return NULL instead of an error in this case?
Change History
Note: See
TracTickets for help on using
tickets.
