Re: contrib/pg_buffercache

From: Mark Kirkwood
Subject: Re: contrib/pg_buffercache
Date: ,
Msg-id: 4237F2A3.7060500@paradise.net.nz
(view: Whole thread, Raw)
In response to: contrib/pg_buffercache  ("Andrew Dunstan")
Responses: Re: contrib/pg_buffercache  (Andrew Dunstan)
List: pgsql-hackers

Tree view

contrib/pg_buffercache  ("Andrew Dunstan", )
 Re: contrib/pg_buffercache  (Mark Kirkwood, )
 Re: contrib/pg_buffercache  (Mark Kirkwood, )
  Re: contrib/pg_buffercache  (Andrew Dunstan, )
   Re: contrib/pg_buffercache  (Mark Kirkwood, )
    Re: contrib/pg_buffercache  (Andrew Dunstan, )
     Re: contrib/pg_buffercache  (Mark Kirkwood, )
 Transitive Closure and 'pg_inherits'  (Ioannis Theoharis, )
  Re: Transitive Closure and 'pg_inherits'  (Tom Lane, )
 Recursive SQL  (Ioannis Theoharis, )
  Re: Recursive SQL  (Euler Taveira de Oliveira, )

Andrew Dunstan wrote:
> ... is apparently broken for Windows and Cygwin. See for example
> http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=loris&dt=2005-03-16%2001:55:33
>

Andrew,

The attached patch seems to sort it for me, can you give it try on win32
and cygwin?

cheers

Mark
--- pg_buffercache_pages.c.orig    Sun Mar 13 04:36:24 2005
+++ pg_buffercache_pages.c    Wed Mar 16 20:57:52 2005
@@ -17,6 +17,11 @@

 #define NUM_BUFFERCACHE_PAGES_ELEM    6

+#ifdef WIN32
+extern DLLIMPORT BufferDesc        *BufferDescriptors;
+extern DLLIMPORT volatile uint32    InterruptHoldoffCount;
+#endif
+

 /*
  * Record structure holding the to be exposed cache data.


pgsql-hackers by date:

From: Nicolai Tufar
Date:
Subject: Re: [pgsql-hackers-win32] snprintf causes regression tests to fail
From: Richard Huxton
Date:
Subject: Re: Erratic error message "ERROR: column "id_compte" does