[OSM-dev] Osmosis Postgres Vacuum Stall Upload

Humphries, Grant HumphriG at TriMet.org
Sat Apr 4 01:02:38 UTC 2015

Hi all,

I have a script set up that loads OSM data into a postgres db via Osmosis (into the snapshot schema) each night.  The database that it being loaded has a lot of other data in various schemas and the osm data is loaded into its own schema.  However it seems that as a part of the loading process Osmosis vacuums the entire database and because the db is so large this is taking about 25 minutes, while the loading of the data itself takes less than 5 minutes.

(At least this is what I believe is happening, when I run osmosis under verbose this is the line it hangs up on for ~25 mins:
Apr 3, 2015 5:13:02 PM org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.CopyFilesetLoader run
FINE: Vacuuming database.)

Does anyone have advice as to how I could address this issue?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20150404/5978112c/attachment.html>

More information about the dev mailing list