Re: [BUGS] Bug in the information_schema.referential_constraints view

2003-10-16 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane writes: >> No, because that would entail a genuine loss of capability: FK >> constraints couldn't be built using indexes that were made by CREATE >> UNIQUE INDEX rather than through the unique/pk constraint syntax. >> In particular this would

Re: [BUGS] Bug in the information_schema.referential_constraints view

2003-10-16 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane writes: >> Another problem is that the view will fail to list FK constraints at all >> if it cannot identify a matching unique constraint. > If you want information under those conditions, you're looking at the > wrong view. table_constraint

Re: [BUGS] Bug in the information_schema.referential_constraints view

2003-10-14 Thread Tom Lane
[EMAIL PROTECTED] writes: > The information_schema.referential_constraints retuns wrong data because > there is an incomplete joining condition in the WHERE clause. > [ these two conditions need to be added: ] > AND con.contype = 'f' > AND con.confrelid = pkc.conrelid I think t