<p></p>
<h2 dir="auto">What version of osm2pgsql are you using?</h2>
<p dir="auto">Latest master:</p>
<blockquote>
<p dir="auto">osm2pgsql --version<br>
2023-07-23 22:08:09 osm2pgsql version 1.8.1 (1.8.1-183-g5dba2405)<br>
Build: RelWithDebInfo<br>
Compiled using the following library versions:<br>
Libosmium 2.19.0<br>
Proj [API 6] 8.2.1<br>
Lua 5.1.4 (LuaJIT 2.1.0-beta3)</p>
</blockquote>
<h2 dir="auto">What operating system and PostgreSQL/PostGIS version are you using?</h2>
<p dir="auto">Postgres version: 15.3 (Ubuntu 15.3-1.pgdg22.04+1)<br>
PostGIS version: POSTGIS="3.3.3 2355e8e" [EXTENSION] PGSQL="150" GEOS="3.10.2-CAPI-1.16.0" PROJ="8.2.1" LIBXML="2.9.13" LIBJSON="0.15" LIBPROTOBUF="1.3.3" WAGYU="0.5.0 (Internal)"</p>
<h2 dir="auto">Tell us something about your system</h2>
<h2 dir="auto">What did you do exactly?</h2>
<p dir="auto">With latest master, I imported once with the <strong>--create</strong> option, then a second them, again with <strong>--create</strong>. This failed with a warning of a pre-existing 'osm2pgsql_properties' relation. Note that the second run used <em>modified command line options</em> for testing, compared to the first run.</p>
<blockquote>
<p dir="auto">osm2pgsql -O flex -d gis -U osm --create -W --number-processes 32 -P 5433 -S 'osm2pgsql/flex-config/openstreetmap-carto.lua' 'data/planet-230717.osm.pbf'<br>
2023-07-23 20:23:52 osm2pgsql version 1.8.1 (1.8.1-183-g5dba2405)<br>
Password:<br>
2023-07-23 20:24:00 Database version: 15.3 (Ubuntu 15.3-1.pgdg22.04+1)<br>
2023-07-23 20:24:00 PostGIS version: 3.3<br>
2023-07-23 20:24:00 Storing properties to table 'osm2pgsql_properties'.<br>
2023-07-23 20:24:00 ERROR: Database error: ERROR: relation "osm2pgsql_properties" already exists</p>
</blockquote>
<h2 dir="auto">What did you expect to happen?</h2>
<p dir="auto">I would expect an existing 'osm2pgsql_properties' relation to be always dropped if I run with <strong>--create</strong>, or at least not block running with <strong>--create</strong> a second time and possibly update the existing values in the table.</p>
<h2 dir="auto">What did happen instead?</h2>
<p dir="auto">osm2pgsql blocks running with the --create option a second time if there is a pre-existing 'osm2pgsql_properties' relation.</p>
<h2 dir="auto">What did you do to try analyzing the problem?</h2>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/2010">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353V5UT2T3RZV52O7JOLXRWBIXANCNFSM6AAAAAA2UXCUBA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353UTDUOWM4QTSKJCNATXRWBIXA5CNFSM6AAAAAA2UXCUBCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHGYUMMEI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/osm2pgsql/issues/2010</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/2010",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/2010",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>