Re: Deleting 173000 records takes forever, blocks async queries for unrelated records - Mailing list pgsql-general

From Alexander Farber
Subject Re: Deleting 173000 records takes forever, blocks async queries for unrelated records
Date
Msg-id CAADeyWgcFvFLjrFGTcaNpW+vhHoCnguA_AyN1KtqRNMtD+mHyQ@mail.gmail.com
Whole thread Raw
In response to Re: Deleting 173000 records takes forever, blocks async queries for unrelated records  (Bèrto ëd Sèra <berto.d.sera@gmail.com>)
Responses Re: Deleting 173000 records takes forever, blocks async queries for unrelated records
Re: Deleting 173000 records takes forever, blocks async queries for unrelated records
List pgsql-general
Thanks, I will add an index(id, yw) and check.

The limit suggestion (yes, I already have a "vacuum"
cronjob to purge spam-users from drupal_users etc.)
doesn't work:

# delete from pref_users
where id not in (select distinct id from pref_money) limit 10;
ERROR:  syntax error at or near "limit"
LINE 2: ...ere id not in (select distinct id from pref_money) limit 10;

pgsql-general by date:

Previous
From: Pavan Deolasee
Date:
Subject: Re: Unusually high IO for autovacuum worker
Next
From: Vlad Bailescu
Date:
Subject: Re: Unusually high IO for autovacuum worker