PostgreSQL Source Code  git master
ps_status.h
Go to the documentation of this file.
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 
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(const char *activity);
29 
30 extern const char *get_ps_display(int *displen);
31 
32 #endif /* PS_STATUS_H */
#define PGDLLIMPORT
Definition: c.h:1303
const char * get_ps_display(int *displen)
Definition: ps_status.c:414
void init_ps_display(const char *fixed_part)
Definition: ps_status.c:251
PGDLLIMPORT bool update_process_title
Definition: ps_status.c:35
char ** save_ps_display_args(int argc, char **argv)
Definition: ps_status.c:124
void set_ps_display(const char *activity)
Definition: ps_status.c:342