Re: [GENERAL] 7.4Beta

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: [GENERAL] 7.4Beta
Дата
Msg-id 20030814221643.R6090-100000@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: [GENERAL] 7.4Beta  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Ответы Re: [GENERAL] 7.4Beta  (Gavin Sherry <swm@linuxworld.com.au>)
Re: [GENERAL] 7.4Beta  (Andreas Pflug <pgadmin@pse-consulting.de>)
ADD FOREIGN KEY (was Re: [GENERAL] 7.4Beta)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, 15 Aug 2003, Christopher Kings-Lynne wrote:

>
> > > I throw last nights backup at it. Data went in in about 1/2 an hour then
> the
> > > constraints went in and they took at age. about 2 hours.....
> > > Is there anyway to speed up the database constraint code? Because quite
> > > frankly at the current speed your probably better off without the
> > > constraints.... (Same problem with 7.3 come to think about it.)
>
> I can also attest to the horrendously long time it takes to restore the ADD
> FOREIGN KEY section...

That really needs to be rewritten to do a single check over the table
rather than running the constraint for every row.  I keep meaning to get
around to it and never actually do. :(  I'm not sure that in practice
you'll get a better plan at restore time depending on what the default
statistics give you.



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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: New function: epoch_to_timestamp...
Следующее
От: Philip Yarra
Дата:
Сообщение: Re: threading and FreeBSD