From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Fabien COELHO <fabien(dot)coelho(at)ensmp(dot)fr> |
Cc: | Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, PostgreSQL Bugs List <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: issue about information_schema REFERENTIAL_CONSTRAINTS |
Date: | 2011-02-19 23:22:11 |
Message-ID: | 201102192322.p1JNMBx26553@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-docs |
Fabien COELHO wrote:
>
> > If you're going to use something which is PostgreSQL-specific, you may
> > as well write your own views or use the "native" tables and views
> > directly.
>
> I wish I could write portable code, if possible:-)
>
> I'm basically writing views on top of the information_schema under the
> assumption that what is expected to be a key is a key. The information
> schema is *useless* otherwise as wrong tuples are built on join, and
> derived information is not reliable.
>
> I guess I must the only actual user of the information_schema, and it will
> soon be back to zero user, which will be fine from the developers point of
> view.
Based on this report and later discussion, I have applied the attached
documentation patch to warn users about the Postgres behavior of
information_schema.referential_constraints.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
Attachment | Content-Type | Size |
---|---|---|
/rtmp/constraint.diff | text/x-diff | 891 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2011-02-20 00:11:01 | Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS |
Previous Message | Maxim Boguk | 2011-02-19 23:01:38 | Re: BUG #5798: Some weird error with pl/pgsql procedure |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2011-02-20 00:11:01 | Re: [BUGS] issue about information_schema REFERENTIAL_CONSTRAINTS |
Previous Message | Bruce Momjian | 2011-02-19 04:24:54 | Re: prefix search in tsearch |