<p></p>
<p dir="auto">Alright, answering my own issue here, as it's a non-issue. Well, not an osm2pgsql issue at least.</p>
<blockquote>
<p dir="auto">Neon uses PgBouncer in transaction mode, which does not support Postgres features such as prepared statements or <a href="https://www.postgresql.org/docs/15/sql-listen.html" rel="nofollow">LISTEN</a>/<a href="https://www.postgresql.org/docs/15/sql-notify.html" rel="nofollow">NOTIFY</a>. For a complete list of limitations, refer to the "SQL feature map for pooling modes" section in the <a href="https://www.pgbouncer.org/features.html" rel="nofollow">pgbouncer.org Features</a> documentation.</p>
</blockquote>
<p dir="auto">Bottom line: <code class="notranslate">PREPARE</code> statements are not supported.</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/issues/924#issuecomment-1714086916">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353QL6FJNREBNEPV3LFLXZ4SZJANCNFSM4HBVYBHA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353XXZOB42VFOPMYIFVLXZ4SZJA5CNFSM4HBVYBHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOMYVOIBA.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/924/1714086916</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/924#issuecomment-1714086916",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/924#issuecomment-1714086916",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>