omniscale/imposm2

Lion postgis2 failure

127 opened this issue · 1 comments

127 commented

Failure began after Mountain Lion update.
Reinstalled everything even psycopg2. Postgres+Postgis2 are from kyngchaos.com.
Databases are not corrupted (I've checked).

Runnning:
imposm -d osm_moscow -U postgres -m imposm-mapping.py --read --overwrite-cache --write --optimize --deploy-production-tables ../maps/moscow.osm.pbf

Traceback (most recent call last):
File "/usr/local/bin/imposm", line 8, in
load_entry_point('imposm==2.4.1a-20120806', 'console_scripts', 'imposm')()
File "/Library/Python/2.7/site-packages/imposm-2.4.1a_20120806-py2.7-macosx-10.8-intel.egg/imposm/app.py", line 298, in main
options.table_prefix_production, options.table_prefix_backup)
File "/Library/Python/2.7/site-packages/imposm-2.4.1a_20120806-py2.7-macosx-10.8-intel.egg/imposm/db/postgis.py", line 291, in swap_tables
cur.execute('ALTER TABLE "%s" RENAME TO "%s"' % (table_name, rename_to))
psycopg2.ProgrammingError: permission denied: "pg_statistic" is a system catalog

olt commented

This is related to the PostgreSQL permissions and not directly an issue with Imposm.