Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 46F901336FA7 for ; Fri, 18 Feb 2011 09:26:22 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 02848-05 for ; Fri, 18 Feb 2011 13:26:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from oproxy3-pub.bluehost.com (oproxy3-pub.bluehost.com [69.89.21.8]) by mail.postgresql.org (Postfix) with SMTP id 56B6F1337BD3 for ; Fri, 18 Feb 2011 09:26:13 -0400 (AST) Received: (qmail 32192 invoked by uid 0); 18 Feb 2011 13:26:11 -0000 Received: from unknown (HELO host159.hostmonster.com) (74.220.207.159) by oproxy3.bluehost.com with SMTP; 18 Feb 2011 13:26:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=timbira.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:X-Identified-User; b=HsocCeeNJ0oDJSwkPtMouY412lrCor9mMhqjasZM+cYwbnxlL0RVWYiIaRMh8LKFBTiOEJVbV1/hm/XgnpiUBxGNCmqUbl3wlvpBGSwNK4v0d5Ynxski7J7eImIOeDkI; Received: from 200-140-104-145.pmjce203.dial.brasiltelecom.net.br ([200.140.104.145]) by host159.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1PqQLa-0000Pk-5F; Fri, 18 Feb 2011 06:26:11 -0700 Message-ID: <4D5E7369.4050404@timbira.com> Date: Fri, 18 Feb 2011 10:26:01 -0300 From: Euler Taveira de Oliveira User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101227 Icedove/3.0.11 MIME-Version: 1.0 To: Jan-Peter Seifert CC: pgsql-bugs@postgresql.org Subject: Re: BUG #5878: BTREE_BUILD_STATS causes 'make check' to fail References: <201102101256.p1ACurU7089757@wwwmaster.postgresql.org> In-Reply-To: <201102101256.p1ACurU7089757@wwwmaster.postgresql.org> Content-Type: multipart/mixed; boundary="------------050803010000000203090100" X-Identified-User: {1651:host159.hostmonster.com:timbirac:timbira.com} {sentby:smtp auth 200.140.104.145 authed with euler@timbira.com} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201102/161 X-Sequence-Number: 29433 This is a multi-part message in MIME format. --------------050803010000000203090100 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Em 10-02-2011 09:56, Jan-Peter Seifert escreveu: > However, as long as I have BTREE_BUILD_STATS defined, 'make check' fails on > me with the following message: > It is a bug. The attached patch fixes it. I didn't investigate when it was broken; maybe one or two releases ago when someone reorganizes the header files. Those debug macros deserve a refactor but nobody bothers to do it yet. -- Euler Taveira de Oliveira http://www.timbira.com/ --------------050803010000000203090100 Content-Type: text/x-patch; name="bbs.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bbs.diff" diff --git a/src/backend/access/nbtree/nbtree.c b/src/backend/access/nbtree/nbtree.c index 558ace1..ba01874 100644 *** a/src/backend/access/nbtree/nbtree.c --- b/src/backend/access/nbtree/nbtree.c *************** *** 31,36 **** --- 31,37 ---- #include "storage/lmgr.h" #include "storage/predicate.h" #include "storage/smgr.h" + #include "tcop/tcopprot.h" #include "utils/memutils.h" diff --git a/src/backend/access/nbtree/nbtsort.c b/src/backend/access/nbtree/nbtsort.c index e02f008..fd0e86a 100644 *** a/src/backend/access/nbtree/nbtsort.c --- b/src/backend/access/nbtree/nbtsort.c *************** *** 70,75 **** --- 70,76 ---- #include "access/nbtree.h" #include "miscadmin.h" #include "storage/smgr.h" + #include "tcop/tcopprot.h" #include "utils/rel.h" #include "utils/tuplesort.h" --------------050803010000000203090100--