[Tile-serving] [osm2pgsql-dev/osm2pgsql] github actions: fix setup of PostgreSQL (PR #2306)

Sarah Hoffmann notifications at github.com
Sun Feb 16 15:30:44 UTC 2025


Postgresql's apt repository has slightly changed the setup rules for its postgres packages in Thursday's release: normally the package would automatically set up and start a database, if not exists for the version installed. The new behaviour seems to be to only set up the database if there is no Postgresql database set up at all. This new behaviour makes perfect sense, but breaks CI runs which so far have kept the already installed postgres from the default version around. The version we actually want to test against is not installed anymore. The fix is to purge the default version instead of just removing it.

The PR also switches to the Debian-supplied way of setting up the PostgreSQL apt repository and removes some code for a clang version which has long fallen out of support.
You can view, comment on, or merge this pull request online at:

  https://github.com/osm2pgsql-dev/osm2pgsql/pull/2306

-- Commit Summary --

  * actions: purge existing postgres version
  * actions: remove outdated clang install

-- File Changes --

    M .github/actions/ubuntu-prerequisites/action.yml (7)

-- Patch Links --

https://github.com/osm2pgsql-dev/osm2pgsql/pull/2306.patch
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2306.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2306
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/pull/2306 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250216/20f355ee/attachment.htm>


More information about the Tile-serving mailing list