Deleting orphaned records (not exists is very slow) - Mailing list pgsql-general

From Tim Uckun
Subject Deleting orphaned records (not exists is very slow)
Date
Msg-id AANLkTikEksN_eWqgS1+A9bzT6Duazy2KA1RztwGy1aid@mail.gmail.com
Whole thread Raw
Responses Re: Deleting orphaned records (not exists is very slow)  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Re: Deleting orphaned records (not exists is very slow)  (Michael Glaesemann <grzm@seespotcode.net>)
List pgsql-general
What is the best strategy for deleting orphaned records from a large table.

The usual NOT IN is very slow so there must be a better way in
postgres for dealing with these.

I know it's best not to have the orphans in the first place but in
this case it happened and I need to clean up before I can put in some
referential integrity.

pgsql-general by date:

Previous
From: Devrim GÜNDÜZ
Date:
Subject: Re: pg_filedump binary for CentOS
Next
From: Devrim GÜNDÜZ
Date:
Subject: Re: pg_filedump binary for CentOS