Re: High COMMIT times

From: Craig Jackson <craig(dot)jackson(at)broadcom(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: Don Seiler <don(at)seiler(dot)us>, pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: High COMMIT times
Date: 2021-01-08 21:01:32
Message-ID: CA+R1LV5ydSc=S8P=nOoUM_ayLJR4+30+DeQwocatDGz2AenO4A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Yes, these were deferrable foreign key constraints.

On Fri, Jan 8, 2021 at 2:05 AM Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
wrote:

> 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
>
>

--
Craig

--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jeff Janes 2021-01-09 20:07:09 Re: High COMMIT times
Previous Message Don Seiler 2021-01-08 19:04:30 Re: High COMMIT times