Re: Really slow UPDATE and DELETE

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: Really slow UPDATE and DELETE
Дата
Msg-id 200108011143.f71Bhbb01363@jupiter.us.greatbridge.com
обсуждение исходный текст
Ответ на Re: Really slow UPDATE and DELETE  (Nicholas Piper <nick@nickpiper.co.uk>)
Список pgsql-general
Nicholas Piper wrote:
>
> But no change! The simple UPDATE
>   UPDATE products SET title = 'I D THE FIRM' WHERE id = '6';
> still takes over 10 seconds.
>
> Why does this use FK columns at all ? I'm not changing the id, which
> is the pkey for this table.

    Either  there's  something  broken  or  it  should  do as you
    expected. There are special checks in the  FK  triggers  that
    suppress the scans if the referenced key doesn't change.

> I'm going to turn up debugging in case that will allow me to see all
> the work PG is putting into my title UPDATE.

    Are there any custom triggers or rules?


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Предыдущее
От: Tony Grant
Дата:
Сообщение: Re: Connecting UltraDev to PostgreSQL
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: creating postgres tables using existing table defs