[fdo-internals] RE: Defects in PostGIS provider

Orest Halustchak orest.halustchak at autodesk.com
Fri Aug 24 08:27:17 EDT 2007

Yes, our position was that removing a class definition from a data store
should be prevented if there is still data of that class in the data
store. You have to delete the data first, then you can remove the class


-----Original Message-----
From: fdo-internals-bounces at lists.osgeo.org
[mailto:fdo-internals-bounces at lists.osgeo.org] On Behalf Of Mateusz
Sent: Friday, August 24, 2007 8:20 AM
To: FDO Internals Mail List
Subject: Re: [fdo-internals] RE: Defects in PostGIS provider

Haris Kurtagic wrote:
> Hm, If I am looking in database behavior it would be normal to delete
>  class/table if data is in the class/table.
> So in my opinion it is expected behavior to be able to delete class 
> regardless of data in it.


I'm not sure if that would be safe.
Considering that a feature class is not always mapped to single table,
but may be mapped to N physical tables, deleting data along with table
is potentially unsafe for data integrity.

Mateusz Loskot
fdo-internals mailing list
fdo-internals at lists.osgeo.org

More information about the fdo-internals mailing list