summaryrefslogtreecommitdiff
path: root/src/include/utils/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/trace.h')
-rw-r--r--src/include/utils/trace.h51
1 files changed, 28 insertions, 23 deletions
diff --git a/src/include/utils/trace.h b/src/include/utils/trace.h
index 7884e197fd2..4d71b20ea21 100644
--- a/src/include/utils/trace.h
+++ b/src/include/utils/trace.h
@@ -4,7 +4,7 @@
*
* Conditional trace definitions.
*
- * Massimo Dal Zotto <[email protected]>
+ * Massimo Dal Zotto <[email protected]>
*
*-------------------------------------------------------------------------
*/
@@ -20,16 +20,17 @@
#include "postgres.h"
#ifdef ELOG_TIMESTAMPS
-char *tprintf_timestamp(void);
+char *tprintf_timestamp(void);
+
#define TIMESTAMP_SIZE 28
#else
#define TIMESTAMP_SIZE 0
#endif
-extern int tprintf(int flag, const char *fmt, ...);
-extern int eprintf(const char *fmt, ...);
-extern int option_flag(int flag);
-extern int set_option_flag(int flag, int value);
+extern int tprintf(int flag, const char *fmt,...);
+extern int eprintf(const char *fmt,...);
+extern int option_flag(int flag);
+extern int set_option_flag(int flag, int value);
extern void write_syslog(int level, char *line);
extern void parse_options(char *str);
extern void read_pg_options(SIGNAL_ARGS);
@@ -38,8 +39,10 @@ extern void read_pg_options(SIGNAL_ARGS);
* Trace options, used as index into pg_options.
* Must match the constants in pg_options[].
*/
-enum pg_option_enum {
- TRACE_ALL, /* 0=trace some, 1=trace all, -1=trace none */
+enum pg_option_enum
+{
+ TRACE_ALL, /* 0=trace some, 1=trace all, -1=trace
+ * none */
TRACE_VERBOSE,
TRACE_QUERY,
TRACE_PLAN,
@@ -48,7 +51,7 @@ enum pg_option_enum {
TRACE_PARSERSTATS,
TRACE_PLANNERSTATS,
TRACE_EXECUTORSTATS,
- TRACE_SHORTLOCKS, /* currently unused but needed, see lock.c */
+ TRACE_SHORTLOCKS, /* currently unused but needed, see lock.c */
TRACE_LOCKS,
TRACE_USERLOCKS,
TRACE_SPINLOCKS,
@@ -57,29 +60,31 @@ enum pg_option_enum {
TRACE_PALLOC,
TRACE_LOCKOIDMIN,
TRACE_LOCKRELATION,
- OPT_LOCKREADPRIORITY, /* lock priority, see lock.c */
- OPT_DEADLOCKTIMEOUT, /* deadlock timeout, see proc.c */
- OPT_SYSLOG, /* use syslog for error messages */
- OPT_HOSTLOOKUP, /* enable hostname lookup in ps_status */
- OPT_SHOWPORTNUMBER, /* show port number in ps_status */
- OPT_NOTIFYUNLOCK, /* enable unlock of pg_listener after notify */
- OPT_NOTIFYHACK, /* enable notify hack to remove duplicate tuples */
+ OPT_LOCKREADPRIORITY, /* lock priority, see lock.c */
+ OPT_DEADLOCKTIMEOUT, /* deadlock timeout, see proc.c */
+ OPT_SYSLOG, /* use syslog for error messages */
+ OPT_HOSTLOOKUP, /* enable hostname lookup in ps_status */
+ OPT_SHOWPORTNUMBER, /* show port number in ps_status */
+ OPT_NOTIFYUNLOCK, /* enable unlock of pg_listener after
+ * notify */
+ OPT_NOTIFYHACK, /* enable notify hack to remove duplicate
+ * tuples */
- NUM_PG_OPTIONS /* must be the last item of enum */
+ NUM_PG_OPTIONS /* must be the last item of enum */
};
-extern int pg_options[NUM_PG_OPTIONS];
+extern int pg_options[NUM_PG_OPTIONS];
#define PRINTF(args...) tprintf(TRACE_ALL, args)
-#define EPRINTF(args...) eprintf(args)
+#define EPRINTF(args...) eprintf(args)
#define TPRINTF(flag, args...) tprintf(flag, args)
-#endif /* TRACE_H */
+#endif /* TRACE_H */
/*
* Local variables:
- * tab-width: 4
- * c-indent-level: 4
- * c-basic-offset: 4
+ * tab-width: 4
+ * c-indent-level: 4
+ * c-basic-offset: 4
* End:
*/