<p></p>
<p dir="auto">There is no difference in the code whether you use a small or a large file. And osm2pgsql doesn't do anything with read-only transactions. So, I'd think this must be related to your PostgreSQL database in some way. What's probably casing this is a function we are creating for a database trigger.</p>
<p dir="auto">Did you set up PostgreSQL yourself or are you using the database service from Digital Ocean? Maybe they are doing some kind of auto-scaling and you have a connection going to a read-only replica or so. If you are using that, I suggest contacting their support.</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/2075#discussioncomment-6955863">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353UT7Z6JY6Z3Y3PIYHLXZR75VANCNFSM6AAAAAA4RPI4TU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353WR2FSHBAYILDWQDFTXZR75VA5CNFSM6AAAAAA4RPI4TWWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQANIRVO.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/2075/comments/6955863</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/2075#discussioncomment-6955863",
"url": "https://github.com/openstreetmap/osm2pgsql/discussions/2075#discussioncomment-6955863",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>