[Tile-serving] [openstreetmap/osm2pgsql] If there's an init error, and no -d option specified, use the actual database name, rather than "None" (PR #1979)

Amanda notifications at github.com
Tue Jun 20 11:41:14 UTC 2023


If you do `osm2pgsql` without `--slim`, and `osm2pgsql-replication init` without a `-d` option, this patch will give you this error message:

<code>2023-06-20 13:36:08 [CRITICAL]: osm2pgsql middle table "planet_osm_ways" not found in database <b><u>"amanda"</u></b>. Database needs to be imported in --slim mode.</code>

Previously it gave you `None` as a database name:

<code>2023-06-20 13:36:08 [CRITICAL]: osm2pgsql middle table "planet_osm_ways" not found in database <b><u>"None"</u></b>. Database needs to be imported in --slim mode.</code>
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/1979

-- Commit Summary --

  * If there's an init error, and no -d option specified, use the actual database name, rather than "None"

-- File Changes --

    M scripts/osm2pgsql-replication (3)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1979.patch
https://github.com/openstreetmap/osm2pgsql/pull/1979.diff

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

Message ID: <openstreetmap/osm2pgsql/pull/1979 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230620/430e1e4c/attachment.htm>


More information about the Tile-serving mailing list