Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for using osm2pgsql-replication on render servers #638

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

tomhughes
Copy link
Member

No description provided.

@tomhughes tomhughes requested a review from pnorman November 17, 2023 22:59
Copy link
Collaborator

@pnorman pnorman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the --style addition and it looks good, although I can't test it.

Once this is done, let's stop one of the Australia machines, switch it to osm2pgsql, and restart it

osm2pgsql_arguments.append("--multi-geometry") if node[:tile][:database][:multi_geometry]
osm2pgsql_arguments.append("--hstore") if node[:tile][:database][:hstore]
osm2pgsql_arguments.append("--tag-transform-script=#{node[:tile][:database][:tag_transform_script]}") if node[:tile][:database][:tag_transform_script]

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the docs and openstreetmap/operations#987 (comment) we'll need to specify the --style file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The --style does seem to be in the properties table?

gis=# select * from osm2pgsql_properties;
       property        |                                value                                 
-----------------------+----------------------------------------------------------------------
 attributes            | false
 db_format             | 2
 flat_node_file        | /store/database/nodes
 import_timestamp      | 2023-10-02T00:00:02Z
 output                | pgsql
 prefix                | planet_osm
 replication_timestamp | 2023-10-02T00:00:02Z
 style                 | /srv/tile.openstreetmap.org/styles/default/openstreetmap-carto.style
 updatable             | true
 version               | 1.9.2
 current_timestamp     | 2023-11-22T14:51:59Z
(11 rows)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I guess it's fine then. I guess technically --style is present on the flex backend, although it means something different there.

@tomhughes tomhughes merged commit 44961f1 into openstreetmap:master Nov 22, 2023
96 of 98 checks passed
@tomhughes tomhughes deleted the osm2pgsql-replication branch March 17, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants