#include "postgres.h"
#include <signal.h>
#include "catalog/pg_authid.h"
#include "miscadmin.h"
#include "pgstat.h"
#include "postmaster/syslogger.h"
#include "storage/pmsignal.h"
#include "storage/proc.h"
#include "storage/procarray.h"
#include "utils/acl.h"
#include "utils/fmgrprotos.h"
Go to the source code of this file.
Definition at line 46 of file signalfuncs.c.
Definition at line 49 of file signalfuncs.c.
Definition at line 47 of file signalfuncs.c.
Definition at line 48 of file signalfuncs.c.
Definition at line 45 of file signalfuncs.c.
Definition at line 136 of file signalfuncs.c.
References ereport, errcode(), errdetail(), errmsg(), ERROR, PG_GETARG_INT32, PG_RETURN_BOOL, pg_signal_backend(), SIGNAL_BACKEND_NOAUTOVAC, SIGNAL_BACKEND_NOPERMISSION, SIGNAL_BACKEND_NOSUPERUSER, and SIGNAL_BACKEND_SUCCESS.
Definition at line 288 of file signalfuncs.c.
References ereport, errmsg(), kill, PG_RETURN_BOOL, PostmasterPid, SIGHUP, and WARNING.
Definition at line 308 of file signalfuncs.c.
References ereport, errmsg(), Logging_collector, PG_RETURN_BOOL, PMSIGNAL_ROTATE_LOGFILE, SendPostmasterSignal(), and WARNING.
Definition at line 51 of file signalfuncs.c.
References B_AUTOVAC_WORKER, BackendPidGetProc(), ereport, errmsg(), GetNumberFromPGProc, GetUserId(), has_privs_of_role(), kill, OidIsValid, pgstat_get_backend_type_by_proc_number(), PGPROC::roleId, sig, SIGNAL_BACKEND_ERROR, SIGNAL_BACKEND_NOAUTOVAC, SIGNAL_BACKEND_NOPERMISSION, SIGNAL_BACKEND_NOSUPERUSER, SIGNAL_BACKEND_SUCCESS, superuser(), superuser_arg(), and WARNING.
Referenced by pg_cancel_backend(), and pg_terminate_backend().
Definition at line 237 of file signalfuncs.c.
References ereport, errcode(), errdetail(), errmsg(), ERROR, PG_GETARG_INT32, PG_GETARG_INT64, PG_RETURN_BOOL, pg_signal_backend(), pg_wait_until_termination(), SIGNAL_BACKEND_NOAUTOVAC, SIGNAL_BACKEND_NOPERMISSION, SIGNAL_BACKEND_NOSUPERUSER, and SIGNAL_BACKEND_SUCCESS.
Definition at line 169 of file signalfuncs.c.
References CHECK_FOR_INTERRUPTS, ereport, errcode(), errmsg(), errmsg_plural(), ERROR, kill, MyLatch, ResetLatch(), WaitLatch(), WARNING, WL_EXIT_ON_PM_DEATH, WL_LATCH_SET, and WL_TIMEOUT.
Referenced by pg_terminate_backend().