Re: High COMMIT times - Mailing list pgsql-performance

From Laurenz Albe
Subject Re: High COMMIT times
Date
Msg-id 21dda7db608a2c454d25e799242948e655965df2.camel@cybertec.at
Whole thread Raw
In response to Re: High COMMIT times  (Craig Jackson <craig.jackson@broadcom.com>)
Responses Re: High COMMIT times
List pgsql-performance
On Thu, 2021-01-07 at 10:49 -0700, Craig Jackson wrote:
> We had a similar situation recently and saw high commit times that were caused
>  by having unindexed foreign key columns when deleting data with large tables involved.
> You might check to see if any new foreign key constraints have been added
>  recently or if any foreign key indexes may have inadvertently been removed.
>  Indexing the foreign keys resolved our issue. 

Were these deferred foreign key constraints?

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-performance by date:

Previous
From: Don Seiler
Date:
Subject: Re: High COMMIT times
Next
From: M Tarkeshwar Rao
Date:
Subject: RE: Autovacuum not functioning for large tables but it is working for few other small tables.