What Changes When You Upgrade from PostgreSQL 18 to 19 (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
My man, suppose you use an ORM. With your approach you must not forget to:
1. Lower the column
2. Lower the search term
… every single time you write a query.
And god forbid you fuck this up even once. This is not how reliable systems are done
Replies (2)
But also isn’t the correct answer to set your collation if you actually need it across the board
A collation can specialize how comparison and ordering work. In postgres this would also affect the pattern matching operators. I think there have been improvements here over the recent versions, where a "non-deterministic" collation (of which case-insensitivity is an example) is supported by pattern matchers when it wouldn't in older versions.
You can define a column with a custom collation to override the default for the column type. You can also define a domain type with a custom collation, and use that domain for column definitions, so you don't need to set the collation explicitly in every column definition. E.g. you could define a "citext" domain over "text" that adds the case-insensitivity but otherwise stores text.