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.
This may be important in many cases: for example antifraud where you want to store also what was literally on the user’s clock (including timezone) and show it later in reports and what have you
However the Postgres (and others) work-around is simply to add a LocalTimeZone field where necessary.
Yeah, it's not as convenient, but it's a simple, effective, work-around.
For me, this isn't the killer-app distinction that suggests choosing MSSQL over Postgres.
It is not. A static offset is largely equivalent to a utc timestamp, and thus useless for any consideration of future event.
If you’re concerned about the limited historical and auditing value, it’s not exactly difficult to just tack that information on in a second column, but hanging the entire thing on that edge case is nonsense.
Every database engine has bizarre limitations that make no sense to me.
I’ve noticed that a few other disgruntled DBAs have started fixing these issues up by throwing tokens at Postgres.
For ops, though, it's a huge quality-of-life release. Built-in REPACK (CONCURRENTLY), turning on logical replication without a restart, and turning JIT off by default finally fix some of the biggest day-to-day operational headaches without needing external extensions or workarounds.
The JIT just hits so hard when it misfires, suddenly queries that took 100-200ms take 2 seconds because they hit the JIT threshold. And I've seen worse than that for more complex, but still usually fast queries.
Why didn’t postgres try plv8 for jit, instead? Only half-joking. It is designed for JIT way more than raw LLVM is.
Postgres is a surprising counter-example. Especially, because its overall quality seems rather high. Food for thought.
On the other hand, fsync-gate showed that well-meaning people can end up talking past each other.
Developing Postgres seems harder and harder by the day.
I know there's an argument for version pinning, but I don't want to have to handhold random docker containers. It should be automated IMO. It's become a deterrent for me wanting to deploy anything that depends on postgres.
sqlite3 has been backwards compatible since its release in 2004.
Postgres 18 will still get bug fixes and security updates for 4 more years.
At that point also go with "ext4" 'latest'. Bonus points for it silently going to ext5 in future.
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?