18#if defined(__darwin__)
19#include <crt_externs.h>
51#if defined(HAVE_SETPROCTITLE_FAST)
52#define PS_USE_SETPROCTITLE_FAST
53#elif defined(HAVE_SETPROCTITLE)
54#define PS_USE_SETPROCTITLE
55#elif defined(__linux__) || defined(__sun) || defined(__darwin__) || defined(__GNU__)
56#define PS_USE_CLOBBER_ARGV
65#if defined(__linux__) || defined(__darwin__) || defined(__GNU__)
66#define PS_PADDING '\0'
74#ifndef PS_USE_CLOBBER_ARGV
76#define PS_BUFFER_SIZE 256
109#if defined(PS_USE_CLOBBER_ARGV) && defined(USE_VALGRIND)
135#if defined(PS_USE_CLOBBER_ARGV)
149 for (
i = 0;
i < argc;
i++)
178#if defined(__linux__) && (!defined(__GLIBC__) && !defined(__UCLIBC__))
249 for (
i = 0;
i < argc;
i++)
260#if defined(__darwin__)
304#ifdef PS_USE_CLOBBER_ARGV
318#if defined(PS_USE_SETPROCTITLE) || defined(PS_USE_SETPROCTITLE_FAST)
324#define PROGRAM_NAME_PREFIX ""
326#define PROGRAM_NAME_PREFIX "postgres: "
371#ifdef PS_USE_CLOBBER_ARGV
506#ifdef PS_USE_SETPROCTITLE
508#elif defined(PS_USE_SETPROCTITLE_FAST)
512#ifdef PS_USE_CLOBBER_ARGV
550#ifdef PS_USE_CLOBBER_ARGV
#define write_stderr(str)
#define Assert(condition)
#define MemSet(start, val, len)
const char * GetBackendTypeDesc(BackendType backendType)
BackendType MyBackendType
const char * get_ps_display(int *displen)
void set_ps_display_remove_suffix(void)
void set_ps_display_with_len(const char *activity, size_t len)
void init_ps_display(const char *fixed_part)
void set_ps_display_suffix(const char *suffix)
bool update_process_title
char ** save_ps_display_args(int argc, char **argv)
static void set_ps_display(const char *activity)
#define DEFAULT_UPDATE_PROCESS_TITLE