Re: Foreign key wierdness

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Didier Moens" <Didier(dot)Moens(at)dmb001(dot)rug(dot)ac(dot)be>
Cc: "PostgreSQL Hackers Mailing List" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Foreign key wierdness
Date: 2003-01-22 22:04:05
Message-ID: 03AF4E498C591348A42FC93DEA9661B8259B14@mail.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: 22 January 2003 20:30
> To: Didier Moens
> Cc: Dave Page; PostgreSQL Hackers Mailing List
> Subject: Re: [HACKERS] Foreign key wierdness
>
>
> > With two tables each containing some 20.000 entries, the fk creation
> > time between both of them increases from ~ 1.8 secs to ~ 221 secs.
>
> Seems odd that the cost would get *that* much worse. Maybe
> we need to look at whether the FK checking queries need to
> include explicit casts ...

Does seem like it needs some work, though it could be argued that the
columns should be of the same type (which they were of course until I
got clever and increased the size of autonumber column that pgAdmin
creates!).

Anyway, as always, many thanks for your help and putting our testing
back on a sensible course after much head scratching!! :-)

Regards, Dave.

Browse pgsql-hackers by date

  From Date Subject
Next Message Didier Moens 2003-01-22 22:27:35 Re: Foreign key wierdness
Previous Message Dave Page 2003-01-22 21:58:21 Re: Foreign key wierdness