[postgis-devel] [PostGIS] #1162: chuck old junk about older versions of PostgreSQL
PostGIS
trac at osgeo.org
Wed Aug 17 21:10:09 PDT 2011
#1162: chuck old junk about older versions of PostgreSQL
---------------------+------------------------------------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: low | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
Given all the problems I am having, I have been forced to look at some of
the code we have.
We've got ifdefs that are just dead weight.
Case in point:
libpgcommon\pgsql_compat.h
We don't support anything lower than 8.4 so none of these conditions
really makes sense to have. The file should either be blanked out or be
gone.
Same goes for that PG_MODULE_MAGIC ifdef stuff. All versions we have now
require PG_MODULE_MAGIC so why do we bother with ifdef.
Same goes for postgis/lwgeom_accum.c
We've got code that has:
{{{
#if POSTGIS_PGSQL_VERSION < 84
result = makeMdArrayResult(state, 1, dims, lbs, mctx);
#else
result = makeMdArrayResult(state, 1, dims, lbs, mctx, false);
#endif
}}}
We don't support lower than 8.4 -- this should be just:
result = makeMdArrayResult(state, 1, dims, lbs, mctx, false);
I'd be willing to cleanup some of this if only I could compile again.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1162>
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