From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Arash Zaryoun <Arash_Zaryoun(at)CBC(dot)CA> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Weird Database Performance problem! |
Date: | 2004-08-13 15:20:04 |
Message-ID: | 411CDC24.4090706@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
Arash Zaryoun wrote:
> Hi,
>
> We are having a performance problem with our database. The problem
> exists when we include a constraint in GCTBALLOT. The constraint is as
> follows:
>
> alter table GCTBALLOT
> add constraint FK_GCTBALLOT_GCTWEBU foreign key (GCTWEBU_SRL)
> references GCTWEBU (SRL)
> on delete restrict on update restrict;
>
> The two tables that we insert into are the following:
> GCTBALLOT:
> gctwebu_srl | numeric(12,0) |
> GCTWEBU:
> srl | integer | not null default
Your types don't match. You have a numeric referencing an integer. PG
probably isn't using the index (it's smarter about this in 8.0 iirc).
HTH
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Hallgren | 2004-08-13 16:08:53 | Re: Trigger function returning null |
Previous Message | Daniel Schuchardt | 2004-08-13 15:02:00 | Postgres 8.0 -> BEGIN EXCEPTION END Syntax???? |
From | Date | Subject | |
---|---|---|---|
Next Message | Pierre-Frédéric Caillaud | 2004-08-13 16:06:59 | Re: fsync vs open_sync |
Previous Message | Bruno Wolff III | 2004-08-13 15:02:43 | Re: insert |