[Tile-serving] [openstreetmap/osm2pgsql] Skip optimize (#895)
tb
notifications at github.com
Wed Feb 13 15:19:55 UTC 2019
thbeutin commented on this pull request.
> - pgsql_exec_simple(sql_conn, PGRES_COMMAND_OK, (fmt("ALTER TABLE %1%_tmp RENAME TO %1%") % name).str());
- fprintf(stderr, "Copying %s to cluster by geometry finished\n", name.c_str());
- fprintf(stderr, "Creating geometry index on %s\n", name.c_str());
-
- // Use fillfactor 100 for un-updatable imports
- pgsql_exec_simple(sql_conn, PGRES_COMMAND_OK, (fmt("CREATE INDEX ON %1% USING GIST (way) %2% %3%") % name %
- (slim && !drop_temp ? "" : "WITH (FILLFACTOR=100)") %
- (table_space_index ? "TABLESPACE " + table_space_index.get() : "")).str());
-
- /* slim mode needs this to be able to apply diffs */
- if (slim && !drop_temp)
- {
- fprintf(stderr, "Creating osm_id index on %s\n", name.c_str());
- pgsql_exec_simple(sql_conn, PGRES_COMMAND_OK, (fmt("CREATE INDEX ON %1% USING BTREE (osm_id) %2%") % name %
- (table_space_index ? "TABLESPACE " + table_space_index.get() : "")).str());
+ // We haven't removed invalid geometries as we did not perform a COPY.
But this can IMHO be forced on inital parameter checks the way that "--skip-(optimiz|index)ing" is only allowed when "--unlogged" is requested as well - after all, the user should know what he is doing by requesting it.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/895#discussion_r256442335
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20190213/e5168036/attachment.html>
More information about the Tile-serving
mailing list