Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 48675B600A1 for ; Tue, 31 May 2011 21:55:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 94205-03 for ; Wed, 1 Jun 2011 00:55:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id 6E058B60027 for ; Tue, 31 May 2011 21:55:38 -0300 (ADT) Received: by pvg12 with SMTP id 12so2279241pvg.19 for ; Tue, 31 May 2011 17:55:38 -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=Fey+50fK2GmfIyBRhPTKJs2WQyTB8avvpOsiT90M6D0=; b=sc0lYcexRXx5mmi3ANMt33C8K/JT1kx3EEOdab+SvQDfXmyqG/iSoFBq6NMILsmLGv HUSlGpH9NUukWsTZXu5ovaBi+ECsC02mOdZCohwV2vpS0YC0Blt0ptsoGWwbusuftGig PjrbOhzk51+kDDE/hR54J8zmR5QVdup0VRVe8= 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=SbzKIo1UaWKlus9jzXNkGrz1m9LHcAdAN8OU0brw7+w7Mduw+JVirvMv0y7PXZt1f2 T+693UbHTH9BlCE8DXR1Z+a1yZV8vhEq72PX1rUxjTlcpUxqZRyes9itJz/geGLp/ovd w6twWywQvCxnMMZiK9pppjsJFR8VA/5NVqvbo= MIME-Version: 1.0 Received: by 10.68.63.69 with SMTP id e5mr2516261pbs.307.1306889738305; Tue, 31 May 2011 17:55:38 -0700 (PDT) Received: by 10.68.59.228 with HTTP; Tue, 31 May 2011 17:55:38 -0700 (PDT) In-Reply-To: References: <1306210464806-4420974.post@n5.nabble.com> <4DDB47BC.8030504@postnewspapers.com.au> <1306247697267-4422247.post@n5.nabble.com> <4DDC6109.7060708@postnewspapers.com.au> <1306341749094-4425890.post@n5.nabble.com> <4DDDBD96.4010809@postnewspapers.com.au> <1306413217406-4428435.post@n5.nabble.com> Date: Tue, 31 May 2011 20:55:38 -0400 Message-ID: Subject: Re: [PERFORM] Hash Anti Join performance degradation From: Robert Haas To: =?ISO-8859-1?Q?C=E9dric_Villemain?= Cc: panam , PostgreSQL-development 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/1666 X-Sequence-Number: 188700 On Tue, May 31, 2011 at 8:43 PM, C=E9dric Villemain wrote: > Yes, while here I noticed that the query was long to be killed. > I added a CHECK_FOR_INTERRUPT() in the for(;;) loop in nodeHashjoin.c. > It fixes the delay when trying to kill but I don't know about > performance impact this can have in this place of the code. Well, seems easy enough to find out: just test the query with and without your patch (and without casserts). If there's no measurable difference on this query, there probably won't be one anywhere. --=20 Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company