Skip to content

Why can't I use a capitalized table name in my posgres trigger function? #7095

Discussion options

You must be logged in to vote

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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@lumenwrites
Comment options

@absolutegravitas
Comment options

@lixaotec
Comment options

@GaryAustin1
Comment options

Answer selected by lumenwrites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants