pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sue Fitt <sue@inf.ed.ac.uk>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: setting up foreign keys
Date: Fri, 11 Aug 2006 12:48:01 +0100
Message-ID: <44DC6E71.3030401@inf.ed.ac.uk> (raw)
In-Reply-To: <20060810113004.K52796@megazone.bigpanda.com>
References: <44DAE8CF.1030107@inf.ed.ac.uk>
	<20060810113004.K52796@megazone.bigpanda.com>

Solved, it turned out to be a lock caused by a gui connected to the 
database, even though the gui wasn't actually doing anything at the time...

Sue

Stephan Szabo wrote:
> On Thu, 10 Aug 2006, Sue Fitt wrote:
>
>   
>> Hi all,
>>
>> This is my first post to the performance list, I hope someone can help me.
>>
>> I'm setting up a table with 2 columns, both of which reference a column
>> in another table:
>>
>> CREATE TABLE headwords_core_lexemes (
>> core_id int REFERENCES headwords_core(core_id),
>> lexeme_id int REFERENCES headwords_core(core_id),
>> );
>>
>> Trouble is, it's taken 18 hours and counting!
>>     
>
> What precisely is taking the time, the create table itself? The only thing
> that the create should be waiting for as far as I know is a lock on
> headwords_core to add the triggers.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match
>
>   



view thread (12+ messages)  latest in thread

Message-ID: <44DC6E71.3030401@inf.ed.ac.uk>
Permalink:  ../44DC6E71.3030401@inf.ed.ac.uk/
Also on:    postgresql.org/message-id/44DC6E71.3030401@inf.ed.ac.uk

 · 

reply

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: sue@inf.ed.ac.uk, sszabo@megazone.bigpanda.com
  Subject: Re: setting up foreign keys
  In-Reply-To: <44DC6E71.3030401@inf.ed.ac.uk>

* 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