[postgis-devel] [PostGIS] #1083: Get rid of probe_geometry_columns (typmod support) and other obsolete (was: Get rid of probe_geometry_columns (typmod support))

PostGIS trac at osgeo.org
Sat Jul 2 00:02:00 PDT 2011


#1083: Get rid of probe_geometry_columns (typmod support) and other obsolete
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  robe         
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
Description changed by robe:

Old description:

> All this function did was to inspect the geometry_columns table and
> notify of stale entries and add missing entries.
>
> Now that geometry_columns will be a view in 2.0, this function is
> completely irrelevant.
>
> We hadn't marked it for deprecation, but it seems necessary to completely
> remove it or keep it and have it do nothing except to show a notice that
> says:
>
> "I do not do anything anymore, get with the program"
>
> I'd just assume drop the function entirely

New description:

 All this function did was to inspect the geometry_columns table and notify
 of stale entries and add missing entries.

 Now that geometry_columns will be a view in 2.0 and we also have typmod,
 this function and the rest of it's kind are completely irrelevant.

 We hadn't marked it for deprecation, but it seems necessary to completely
 remove it or keep it and have it do nothing except to show a notice that
 says:

 "I do not do anything anymore, get with the program"

 I'd just assume drop the function entirely.

 There are some dumb ones like rename_geometry_table_constraints()
 which I didn't even know existed but already does nothing but to tell you
 it does nothing.

 These I have decided to just add to legacy but strip them of their
 functionality so they just return a "I am obsolete message".  Just for
 those people with old code lying around that happen to call these things.

 Functions in this family so far are:

 rename_geometry_table_constraints();
 fix_geometry_columns();
 probe_geometry_columns

--

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1083#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list