Re: Is this a bug or am I doing something wrong?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Joost Kraaijeveld <J(dot)Kraaijeveld(at)Askesis(dot)nl>
Cc: Pgsql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is this a bug or am I doing something wrong?
Date: 2005-09-09 12:45:01
Message-ID: 20050909124501.GA3508@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Sep 09, 2005 at 09:09:11AM +0200, Joost Kraaijeveld wrote:
> 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.

Does the second command hang consistently or have you only tried
it once? When it's (apparently) hung, what output do you get if
you run the following query in another session?

SELECT relation::regclass, * FROM pg_locks;

What version of PostgreSQL are you using?

--
Michael Fuhr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2005-09-09 12:53:54 Re: constraints on composite types
Previous Message Richard Huxton 2005-09-09 12:36:47 Re: Problem using NULLIF in a CASE expression