- Newest
- Most votes
- Most comments
The feature launched around 2026-09-29 — roughly a week before your crash. You're on day-one software, and that shapes the realistic answers to all three questions.
Q1: Not a documented known issue
The user guide covers foreign table syntax, permissions, and a handful of limitations (no case-differing column names, no planner statistics, metadata-only ALTERs), but nothing resembling this. At 1.0.0 with this little field exposure, the absence of a published issue tells you almost nothing — it's more likely nobody has reported it yet than that it's unknown-to-be-broken.
Your diagnosis reads correctly to me. "Pure virtual method called" plus std::terminate with a null exception_ptr, on a worker thread, is the signature of a virtual dispatch through an object already partway through destruction. Combined with the timeline — 4,576 files collapsed to 2, then a fresh snapshot ten minutes before — stale cached metadata pointing at objects torn down underneath a running scan is a coherent story. The announcement explicitly lists caching among the optimisations, which is where that state would live.
Q2: Containment isn't something you can configure
The instance restart isn't Aurora being conservative — it's standard PostgreSQL. A backend terminated by a signal leaves shared memory in an unknown state, so the postmaster kills every other backend and reinitialises. There's no setting that makes an abnormally-terminated backend survivable.
So containment has to happen before the abort. For an embedded C++ engine that means catching at the extension boundary and raising a PostgreSQL ERROR instead. The hard part is that std::terminate from a worker thread calls abort() directly — it can't be caught by normal exception handling, only by a terminate handler installed by the extension. That's a fix in aurora_analytics, not a knob for you.
Worth stating plainly in your report: embedding a multi-threaded engine inside a PostgreSQL backend means any unhandled worker-thread condition is a cluster-instance restart. That's structural, not incidental to this one bug, and it's the strongest argument for AWS to harden the boundary rather than just fix the specific race.
Q3: What to do now
Isolate analytics onto readers that serve nothing else. This is the highest-value mitigation and you can do it today. Your log shows "DB instance restarted" — the blast radius is one instance. Put analytics traffic on a dedicated reader behind a custom endpoint, and an abort costs you that instance's connections rather than application traffic.
Check whether aurora_analytics.enabled is instance-modifiable. You have it set in the cluster parameter group. If it can be overridden to 0 in a DB (instance-level) parameter group, disabling it on application-serving readers removes the attack surface from those instances entirely. Worth testing — it would make the isolation above enforceable rather than conventional.
Separate compaction from query windows. Glue managed compaction was enabled the same day, and the rewrite preceded the crash by 2h20m with a new snapshot 10 minutes before. Until this is understood, scheduling compaction into a window where analytics queries are quiesced is cheap insurance. If managed compaction can't be scheduled, consider running it manually.
Treat LIMIT on a foreign scan as suspect. Your early-termination hypothesis is plausible — a scan torn down before completion while worker threads are still live is a classic shape for this. Low cost to avoid pending a fix.
On reproduction
Your 23 attempts all began with a cold cache after the restart, which is precisely why none reproduced. The state you need isn't the query, it's the cache:
- Query the foreign table so metadata is cached against the current file layout
- Trigger compaction so those files are rewritten out from under it
- Append to create a new snapshot
- Query again on the same connection
That's the sequence your crash actually followed. Doing it deliberately on a throwaway cluster is the thing most likely to turn this into something AWS can fix quickly.
The important part here is that this isn't a normal PostgreSQL query error. The backend running the foreign-table query terminated with SIGABRT inside libduckdb.so, followed by terminating any other active server processes and Aurora Runtime process unexpectedly exited.
Given that, I don't think changing SQL permissions or retrying different query shapes will identify the root cause. The earlier enum_range and read-only transaction errors also look like normal PostgreSQL errors, and without more evidence I wouldn't connect them to the later crash.
Since the query doesn't reproduce after the restart, I'd preserve the exact timestamp, PostgreSQL log, RDS event, query text, Aurora version, aurora_analytics version, and the Iceberg snapshot and compaction history around the failure, then open an AWS Support case. AWS can correlate that with Aurora's internal crash telemetry and symbolicate the libduckdb.so stack, which isn't possible from the customer side.
I also wouldn't assume yet that avoiding LIMIT, tuning query_mem, or timing around compaction is the workaround. Those details are useful for reproducing the issue, but the stack trace alone doesn't show which one triggered the abort.
In the meantime, if the blast radius is the main concern, routing these foreign-table queries to a dedicated reader, potentially through a custom endpoint, could help isolate the analytics workload from the readers serving application traffic.
