diff options
author | Mark Wong <mark@2ndQuadrant.com> | 2019-06-06 17:48:41 +0000 |
---|---|---|
committer | Mark Wong <mark@2ndQuadrant.com> | 2019-06-26 22:13:19 +0000 |
commit | c84954a1fcb16e80c390956f55071948b20fb86d (patch) | |
tree | 8be76f50dc46482af5c8c6e3ceafa54dcdfb61b7 | |
parent | c4f52079ffc2864558e3c2df890ea378f95fec19 (diff) |
Remove unused pg_trace.h
-rw-r--r-- | c.h | 1 | ||||
-rw-r--r-- | pg_trace.h | 54 |
2 files changed, 0 insertions, 55 deletions
@@ -57,7 +57,6 @@ #include "pg_config_os.h" /* must be before any system header files */ #endif #include "postgres_ext.h" -#include "pg_trace.h" #if _MSC_VER >= 1400 #define errcode __msvc_errcode diff --git a/pg_trace.h b/pg_trace.h deleted file mode 100644 index 77862ff..0000000 --- a/pg_trace.h +++ /dev/null @@ -1,54 +0,0 @@ -/* ---------- - * pg_trace.h - * - * Definitions for the PostgreSQL tracing framework - * - * Copyright (c) 2006, PostgreSQL Global Development Group - * - * $PostgreSQL: pgsql/src/include/pg_trace.h,v 1.2 2006/10/04 00:30:06 momjian Exp $ - * ---------- - */ - -#ifndef PG_TRACE_H -#define PG_TRACE_H - -#ifdef ENABLE_DTRACE - -#include <sys/sdt.h> - -/* - * The PG_TRACE macros are mapped to the appropriate macros used by DTrace. - * - * Only one DTrace provider called "postgresql" will be used for PostgreSQL, - * so the name is hard-coded here to avoid having to specify it in the - * source code. - */ - -#define PG_TRACE(name) \ - DTRACE_PROBE(postgresql, name) -#define PG_TRACE1(name, arg1) \ - DTRACE_PROBE1(postgresql, name, arg1) -#define PG_TRACE2(name, arg1, arg2) \ - DTRACE_PROBE2(postgresql, name, arg1, arg2) -#define PG_TRACE3(name, arg1, arg2, arg3) \ - DTRACE_PROBE3(postgresql, name, arg1, arg2, arg3) -#define PG_TRACE4(name, arg1, arg2, arg3, arg4) \ - DTRACE_PROBE4(postgresql, name, arg1, arg2, arg3, arg4) -#define PG_TRACE5(name, arg1, arg2, arg3, arg4, arg5) \ - DTRACE_PROBE5(postgresql, name, arg1, arg2, arg3, arg4, arg5) -#else /* not ENABLE_DTRACE */ - -/* - * Unless DTrace is explicitly enabled with --enable-dtrace, the PG_TRACE - * macros will expand to no-ops. - */ - -#define PG_TRACE(name) -#define PG_TRACE1(name, arg1) -#define PG_TRACE2(name, arg1, arg2) -#define PG_TRACE3(name, arg1, arg2, arg3) -#define PG_TRACE4(name, arg1, arg2, arg3, arg4) -#define PG_TRACE5(name, arg1, arg2, arg3, arg4, arg5) -#endif /* not ENABLE_DTRACE */ - -#endif /* PG_TRACE_H */ |