Re: slow delete

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Les <nagylzs(at)gmail(dot)com>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: slow delete
Date: 2023-08-15 20:37:39
Message-ID: 1174734.1692131859@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Les <nagylzs(at)gmail(dot)com> writes:
> It seems that two foreign key constraints use 10.395 seconds out of the
> total 11.24 seconds. But I don't see why it takes that much?

Probably because you don't have an index on the referencing column.
You can get away with that, if you don't care about the speed of
deletes from the PK table ...

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Les 2023-08-16 04:43:05 Re: slow delete
Previous Message Les 2023-08-15 20:23:26 slow delete