Is this a bug or am I doing something wrong?

From: Joost Kraaijeveld <J(dot)Kraaijeveld(at)Askesis(dot)nl>
To: Pgsql-General <pgsql-general(at)postgresql(dot)org>
Subject: Is this a bug or am I doing something wrong?
Date: 2005-09-09 07:09:11
Message-ID: 1126249751.8917.91.camel@Panoramix
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I am trying to create a foreign key, followed by creating anindex on the
foreign key, using PgAdmin III

The command that are generated :

ALTER TABLE prototype.orderlines ADD CONSTRAINT fk_orderlines_orders
FOREIGN KEY (orderobjectid) REFERENCES prototype.orders (objectid)
ON UPDATE RESTRICT ON DELETE RESTRICT;

CREATE INDEX fki_orderlines_orders ON
prototype.orderlines(orderobjectid);

Ont the second command PostgreSQL hangs forever. The
prototype.orderlines table is completely empty, the prototype.orders
table contains 1.000.000+ records.

Is this a known feature and am I doing something wrong or a bug?

--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
e-mail: J(dot)Kraaijeveld(at)Askesis(dot)nl
web: www.askesis.nl

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2005-09-09 08:22:13 Re: Support for Limit in Update, Insert...
Previous Message Tom Lane 2005-09-09 04:41:17 Re: SQL - planet redundant data