Unconventional PostgreSQL Optimizations

61 points by Haki


schonfinkel

I know this is not the point of the article, but wouldn't the first issue go away if you moved plan_check to a domain type with citext? Would the indexes still work fine?

The second section about people abusing BTREE is on point tho, I lost count on how many times I see developers slapping multiple BTREE indexes in the same table and then wondering why everything becomes slow after a while. The virtual generated column trick is neat, one more reason to move to pg18 asap.