Re: Delete performance again

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Віталій Тимчишин <tivv00(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Delete performance again
Date: 2008-10-02 12:14:20
Message-ID: 23315.1222949660@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"=?ISO-8859-5?B?svbi0Nv22SDC2Nzn2OjY3Q==?=" <tivv00(at)gmail(dot)com> writes:
> delete from company where id not in (select company_id from company_descr);
> I've tried to analyze command, but unlike to other RDBM I've used it did not
> include cascade deletes/checks into query plan. That is first problem.
> It was SLOW.

Usually the reason for that is having forgotten to make an index on the
referencing column(s) ?

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message paul 2008-10-02 15:14:34 Re: dedicated server & postgresql 8.1 conf tunning
Previous Message Віталій Тимчишин 2008-10-02 09:42:15 Delete performance again