Foreign Key Unique Constraint can be dropped - Mailing list pgsql-general

From Vlado Moravec
Subject Foreign Key Unique Constraint can be dropped
Date
Msg-id dafe6b860906080348h76e26329vfcb21cb6a87798c@mail.gmail.com
Whole thread Raw
Responses Re: Foreign Key Unique Constraint can be dropped
Re: Foreign Key Unique Constraint can be dropped
List pgsql-general
Hi,
from postgres docs: "foreign key must reference columns that either are a primary key or form a unique constraint". It does not allow creating foreign key constraint on non-unique column - an error is raised.
After playing with a new database I discovered that such a unique constraint can be droped after the foreign key constraint has been established. No warning, no error.
Is such a behaviour intended? I have found no references in the docs.
Thanks.
Vladimir

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: Function: Change data while walking through records
Next
From: Jasen Betts
Date:
Subject: Re: Schema, database, or tables in different folders?