Re: Really strange foreign key constraint problem blocking delete - Mailing list pgsql-general

From Tom Lane
Subject Re: Really strange foreign key constraint problem blocking delete
Date
Msg-id 22260.1412689525@sss.pgh.pa.us
Whole thread Raw
In response to Re: Really strange foreign key constraint problem blocking delete  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> SET enable_indexscan=off;

> EXPLAIN ANALYZE DELETE  query

> SET enable_indexscan=on;

Note that you'd probably best do this in a fresh session, since the
supposed problem is being tickled by a foreign-key check.  I think
the plans for those get cached, so if you'd already tried the same
case earlier in the session, changing enable_indexscan wouldn't
change the plan used.

            regards, tom lane


pgsql-general by date:

Previous
From: Emanuel Calvo
Date:
Subject: Re: Processor usage/tuning question
Next
From: Marc Mamin
Date:
Subject: Re: faster way to calculate top "tags" for a "resource" based on a column