logoalt Hacker News

piskov • today at 2:20 AM • 2 replies • view on HN

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.


Replies

jiggawatts • today at 2:59 AM

Conversely, MS SQL doesn’t allow BRIN indexes for clustered row-store tables despite already having the code in the database engine for it!

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.

sarajevo • today at 2:57 AM

[dead]