Spatial data warehousing in PostgreSQL