Re: Slow table update - Mailing list pgsql-performance

From Tom Lane
Subject Re: Slow table update
Date
Msg-id 7032.1229952622@sss.pgh.pa.us
Whole thread Raw
In response to Re: Slow table update  (Laszlo Nagy <gandalf@shopzeus.com>)
Responses Re: Slow table update
Re: Slow table update
List pgsql-performance
Laszlo Nagy <gandalf@shopzeus.com> writes:
>> If the table has some sort of FK relations it might be being slowed by
>> the need to check a row meant to be deleted has any children.
>>
> If you look at my SQL, there is only one column to be updated. That
> column has no foreign key constraint.

That was not the question that was asked.

> My other idea was that there are so many indexes on this table, maybe
> the update is slow because of the indexes?

Updating indexes is certainly very far from being free.  How many is
"many"?

            regards, tom lane

pgsql-performance by date:

Previous
From: Laszlo Nagy
Date:
Subject: Re: Slow table update
Next
From: Laszlo Nagy
Date:
Subject: Re: [ADMIN] rebellious pg stats collector (reopened case)