I am surprised that "an already-open transaction that reads events for the first time after the swap can see an empty table" is considered acceptable.
I am not a Postgres user, and I appreciate that production databases are complicated beasts. Do people who use Postgres for production think this sounds fine?
Try storing datetimeoffset (ie datetime with time zone) in Postgres. It can’t.
Also suppose you have a lastname and want to have case-insensitive search over it (prefix and equal).
In MS SQL you just add an index. By the way, there is only one type to choose from (ignoring clustered or multicolumn) — it just works.
In Postgres you needed to jump through effing hoops just for that until like 1-2 years ago when they finally added case-insensitive collation with prefix search support.
—
How people ignored such basic stuff for any CRUD app for years is beyond me.
IIRC it depends upon transaction isolation level, and every mode has its trade-offs