<p></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lonvia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lonvia">@lonvia</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/joto/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/joto">@joto</a> ,</p>
<p dir="auto">After upgrading a second time from PostgreSQL 13 to 14, this time to the just released PostgreSQL 14.3 that contains a fix for a crucial blocking bug that I experienced with 14.2, I again experience a significant slow down in the processing of the DELETE statement as shown in the original post <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3876871" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/osm2pgsql/discussions/1642" data-hovercard-type="discussion" data-hovercard-url="/openstreetmap/osm2pgsql/discussions/1642/hovercard" href="https://github.com/openstreetmap/osm2pgsql/discussions/1642#discussion-3876871">#1642 (comment)</a>.</p>
<p dir="auto">As mentioned there, at that stage of the osm2pgsql processing, the only activity going on and initiated by osm2pgsql is these repititive DELETE statements with large IN clauses.</p>
<p dir="auto">As I have now experienced this issue a second time after upgrade from 13 to 14, I am strongly suspecting this is a performance regression issue in PostgreSQL 14.</p>
<p dir="auto">Does one of you have experienced similar issues yourself when upgrading from 13 to 14 and specifically at that stage of <strong>"There are X ways to reprocess..."</strong>?</p>
<p dir="auto">Or have you possibly heard of other people experiencing such issues after upgrade to PostgreSQL 14?</p>
<p dir="auto">I may try to put a question out on the PostGIS list to see if there any other people who experienced a performance regression on DELETE with large IN clauses after upgrade.</p>
<p dir="auto">By the way: Am I right these DELETE statements aren't PREPAREd? Could that possibly make a difference here?</p>

<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/discussions/1642#discussioncomment-2752173">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353WYASQIDVT4TJFWU63VKALQJANCNFSM5OMS32RQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353U23S4WBYF52QUC5SDVKALQJA5CNFSM5OMS32R2YY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAU75LI.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/repo-discussions/1642/comments/2752173</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/discussions/1642#discussioncomment-2752173",
"url": "https://github.com/openstreetmap/osm2pgsql/discussions/1642#discussioncomment-2752173",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>