<p>No need for debug postgresql libraries, it is hanging on executing prepared statement pgsql_execPrepared .<br>
You can see the query with the debugger (do not know excact command for gdb) or add <code>add_definintions(-DDEBUG_PGSQL)</code> intop CMakeLists.txt an rebuild osm2pgsql - it will print all querys then.</p>
<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/500#issuecomment-156091737">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7kMLNHnyMX3H6tBwvrw49XLlazZRks5pFH2GgaJpZM4Gg9yF.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/issues/500#issuecomment-156091737"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>