From: Florian Weimer <fweimer@bfk.de>
To: kakarukeys <kakarukeys@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: adding foreign key constraint locks up table
Date: Tue, 28 Dec 2010 14:57:14 +0000
Message-ID: <82ei926j3p.fsf@mid.bfk.de> (raw)
In-Reply-To: <75218696-61be-4730-89f6-dd6058fa9eda@a28g2000prb.googlegroups.com>
References: <75218696-61be-4730-89f6-dd6058fa9eda@a28g2000prb.googlegroups.com>
> Whenever I try to create a new table "bbb" with foreign key pointing
> to "aaa". The operation locks, and reading "aaa" is not possible. The
> query also never seems to finish.
Do you mean that the ALTER query and subsequent queries are shown as
"waiting" in pg_stat_activity? In this case, I'm also wondering why
this is inecessary.
--
Florian Weimer <fweimer@bfk.de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: fweimer@bfk.de, kakarukeys@gmail.com
Subject: Re: adding foreign key constraint locks up table
In-Reply-To: <82ei926j3p.fsf@mid.bfk.de>
* 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