Re: [ADMIN] removing duplicated constraints

2002-03-03 Thread Stephan Szabo
On Sun, 3 Mar 2002, Dan Langille wrote: > On 2 Mar 2002 at 23:42, Stephan Szabo wrote: > > > > > > I found the list of duplicate constraints by eyeballing the files I > > > created using the methods mentioned in previous post (mainly grep and > > > sort). Then I would search in the original dump

Re: [ADMIN] removing duplicated constraints

2002-03-03 Thread Dan Langille
On 2 Mar 2002 at 23:42, Stephan Szabo wrote: > > > I found the list of duplicate constraints by eyeballing the files I > > created using the methods mentioned in previous post (mainly grep and > > sort). Then I would search in the original dump file for the the CREATE > > CONSTRAINT statement.

Re: [ADMIN] removing duplicated constraints

2002-03-02 Thread Stephan Szabo
> I found the list of duplicate constraints by eyeballing the files I > created using the methods mentioned in previous post (mainly grep and > sort). Then I would search in the original dump file for the the CREATE > CONSTRAINT statement. Using the name found there > (RI_ConstraintTrigger_9981

Re: [ADMIN] removing duplicated constraints

2002-03-02 Thread Dan Langille
On 2 Mar 2002 at 11:09, Stephan Szabo wrote: > On Sat, 2 Mar 2002, Dan Langille wrote: > > > On 2 Mar 2002 at 10:19, Dan Langille wrote: > > > > > CREATE CONSTRAINT TRIGGER "" AFTER INSERT OR UPDATE ON "ports" > > > FROM "categories" NOT DEFERRABLE INITIALLY IMMEDIATE FOR EACH ROW > > > EXECUTE

Re: [ADMIN] removing duplicated constraints

2002-03-02 Thread Stephan Szabo
On Sat, 2 Mar 2002, Dan Langille wrote: > On 2 Mar 2002 at 10:19, Dan Langille wrote: > > > CREATE CONSTRAINT TRIGGER "" AFTER INSERT OR UPDATE ON "ports" > > FROM "categories" NOT DEFERRABLE INITIALLY IMMEDIATE FOR EACH ROW EXECUTE > > PROCEDURE "RI_FKey_check_ins" ('', 'ports', 'categories', >

Re: [ADMIN] removing duplicated constraints

2002-03-02 Thread Dan Langille
On 2 Mar 2002 at 10:19, Dan Langille wrote: > CREATE CONSTRAINT TRIGGER "" AFTER INSERT OR UPDATE ON "ports" > FROM "categories" NOT DEFERRABLE INITIALLY IMMEDIATE FOR EACH ROW EXECUTE > PROCEDURE "RI_FKey_check_ins" ('', 'ports', 'categories', > 'UNSPECIFIED', 'category_id', 'id'); > > CREATE

[ADMIN] removing duplicated constraints

2002-03-02 Thread Dan Langille
I was looking through my database schema and noticed that some foreign key declarations were duplicated. For example, I found this statement occurred twice within my DDL: alter table ports add foreign key (category_id) references categories (id) on update cascade on delete cascade;