<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014/1/20 Amir Pourabdollah <span dir="ltr"><<a href="mailto:Amir.Pourabdollah@nottingham.ac.uk" target="_blank">Amir.Pourabdollah@nottingham.ac.uk</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi OSM Dev,<br>
<br>
I have an OSM database in PostGIS updated daily using OSM2PGSQL in slim<br>
mode. As you know the two tables planet_osm_nodes and planet_osm_ways are<br>
acting as temporary tables for the update process however I noticed that<br>
their size are incremented every day, thus slowing down the process. My<br>
solution so far has been doing a normal (non-slim mode) run of OSM2PGSQL<br>
every few months so it refreshes everything but this method is not<br>
preferred since the system is not functioning during the execution. Any<br>
idea on how to clean the database without a fresh OSM2PGSQL run?<br>
Thanks,<br>
Amir.<br></blockquote><div><br></div><div><br></div><div>These tables should get larger only because we have mode nodes and ways in OSM.</div><div>If it gets larger than that, make sure autovacuum is set to on. It is common practice to disable it during initial import, but should be set back to on after the initial import. </div>

</div><div><br></div>-- <br><div dir="ltr">Christian Quest - OpenStreetMap France</div>
</div></div>