Does case matter at all when you define or call a function in PostgreSQL?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Function names are identifiers (like table names, field names), the same rules about case sensitivy apply to all.
In short, identifiers are case insensitive, unless quoted.
More precisely, an unquoted identifier is internally converted to lowercase and then a case sentitive match is attempted.
This can make your life miserable (i.e hidden bugs, hours wasted), typically if you used quoted identifiers when defining the table or function.
That’s why you should always define your own naming convention and stick to it.
General advice: use always lowercase for identifiers, and be happy.