Compare commits

..

2 Commits

Author SHA1 Message Date
Robin C. Ladiges
dc47871a5d warn about FLAT_NODES w/ UPDATES incompatibility (#282)
See https://github.com/Zverik/regional/issues/17
2022-05-25 22:21:56 +02:00
Robin C. Ladiges
5572c9722e create /data/database/postgres/ if missing (#273)
fix for issue #271
2022-05-02 00:43:17 +02:00
2 changed files with 4 additions and 0 deletions

View File

@@ -232,6 +232,8 @@ docker run \
import
```
Warning: enabling `FLAT_NOTES` together with `UPDATES` only works for entire planet imports (without a `.poly` file). Otherwise this will break the automatic update script. This is because trimming the differential updates to the specific regions currently isn't supported when using flat nodes.
### Benchmarks
You can find an example of the import performance to expect with this image on the [OpenStreetMap wiki](https://wiki.openstreetmap.org/wiki/Osm2pgsql/benchmarks#debian_9_.2F_openstreetmap-tile-server).

2
run.sh
View File

@@ -42,6 +42,8 @@ fi
if [ "$1" == "import" ]; then
# Ensure that database directory is in right state
mkdir -p /data/database/postgres/
chown renderer: /data/database/
chown -R postgres: /var/lib/postgresql /data/database/postgres/
if [ ! -f /data/database/postgres/PG_VERSION ]; then
sudo -u postgres /usr/lib/postgresql/14/bin/pg_ctl -D /data/database/postgres/ initdb -o "--locale C.UTF-8"