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/
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"
  
-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Reply via email to