Deleting orphaned records (not exists is very slow)

Поиск
Список
Период
Сортировка
От Tim Uckun
Тема Deleting orphaned records (not exists is very slow)
Дата
Msg-id AANLkTikEksN_eWqgS1+A9bzT6Duazy2KA1RztwGy1aid@mail.gmail.com
обсуждение исходный текст
Ответы Re: Deleting orphaned records (not exists is very slow)
Re: Deleting orphaned records (not exists is very slow)
Список 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 по дате отправления: