Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id BF589B5DBE0 for ; Tue, 24 May 2011 16:14:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 49303-01 for ; Tue, 24 May 2011 19:14:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) by mail.postgresql.org (Postfix) with ESMTP id CB183B5DBE8 for ; Tue, 24 May 2011 16:14:23 -0300 (ADT) Received: by bwz15 with SMTP id 15so5894424bwz.19 for ; Tue, 24 May 2011 12:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=uTrL9DrMpuVgHwotDOmeAcpsZnkZMsuKg4cPIjQLAEw=; b=PZkg8od2h/Sd3e+4ydUSrNvwONjjQfrY1XJUTxsF4XmAS0kk8OvHUMaW5NOneksz8K aeI5I4cUA0xCGrmZkUvmRj6Wb148g/qIxA9zu1teKcKxoPt4jp2jsS7WRKdFo+Xt/OFW jbiZwaVjRW5Z6eMBqvz6uy3TMxTo45nKdJQNc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mBHIP/DMrYZGwIeNMYVLDX6I1RR/EZkZMyV7ykc70qKtAGz/bPPSYtqWcHp+w5kN4N A8zyvGwBnFLG+KwXQHBBC3UklKc/wi63rAJ5XF68hPhWLLfbQ4Yr6c1wozG7HUTfQ2X2 kUwh024vXw62WW1QyrlDV8CrjZi6gbeuytQZY= MIME-Version: 1.0 Received: by 10.204.82.1 with SMTP id z1mr3502604bkk.150.1306264463058; Tue, 24 May 2011 12:14:23 -0700 (PDT) Received: by 10.204.39.10 with HTTP; Tue, 24 May 2011 12:14:23 -0700 (PDT) In-Reply-To: References: <4DD10533.7050904@postnewspapers.com.au> Date: Tue, 24 May 2011 15:14:23 -0400 Message-ID: Subject: Re: Performance of NOT IN and <> with PG 9.0.4 From: Robert Haas To: Jasmin Dizdarevic Cc: Craig Ringer , pgsql-sql@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201105/152 X-Sequence-Number: 35436 On Tue, May 24, 2011 at 7:45 AM, Jasmin Dizdarevic wrote: > Hi, > found the problem. > 238 sec. with set enable_material =3D 'on' > 4(!) sec. with set enable_material =3D 'off' > > @Robert Haas: I thought it would be interesting to you, because > you've=A0committed=A0a patch regarding=A0materialization for 9.0. If you = like to > investigate this further, I can provide you more details. Well, it makes me glad I insisted we add enable_material. But I can't really tell from this output what is happening. Can we see the EXPLAIN ANALYZE output on 9.0, with and without enable_material? --=20 Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company