/src/postgres/src/include/utils/ps_status.h
Line | Count | Source (jump to first uncovered line) |
1 | | /*------------------------------------------------------------------------- |
2 | | * |
3 | | * ps_status.h |
4 | | * |
5 | | * Declarations for backend/utils/misc/ps_status.c |
6 | | * |
7 | | * src/include/utils/ps_status.h |
8 | | * |
9 | | *------------------------------------------------------------------------- |
10 | | */ |
11 | | |
12 | | #ifndef PS_STATUS_H |
13 | | #define PS_STATUS_H |
14 | | |
15 | | /* disabled on Windows as the performance overhead can be significant */ |
16 | | #ifdef WIN32 |
17 | | #define DEFAULT_UPDATE_PROCESS_TITLE false |
18 | | #else |
19 | | #define DEFAULT_UPDATE_PROCESS_TITLE true |
20 | | #endif |
21 | | |
22 | | extern PGDLLIMPORT bool update_process_title; |
23 | | |
24 | | extern char **save_ps_display_args(int argc, char **argv); |
25 | | |
26 | | extern void init_ps_display(const char *fixed_part); |
27 | | |
28 | | extern void set_ps_display_suffix(const char *suffix); |
29 | | |
30 | | extern void set_ps_display_remove_suffix(void); |
31 | | |
32 | | extern void set_ps_display_with_len(const char *activity, size_t len); |
33 | | |
34 | | /* |
35 | | * set_ps_display |
36 | | * inlined to allow strlen to be evaluated during compilation when |
37 | | * passing string constants. |
38 | | */ |
39 | | static inline void |
40 | | set_ps_display(const char *activity) |
41 | 0 | { |
42 | 0 | set_ps_display_with_len(activity, strlen(activity)); |
43 | 0 | } Unexecuted instantiation: xlog.c:set_ps_display Unexecuted instantiation: xlogrecovery.c:set_ps_display Unexecuted instantiation: async.c:set_ps_display Unexecuted instantiation: autovacuum.c:set_ps_display Unexecuted instantiation: auxprocess.c:set_ps_display Unexecuted instantiation: bgworker.c:set_ps_display Unexecuted instantiation: pgarch.c:set_ps_display Unexecuted instantiation: syslogger.c:set_ps_display Unexecuted instantiation: slotsync.c:set_ps_display Unexecuted instantiation: syncrep.c:set_ps_display Unexecuted instantiation: walreceiver.c:set_ps_display Unexecuted instantiation: walsender.c:set_ps_display Unexecuted instantiation: basebackup.c:set_ps_display Unexecuted instantiation: method_worker.c:set_ps_display Unexecuted instantiation: bufmgr.c:set_ps_display Unexecuted instantiation: standby.c:set_ps_display Unexecuted instantiation: lock.c:set_ps_display Unexecuted instantiation: backend_startup.c:set_ps_display Unexecuted instantiation: postgres.c:set_ps_display Unexecuted instantiation: csvlog.c:set_ps_display Unexecuted instantiation: elog.c:set_ps_display Unexecuted instantiation: jsonlog.c:set_ps_display Unexecuted instantiation: postinit.c:set_ps_display Unexecuted instantiation: guc_tables.c:set_ps_display Unexecuted instantiation: ps_status.c:set_ps_display |
44 | | |
45 | | extern const char *get_ps_display(int *displen); |
46 | | |
47 | | #endif /* PS_STATUS_H */ |