Changes between Initial Version and Version 1 of Ticket #3892, comment 3
- Timestamp:
- 10/09/17 19:01:53 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3892, comment 3
initial v1 1 1 Ah that sorry I misunderstood the question. 2 2 3 It assumes the version you have in your database is what you installed. For most extensions that generally works because they rarely add new functions . For us not so much.3 It assumes the version you have in your database is what you installed. For most extensions that generally works because they rarely add new functions and their functions are all c-based (no sql). For us not so much. 4 4 5 5 People would have to know what version of postgis they installed and do something like … … 8 8 {{{ 9 9 CREATE EXTENSION postgis FROM unpackaged VERSION "2.4.0"; 10 ALTER EXTENSION postgis UPDATE; 10 11 }}} 11 12 12 13 So it would run the version 2.4.0 script instead of the default 2.5.0 script. 13 14 14 or you'd put in a guard in the unpackaged script to check (so you'll still need to i sntall one of our temporary helper functions) and error out.15 or you'd put in a guard in the unpackaged script to check (so you'll still need to install one of our temporary helper functions) and error out if what postgis_full_version tells you doesn't match with the version of the unpackaged script. 15 16 16 17