Re: Really slow UPDATE and DELETE

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Nicholas Piper <nick(at)nickpiper(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Really slow UPDATE and DELETE
Date: 2001-08-01 11:43:37
Message-ID: 200108011143.f71Bhbb01363@jupiter.us.greatbridge.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)Yahoo(dot)com #

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2001-08-01 11:46:09 Re: creating postgres tables using existing table defs
Previous Message Tony Grant 2001-08-01 07:39:58 Re: Connecting UltraDev to PostgreSQL