PostGIS
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Release Process

Date: 2022-09-25

Versioning Scheme

The public website describes PostGIS releases with semantic MAJOR.MINOR.PATCH version numbers. Major releases may include backward incompatibilities and require special upgrade procedures; minor releases may add functionality while preserving existing functionality; patch releases fix defects without adding, removing, or changing functionality.

PostGIS

PostGIS release version is composed by POSTGIS_MAJOR_VERSION, POSTGIS_MINOR_VERSION and POSTGIS_MICRO_VERSION components, all set in Version.config.

By default only [POSTGIS_MICRO_VERSION] increments between releases. Starting at PostGIS 2.1 in development POSTGIS_MICRO_VERSION should have a “dev” string at the end

[POSTGIS_MINOR_VERSION] is incremented (and MICRO set to 0) when minor additions have been introduced (one or two functions can be considered micro additions)

[POSTGIS_MAJOR_VERSION] is incremented (and MICRO and MINOR set to 0) when a dump/reload of existing spatial databases is REQUIRED for things to work or rather HIGHLY RECOMMENDED to get new functionalities.

All POSTGIS_MICRO_VERSION that are in branch or trunk should end in dev. So for example if you just release 2.1.1, then the 2.1 branch should have POSTGIS_MICRO_VERSION set to 2dev so that the full version is 2.1.2dev.

Liblwgeom

Liblwgeom versioning is composed by by LIBLWGEOM_IFACE_CUR, LIBLWGEOM_IFACE_AGE and LIBLWGEOM_IFACE_REV; all set and documented in Version.config.

The liblwgeom versioning represents compatibility of the library within a PostGIS minor version.

PostGIS normally aims to release a new minor version about once a year shortly before the annual PostgreSQL major release. See the PostgreSQL roadmap for its current schedule. Patch releases happen as needed when the number or severity of fixes calls for them.

The project generally supports each PostGIS minor release for two to four years after initial release and at least until the lowest PostgreSQL version supported by that PostGIS minor release reaches end of life. Check the PostgreSQL EOL policy and the PostGIS Versioning & EOL page before changing branch or announcement wording.

Requirements

In order to build a release, you will need to build PostGIS and the documentation – that means having the required software:

  • For PostGIS:
    • PostgreSQL
    • GEOS
    • Proj
    • SFCGAL
    • protobuf-c
    • GDAL (for raster)
    • json-c (for GeoJSON load support)
    • git2cl (for ChangeLog generation)
  • For the docs:
    • xsltproc
    • DocBook XSL scripts
    • Python 3 (required to run the example tester and generate the visual examples that HTML and PDF embed; the SVGs come from running the staged PostGIS build against a live PostgreSQL server)
    • rsvg-convert (preferred) or GraphicsMagick/ImageMagick (to rasterize the generated SVGs for PDF)
    • DbLatex (for PDF)

Release Procedure

  1. Check access.
  1. Check greenlight.
  1. Reconcile done & planned.
  • Edit NEWS: set release date and check all notable changes have been reported (extract from git log and trac tickets for milestone).
  • Create milestone for next version in Trac.
  • Push all the open tickets in Trac milestone to future and Fund Me milestones.
  1. Update code.
  • Edit README.postgis and set release date and version.

  • Add release notes in doc/release_notes.xml

  • Update Version.config to drop the “dev” suffix

  • Add the “dev” suffixed version in extensions/upgradeable_versions.mk and ensure all the previous released minor versions are listed in it

  • When out of beta/rc, get rid of all the beta/rc upgrade targets in upgradeable_versions.mk

  • Commit all changes

  • If this is a minor or major release (no branch exists): $ rel=x.x # replace x.x with minor version (e.g. 2.3) $ git checkout master; git checkout -b “stable-$rel”; git push -u osgeo “stable-$rel”

    Go to: https://debbie.postgis.net and copy last branch version and make new job a) Replace PostGIS_* string params with new version b) Replace repository url with new branch repo url c) Update the PostGIS_trunk by updating the PostGIS_* string params

    Update the compatibility browser data for the released series and development branch. Refresh the cache when a tracked dependency releases or reaches end of life, then validate the generated payload before publication.

  1. Publish release
  1. Spread the word
  1. Start new development cycle
  • Update Trac and make old Milestone as completed
  • Push the revision number forward (see Versioning Scheme)
  • Remove the “dev” suffixed version from extensions/upgradeable_versions.mk