Re: Foreign key wierdness

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: Foreign key wierdness
Дата
Msg-id 03AF4E498C591348A42FC93DEA9661B8259B14@mail.vale-housing.co.uk
обсуждение исходный текст
Ответ на Foreign key wierdness  ("Dave Page" <dpage@vale-housing.co.uk>)
Список pgsql-hackers

> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.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.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: Foreign key wierdness
Следующее
От: Tom Lane
Дата:
Сообщение: Proposal: relaxing link between explicit JOINs and execution order