Changes between Initial Version and Version 1 of Ticket #3892, comment 3


Ignore:
Timestamp:
Oct 9, 2017, 7:01:53 PM (7 years ago)
Author:
robe

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3892, comment 3

    initial v1  
    11Ah that sorry I misunderstood the question.
    22
    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.
     3It 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.
    44
    55People would have to know what version of postgis they installed and do something like
     
    88{{{
    99CREATE EXTENSION postgis FROM unpackaged VERSION "2.4.0";
     10ALTER EXTENSION postgis UPDATE;
    1011}}}
    1112
    1213So it would run the version 2.4.0 script instead of the default 2.5.0 script.
    1314
    14 or you'd put in a guard in the unpackaged script to check (so you'll still need to isntall one of our temporary helper functions) and error out.
     15or 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.
    1516
    1617