From: Euler Taveira de Oliveira <euler@timbira.com>
To: Jan-Peter Seifert <Jan-Peter.Seifert@gmx.de>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5878: BTREE_BUILD_STATS causes 'make check' to fail
Date: Fri, 18 Feb 2011 10:26:01 -0300
Message-ID: <4D5E7369.4050404@timbira.com> (raw)
In-Reply-To: <201102101256.p1ACurU7089757@wwwmaster.postgresql.org>
References: <201102101256.p1ACurU7089757@wwwmaster.postgresql.org>
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/Attachments:bbs.diff (text/x-patch, 813B) downloaddiff --git a/src/backend/access/nbtree/nbtree.c b/src/backend/access/nbtree/nbtree.cindex 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.cindex 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"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: euler@timbira.com, Jan-Peter.Seifert@gmx.de
Subject: Re: BUG #5878: BTREE_BUILD_STATS causes 'make check' to fail
In-Reply-To: <4D5E7369.4050404@timbira.com>
References: <201102101256.p1ACurU7089757@wwwmaster.postgresql.org> <4D5E7369.4050404@timbira.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox