<p></p>
<h1><a href="https://github.com/openstreetmap/osm2pgsql/releases/tag/1.9.2">Release 1.9.2</a></h1><p style="font-size:small;-webkit-text-size-adjust:none;">Repository: <a href="https://github.com/openstreetmap/osm2pgsql">openstreetmap/osm2pgsql</a> · Tag: <a href="https://github.com/openstreetmap/osm2pgsql/tree/1.9.2">1.9.2</a> · Commit: <a href="https://github.com/openstreetmap/osm2pgsql/commit/415de9abdf2d003a5c0a0abe8e8fc139acacc2b5">415de9a</a> · Released by: <a href="https://github.com/lonvia">lonvia</a></p>

<p>This release fixes a bug introduced in 1.9.0 with two-stage processing that will lead to crashes. If you are using any 1.9.x version, please upgrade to 1.9.2.</p>
<p>In one case we had some performance problems updating an osm2pgsql database with 1.9.1 due to the PostgreSQL query planning choosing a bad plan. This release contains a workaround for that problem.</p>
<p>We also improved the (experimental) generalizer code a bit:</p>
<ul>
<li>More information is shown in log level 'info', including some timing information.</li>
<li>The Lua config <code>run_sql()</code> command now can have either a single SQL statement in the <code>sql</code> field (as before) or a list of SQL commands.</li>
<li>For convenience, the Lua config <code>run_sql()</code> command now has an optional <code>transaction</code> field which can be set to <code>true</code> to wrap the SQL commands in BEGIN/COMMIT.</li>
<li>The new <code>if_has_rows</code> fields on the <code>run_sql()</code> command can be set to string with an SQL query. If that field is set, the SQL statement(s) in the <code>sql</code> field is only run, if the SQL query returns at least one row.</li>
<li>Some performance improvements in low-level code in the generalizer.</li>
</ul>

—<p>This release has 2 assets:</p><ul><li>Source code (zip)</li><li>Source code (tar.gz)</li></ul><p>Visit the <a href="https://github.com/openstreetmap/osm2pgsql/releases/tag/1.9.2">release page</a> to download them.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are watching this repository.<br /><a href="https://github.com/openstreetmap/osm2pgsql/releases/tag/1.9.2">View it on GitHub</a> or <a href="https://github.com/openstreetmap/osm2pgsql/unsubscribe_via_email/AA6353RBHPFGYGPEE2OFZIDXYXA2PANCNFSM4AAJZLAQ">unsubscribe</a> from all notifications for this repository.<img src="https://github.com/notifications/beacon/AA6353VO4T6AAQCTJ52LAZDXYXA2PA5CNFSM6AAAAAA4KKQQQKWGG33NNVSW45C7OR4XAZNHKJSWYZLBONS2UY3PNVWWK3TUL5UWJTQHEQT5A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/releases/tag/1.9.2",
"url": "https://github.com/openstreetmap/osm2pgsql/releases/tag/1.9.2",
"name": "View Release"
},
"description": "View this Release on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>