Why can't I use a capitalized table name in my posgres trigger function? #7095
-
Hi! I'm trying to set up my own public Everything works well when my table is called
But now I want to capitalize the profile table name. I rename the
And it stops working, I'm getting an error:
Do you know what am I doing wrong? It's like postgres doesn't see that I have capitalized the table name when I'm referring to it in my postgres function. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
In general with Postgres you should use lower case unless you have really good reason not to (Prisma, etc). |
Beta Was this translation helpful? Give feedback.
In general with Postgres you should use lower case unless you have really good reason not to (Prisma, etc).
If you use upper case for table or column names you HAVE to put double quotes around them "TableName" when you reference them, or the name you use gets converted to lowercase and won't match anything.