Not sure if it helps, but here are my notes on the postgres configuration:
<br>
Tune Parameters for postgresql.conf
<br>

<br>
   - autovacuum = off
<br>
   - checkpoint_segments = 20
<br>
   - shared_buffers = 512MB # min 128kB
<br>
   - work_mem = 256MB # min 64kB
<br>
   - maintenance_work_mem = 512MB # min 1MB
<br>
   - synchronous_commit = off
<br>

<br>

<br>
Import example:
<br>

<br>
osm2pgsql.exe -v -c -d osm -U osm -W -H localhost -P 5432 -S default.style
<br>
-s -C 1600 --hstore --number-processes=4 -r pbf
<br>
..\..\data\us-midwest-northeast-pacific-south-west.osm.pbf
<br>

<br>
I also have a recent build of osm2psql which works. I have some mapnik
<br>
debugging to get through on mingw64, but I'll make it all available to our
<br>
build server here:
<br>

<br>
https://vanguard.houghtonassociates.com
<br>

<br>
The next build will have a package you can download under the Artifacts tab:
<br>

<br>
https://vanguard.houghtonassociates.com/browse/OSM-OSM2PSQL-27/artifact
<br>

<br>
Is there a specific time-frame you need this?
<br>

<br>

<br>
On Thu, Apr 11, 2013 at 2:18 AM, emirhartato <notifications@github.com>wrote:
<br>

<br>
> @apmon <https://github.com/apmon> can you explain how to set database
<br>
> parameters? Hopefully if that can help solve the problem. There were 6
<br>
> laptops tested and all of them have same error log. I also did a fresh
<br>
> install of PostgreSQL and PostGIS and create a new database, but still have
<br>
> the same error log.
<br>
>
<br>
> —
<br>
> Reply to this email directly or view it on GitHub<https://github.com/openstreetmap/osm2pgsql/issues/17#issuecomment-16218534>
<br>
> .
<br>
>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/osm2pgsql/issues/17#issuecomment-16243529'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/g8smGCFOcVLF28Q-xX3zcW-d33n4r8WrCNydIU1a3QHb59J4XCGJD3Vp-vhb4A2K.gif' height='1' width='1'></p>