rustprooflabs / pgosm-flex

PgOSM Flex provides high quality OpenStreetMap datasets in PostGIS (Postgres) using the osm2pgsql Flex output.
MIT License
101 stars 20 forks source link

Revert output string parsing to detect broken replication #395

Open rustprooflabs opened 4 months ago

rustprooflabs commented 4 months ago

Details

The approach I took in https://github.com/rustprooflabs/pgosm-flex/pull/392 to fix https://github.com/rustprooflabs/pgosm-flex/pull/391 was a result of getting an invalid returncode=0 when there was an error.

Hoping that https://github.com/osm2pgsql-dev/osm2pgsql/issues/2206 can lead to getting the returncode set properly. If it does, the line parsing for specific error text can be removed.

rustprooflabs commented 4 months ago

This one will be ready to work on after https://github.com/osmcode/pyosmium/issues/257 is closed.