PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <unistd.h>
#include "miscadmin.h"
#include "utils/guc.h"
#include "utils/ps_status.h"
Go to the source code of this file.
Macros | |
#define | PS_USE_NONE |
#define | PS_PADDING ' ' |
Functions | |
char ** | save_ps_display_args (int argc, char **argv) |
void | init_ps_display (const char *fixed_part) |
void | set_ps_display_suffix (const char *suffix) |
void | set_ps_display_remove_suffix (void) |
void | set_ps_display_with_len (const char *activity, size_t len) |
const char * | get_ps_display (int *displen) |
Variables | |
char ** | environ |
bool | update_process_title = DEFAULT_UPDATE_PROCESS_TITLE |
static int | save_argc |
static char ** | save_argv |
#define PS_PADDING ' ' |
Definition at line 66 of file ps_status.c.
#define PS_USE_NONE |
Definition at line 58 of file ps_status.c.
const char* get_ps_display | ( | int * | displen | ) |
Definition at line 530 of file ps_status.c.
Referenced by log_status_format(), write_csvlog(), and write_jsonlog().
void init_ps_display | ( | const char * | fixed_part | ) |
Definition at line 267 of file ps_status.c.
References Assert, cluster_name, GetBackendTypeDesc(), i, IsUnderPostmaster, MyBackendType, save_argc, save_argv, set_ps_display(), snprintf, and update_process_title.
Referenced by AutoVacWorkerMain(), AuxiliaryProcessMainCommon(), BackendInitialize(), BackgroundWorkerMain(), ReplSlotSyncWorkerMain(), and SysLoggerMain().
char** save_ps_display_args | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 117 of file ps_status.c.
References environ, exit(), i, malloc, save_argc, save_argv, and write_stderr.
Referenced by main().
void set_ps_display_remove_suffix | ( | void | ) |
Definition at line 421 of file ps_status.c.
References Assert.
Referenced by LockBufferForCleanup(), ResolveRecoveryConflictWithVirtualXIDs(), SyncRepWaitForLSN(), and WaitOnLock().
void set_ps_display_suffix | ( | const char * | suffix | ) |
Definition at line 369 of file ps_status.c.
Referenced by LockBufferForCleanup(), ResolveRecoveryConflictWithVirtualXIDs(), SyncRepWaitForLSN(), and WaitOnLock().
void set_ps_display_with_len | ( | const char * | activity, |
size_t | len | ||
) |
Definition at line 451 of file ps_status.c.
Referenced by exec_execute_message(), exec_simple_query(), and set_ps_display().
|
extern |
Referenced by get_environ(), PostmasterMain(), and save_ps_display_args().
|
static |
Definition at line 98 of file ps_status.c.
Referenced by init_ps_display(), and save_ps_display_args().
|
static |
Definition at line 99 of file ps_status.c.
Referenced by init_ps_display(), and save_ps_display_args().
bool update_process_title = DEFAULT_UPDATE_PROCESS_TITLE |
Definition at line 29 of file ps_status.c.
Referenced by init_ps_display(), ResolveRecoveryConflictWithVirtualXIDs(), SendBaseBackup(), SyncRepWaitForLSN(), WalRcvWaitForStartPosition(), XLogSendPhysical(), and XLogWalRcvFlush().