Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not super well versed in this domain, but I believe Postgres columns need to be wrapped in double quotes to respect case, or else they're all treated as lower, or something along those lines?


I seem to recall it's a SQL thing, not just PostgreSQL, although Oracle might not follow the spec. Definitely annoying.


Yes, SQL does specify case-folding unless quoted.

However, the SQL standard prescribes the case to be folded to uppercase, while PostgreSQL folds to lowercase.



That's largely only true for schema names and table names, not all identifiers.

The original root cause was having schemas backed by directories, and table definitions backed by .frm files. So on a case-insensitive filesystem like on Windows or MacOS, MySQL enables corresponding case-insensitivity logic for the affected types of identifiers.

For a deeper dive, see my post https://www.skeema.io/blog/2022/06/07/lower-case-table-names...




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: