[Tile-serving] [osm2pgsql-dev/osm2pgsql] Remove support for legacy middle database format (PR #2172)

Sarah Hoffmann notifications at github.com
Thu Apr 11 08:42:46 UTC 2024


@lonvia commented on this pull request.



> @@ -231,17 +231,7 @@ static void check_db_format(properties_t const &properties, options_t *options)
 {
     auto const format = properties.get_int("db_format", -1);
 
-    if (format == -1) {
-        // db_format not set, so this is a legacy import
-        return;
-    }
-
-    if (format == 0) {
-        throw std::runtime_error{
-            "This database is not updatable (db_format=0)."};
-    }

This part still looks useful?

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

Message ID: <osm2pgsql-dev/osm2pgsql/pull/2172/review/1993613387 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240411/aff9a943/attachment.htm>


More information about the Tile-serving mailing list