Skip to content

Commit 9b6e52e

Browse files
committed
enable lossy way-node index by default
Fixes #1687.
1 parent 9f1ea04 commit 9b6e52e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/options.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ class options_t
151151

152152
/**
153153
* How many bits should the node id be shifted for the way node index?
154-
* Use 0 to disable for backwards compatibility.
155-
* Currently the default is 0, making osm2pgsql backwards compatible to
156-
* earlier versions.
154+
* The result is a lossy index which is significantly smaller.
155+
* See https://osm2pgsql.org/doc/manual.html#bucket-index-for-slim-mode
156+
* Use 0 to use a classic loss-less GIN index.
157157
*/
158-
uint8_t way_node_index_id_shift = 0;
158+
uint8_t way_node_index_id_shift = 5;
159159

160160
/// add an additional hstore column with objects key/value pairs, and what type of hstore column
161161
hstore_column hstore_mode = hstore_column::none;

0 commit comments

Comments
 (0)