Re: slow delete

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Les <nagylzs@gmail.com>
Cc: pgsql-performance@lists.postgresql.org
Date: 2023-08-15T20:37:39Z
Lists: pgsql-performance
Les <nagylzs@gmail.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