Re: [PERFORM] probelm with alter table add constraint......

2009-04-22 Thread roopabenzer
Tom Lane-2 wrote: > > "Albe Laurenz" writes: >> roopasatish wrote: >>> I have an issue with the add foreign key constraint which >>> goes for waiting and locks other queries as well. >>> >>> ALTER TABLE ONLY holding_positions ADD CONSTRAINT >>> holding_positions_stock_id_fkey FOREIGN KEY (s

Re: [PERFORM] probelm with alter table add constraint......

2009-04-06 Thread Tom Lane
"Albe Laurenz" writes: > roopasatish wrote: >> I have an issue with the add foreign key constraint which >> goes for waiting and locks other queries as well. >> >> ALTER TABLE ONLY holding_positions ADD CONSTRAINT >> holding_positions_stock_id_fkey FOREIGN KEY (stock_id) >> REFERENCES stocks (s

Re: [PERFORM] probelm with alter table add constraint......

2009-04-06 Thread Albe Laurenz
roopasatish wrote: > I have an issue with the add foreign key constraint which > goes for waiting and locks other queries as well. > > ALTER TABLE ONLY holding_positions ADD CONSTRAINT > holding_positions_stock_id_fkey FOREIGN KEY (stock_id) > REFERENCES stocks (stock_id) MATCH SIMPLE >

Re: [PERFORM] probelm with alter table add constraint......

2009-04-06 Thread Robert Haas
On Mon, Apr 6, 2009 at 2:54 AM, roopasatish wrote: > > I have an issue with the add foreign key constraint which goes for waiting > and locks other queries as well. > > ALTER TABLE ONLY holding_positions ADD CONSTRAINT > holding_positions_stock_id_fkey FOREIGN KEY (stock_id) >   REFERENCES sto

[PERFORM] probelm with alter table add constraint......

2009-04-06 Thread roopasatish
I have an issue with the add foreign key constraint which goes for waiting and locks other queries as well. ALTER TABLE ONLY holding_positions ADD CONSTRAINT holding_positions_stock_id_fkey FOREIGN KEY (stock_id) REFERENCES stocks (stock_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE N