by e1g · 1y ago · 0 comments
Identifies as PG 16.5
No views/triggers/sequences
No foreign key constraints
No extensions
No NOTIFY ("ERROR: Function pg_notify not supported")
No nested transactions
No json(b)
Unsupported PG features are now online https://docs.aws.amazon.com/aurora-dsql/latest/userguide/wor...The quotas page is always the most interesting for any aws service.
10Mb transaction size and 5min transaction duration limits are interesting limitations that kill any "everything lives in the db" notions that one might have.
A fully transactional, scalable, distributed data store + queue + db + data stream with triggers is my endgame
Also, the 128mb limit on transaction temporary storage seems _very_ limiting for big ol' analytic queries
So it lacks Serializable isolation also, but I guess that's the secret to how it "offers the fastest distributed SQL reads and writes".
They'd save space by listing the supported features. It's not useless, but no existing application would run on it.
> Unsupported objects
> * Databases - Aurora DSQL supports only one database per cluster at this time.
> * Views
> * Temporary Tables
> * Triggers
> * Types
> * Tablespaces
> * UDFs / Functions other than functions using language = SQL
> Unsupported constraints
> Foreign keys
> Exclusion constraints
> Limitations
> ...
> A transaction cannot modify more than 10,000 rows
If you want a distributed PostgreSQL-lookalike, look at CockroachDB.
There is no 'standard' or 'spec' for what makes something Postgres wire compatible.
This feels like a strong overreach on the marketing front to leverage the love people have for Postgres to help boost what they've built. That is not to say there isn't hard and quality engineering in here, but slapping Postgres compatible on it feels lazy at best.
I actually think that they'd argue they intend to close the feature gap for full Postgres semantics over time. Indeed their marketing was a bit wishful, but on Bluesky, Marc Brooker (one of the developers on the project) said they reused the parser, planner, and optimizer from Postgres: https://bsky.app/profile/marcbrooker.bsky.social/post/3lcghj...
That means they actually have a very good shot at approaching reasonably full Postgres compatibility (at a SQL semantics level, not just at the wire protocol level) over time.
Wat?
As far as performance hits go, I guarantee I could find a half dozen other, larger problems that would have a bigger impact than disabling FK constraints.
It is of course possible to maintain referential integrity without them, but it requires much more diligence from devs, and I have yet to see it implemented well anywhere.
Until a single DB instance is serving well in excess of 100K QPS, I wouldn’t be concerned with the impact of FK constraints. Let RDBMS do what it’s good at – keeping your data safe.
I also now don’t get why they are emphasizing PostgreSQL here when they should be emphasizing CQL compatibility. Being compatible with Postgres wire protocol but not being relational is strange.