• 0 Posts
  • 2 Comments
Joined 1Y ago
cake
Cake day: Aug 16, 2023

help-circle
rss

Fair point. I always disliked the design because ORMs pretty much always use quotes, so an entity-first approach can create a lot of tables with capital letters if you’re not careful, which is then really annoying if you need to use raw SQL for anything.


Postgres normalizes table and field names to lowercase, unless you put them in quotes. It’s also case sensitive.

That means if you use quotes and capital letters when creating the table, then it’s impossible to refer to that table without using quotes.

It also means if you rename the table later to be all lowercase, then all your existing code will break.

Still a much better database than MySQL though.