Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*-------------------------------------------------------------------------
 *
 * ps_status.h
 *
 * Declarations for backend/utils/misc/ps_status.c
 *
 * src/include/utils/ps_status.h
 *
 *-------------------------------------------------------------------------
 */
 
#ifndef PS_STATUS_H
#define PS_STATUS_H
 
/* disabled on Windows as the performance overhead can be significant */
#ifdef WIN32
#define DEFAULT_UPDATE_PROCESS_TITLE false
#else
#define DEFAULT_UPDATE_PROCESS_TITLE true
#endif
 
extern PGDLLIMPORT bool update_process_title;
 
extern char **save_ps_display_args(int argc, char **argv);
 
extern void init_ps_display(const char *fixed_part);
 
extern void set_ps_display_suffix(const char *suffix);
 
extern void set_ps_display_remove_suffix(void);
 
extern void set_ps_display_with_len(const char *activity, size_t len);
 
/*
 * set_ps_display
 *      inlined to allow strlen to be evaluated during compilation when
 *      passing string constants.
 */
static inline void
set_ps_display(const char *activity)
{
    set_ps_display_with_len(activity, strlen(activity));
}
 
extern const char *get_ps_display(int *displen);
 
#endif                          /* PS_STATUS_H */