[Tile-serving] [openstreetmap/osm2pgsql] Add support for osm2pgsql_properties table to osm2pgsql-replication (PR #2029)
Sarah Hoffmann
notifications at github.com
Thu Aug 10 10:58:19 UTC 2023
osm2pgsql-replication will now use the property table if available to store the replication state. If it is not available, it keeps using its own table.
Also adds a new option `--start-at` which allows to set an explicit start date and ignore the information in the database or to change the rollback timespan used when guessing the date from the data in the database.
All functions are now properly tested through BDD tests. This required changing how osm2pgsql-replication is called. It is now loaded as a module instead of run as a separate process. This way it is possible to monkeypatch the replication functions and simulate a fake replication service for the tests.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/2029
-- Commit Summary --
* replication: remove code duplication
* osm2pgsql-replication: add support for new propoerties table
* osm2pgsql-replication: switch to proper use of exceptions
* run osm2pgsql-replication in BDD tests as a module
* add tests for osm2pgsql-replication
* adapt documentation of osm2pgsql-replication
* osm2pgsql-replication: reintroduce default default rollback
-- File Changes --
M docs/osm2pgsql-replication.1 (63)
M scripts/osm2pgsql-replication (529)
M tests/bdd/command-line/replication.feature (323)
A tests/bdd/command-line/replication_legacy.feature (242)
M tests/bdd/environment.py (23)
A tests/bdd/steps/replication_server_mock.py (53)
M tests/bdd/steps/steps_db.py (19)
M tests/bdd/steps/steps_execute.py (65)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/2029.patch
https://github.com/openstreetmap/osm2pgsql/pull/2029.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/2029
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/2029 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230810/1c7fce28/attachment.htm>
More information about the Tile-serving
mailing list