Robert Lor wrote:

> My concern is that when we start adding more probes (not just the  
> backend), we will have to add the following 5 lines in .c files that use  
> the Dtrace macros. This seems intrusive and messy to me instead of in a  
> centralized place like c.h. What are the disadvantages for keeping the  
> way it is now?
>
> #ifdef ENABLE_DTRACE
> #include "utils/probes.h"
> #else
> #include "utils/probes_null.h"
> #endif

Why can't this block be centralized in probes.h?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

Reply via email to