From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Mike Baker <bakerlmike@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: ALTER TABLE hangs
Date: Mon, 29 Apr 2002 13:50:51 -0700 (PDT)
Message-ID: <20020429134741.S65313-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20020429204207.91047.qmail@web13802.mail.yahoo.com>
On Mon, 29 Apr 2002, Mike Baker wrote:
> Hi.
>
> I am in the process of doing some data migration. I
> have had no trouble moving my data, but am having
> problems creating a foreign key.
>
> When I run the following command, psql hangs (well,
> not totally sure if it is hung).
It probably isn't hung, but it's going to go through
every row of the table to make sure the constraint holds
successfully which is going to result in 380,000
queries again t_release_component. I haven't had time
recently to do any of the fk stuff I've been meaning to
do, but this is optimizable for most cases, but it hasn't
been done.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, bakerlmike@yahoo.com
Subject: Re: ALTER TABLE hangs
In-Reply-To: <20020429134741.S65313-100000@megazone23.bigpanda.com>
References: <20020429204207.91047.qmail@web13802.mail.yahoo.com> <20020429134741.S65313-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox