[postgis-users] usage of AddGeometryColumn etc.

strk strk at keybit.net
Wed Jun 2 15:01:05 PDT 2004


FYI, Cleanup will currently (CVS) be done by:
	AddGeometryColumn()
	fix_geometry_columns()
	update_geometry_stats()

These functions will remove stale records.

--strk;

On Tue, Jun 01, 2004 at 12:05:56PM -0700, Wood Brent wrote:
> 
> > > I learn that DROP TABLE did not remove my geometry fully - I have to
> > > - either delete the entry in geometry_columns.
> > > - or execute a DropGeometryColumn(....) before DROPing the table.
> > > 
> > > a) It would be quite comfortable just DROPping tables ... Is it intended 
> > > or possible to improve the functions this way?
> > 
> > Not intended.
> > Postgresql guys does not approve triggers on system catalogues.
> > 
> > Maybe, the next AddGeoemtryColumn call could 'detect' those
> > spurious records in geometry_columns and get rid of them, or
> > just always replace records there.
> 
> I have a stored query called drop_geo_table which does a clean removal of the
> geometry_column entry & then the actual table. 
> 
> I think a similar built in function, such as DropGeometryTable() (which would
> call DropGeometryColmn(), then drop the table) or an argument to
> DropGeometryColumn() to drop the table after removing the record would be  a
> simple way to provide the functionality.
> 
> I'm less comfortable with a possible future call to AddGeometryTable being used
> to tidy things up. I'd sooner have a Drop... function which did a tidy drop.
> Not all Drops will necessarily be followed by an Add, so the spurious record
> would just hang around...
> 
> Brent Wood
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list