[postgis-tickets] [PostGIS] #2535: Add safety logic to EXTENSION scripts to avoid misuse
PostGIS
trac at osgeo.org
Thu Nov 7 04:51:19 PST 2013
#2535: Add safety logic to EXTENSION scripts to avoid misuse
-------------------------+--------------------------------------------------
Reporter: strk | Owner: strk
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.2.0
Component: postgis | Version: trunk
Keywords: |
-------------------------+--------------------------------------------------
Changes (by robe):
* owner: pramsey => strk
Comment:
I don't think you can do that because then you can't upgrade it.
I think you just have to in the unpackaged script run the check script
version and return an error if it fails. Since the package scripts are
run in a transaction, I think the script will just bail out.
In theory this should be pretty much a non-issue if done right, because
since we add new functions on each minor, the unpackaged script for the
current version would fail anyway because it would try to add a function
not in current users install and then bail when it can't find it.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2535#comment:3>
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-tickets
mailing list