I need to drop a unique constraint from a postgresql table, but I didn’t give it a name in the schema. Does anybody know, how to get the name of such a constraint, or how to drop it?
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.
That is something like (for single column constaint):
To get constaint name write (in psql):
or use
pg_constraintsystem catalog:Also you can get it from pgAdmin in objects tree.