Re: [GENERAL] Multiple foreign keys with the same name and information_schema

2011-04-14 Thread nothing
check out this link. I it will be what you are looking for http://errorbank.blogspot.com/2011/03/list-all-foreign-keys-references-for.html -- View this message in context: http://postgresql.1045698.n5.nabble.com/Multiple-foreign-keys-with-the-same-name-and-information-schema-tp1921901p4303625.ht

Re: [GENERAL] Multiple foreign keys with the same name and information_schema

2009-08-10 Thread Jonathan Tapicer
> > Actually, the information_schema supposes that constraint names are > unique within a *schema*, not within a *catalog* (a/k/a database). > Don't know if that distinction can help you or not.  You are correct > that Postgres is less rigid.  We do not consider that to be a deficiency > on the Pos

Re: [GENERAL] Multiple foreign keys with the same name and information_schema

2009-08-10 Thread Tom Lane
Jonathan Tapicer writes: > I was a able to do it using the pg_catalog tables, but I haven't found > a way to do it using information_schema since it relies on foreign > keys names being unique in the same catalog. Is this a known > limitation? Actually, the information_schema supposes that constr

[GENERAL] Multiple foreign keys with the same name and information_schema

2009-08-10 Thread Jonathan Tapicer
Hello everyone, I have a question regarding foreign keys and information_schema. Given the following valid schema: CREATE TABLE "Cat" ( "IdCat" serial NOT NULL, CONSTRAINT "PK_Cat" PRIMARY KEY ("IdCat") ); CREATE TABLE "Art" ( "IdArt" serial NOT NULL, "IdCat" integer NOT NULL, CONSTRAIN