PostgreSQL Source Code  git master
elog.c File Reference
#include "postgres.h"
#include <fcntl.h>
#include <time.h>
#include <unistd.h>
#include <signal.h>
#include <ctype.h>
#include "access/xact.h"
#include "libpq/libpq.h"
#include "libpq/pqformat.h"
#include "mb/pg_wchar.h"
#include "miscadmin.h"
#include "nodes/miscnodes.h"
#include "pgstat.h"
#include "postmaster/bgworker.h"
#include "postmaster/postmaster.h"
#include "postmaster/syslogger.h"
#include "storage/ipc.h"
#include "storage/proc.h"
#include "tcop/tcopprot.h"
#include "utils/guc_hooks.h"
#include "utils/memutils.h"
#include "utils/ps_status.h"
#include "utils/varlena.h"
Include dependency graph for elog.c:

Go to the source code of this file.

Macros

#define _(x)   err_gettext(x)
 
#define ERRORDATA_STACK_SIZE   5
 
#define FORMATTED_TS_LEN   128
 
#define CHECK_STACK_DEPTH()
 
#define EVALUATE_MESSAGE(domain, targetfield, appendval, translateit)
 
#define EVALUATE_MESSAGE_PLURAL(domain, targetfield, appendval)
 

Functions

static const char * err_gettext (const char *str) pg_attribute_format_arg(1)
 
static ErrorDataget_error_stack_entry (void)
 
static void set_stack_entry_domain (ErrorData *edata, const char *domain)
 
static void set_stack_entry_location (ErrorData *edata, const char *filename, int lineno, const char *funcname)
 
static bool matches_backtrace_functions (const char *funcname)
 
static pg_noinline void set_backtrace (ErrorData *edata, int num_skip)
 
static void set_errdata_field (MemoryContextData *cxt, char **ptr, const char *str)
 
static void FreeErrorDataContents (ErrorData *edata)
 
static void write_console (const char *line, int len)
 
static const char * process_log_prefix_padding (const char *p, int *ppadding)
 
static void log_line_prefix (StringInfo buf, ErrorData *edata)
 
static void send_message_to_server_log (ErrorData *edata)
 
static void send_message_to_frontend (ErrorData *edata)
 
static void append_with_tabs (StringInfo buf, const char *str)
 
static bool is_log_level_output (int elevel, int log_min_level)
 
static bool should_output_to_server (int elevel)
 
static bool should_output_to_client (int elevel)
 
bool message_level_is_interesting (int elevel)
 
bool in_error_recursion_trouble (void)
 
pg_attribute_cold bool errstart_cold (int elevel, const char *domain)
 
bool errstart (int elevel, const char *domain)
 
void errfinish (const char *filename, int lineno, const char *funcname)
 
bool errsave_start (struct Node *context, const char *domain)
 
void errsave_finish (struct Node *context, const char *filename, int lineno, const char *funcname)
 
int errcode (int sqlerrcode)
 
int errcode_for_file_access (void)
 
int errcode_for_socket_access (void)
 
int errmsg (const char *fmt,...)
 
int errbacktrace (void)
 
int errmsg_internal (const char *fmt,...)
 
int errmsg_plural (const char *fmt_singular, const char *fmt_plural, unsigned long n,...)
 
int errdetail (const char *fmt,...)
 
int errdetail_internal (const char *fmt,...)
 
int errdetail_log (const char *fmt,...)
 
int errdetail_log_plural (const char *fmt_singular, const char *fmt_plural, unsigned long n,...)
 
int errdetail_plural (const char *fmt_singular, const char *fmt_plural, unsigned long n,...)
 
int errhint (const char *fmt,...)
 
int errhint_plural (const char *fmt_singular, const char *fmt_plural, unsigned long n,...)
 
int errcontext_msg (const char *fmt,...)
 
int set_errcontext_domain (const char *domain)
 
int errhidestmt (bool hide_stmt)
 
int errhidecontext (bool hide_ctx)
 
int errposition (int cursorpos)
 
int internalerrposition (int cursorpos)
 
int internalerrquery (const char *query)
 
int err_generic_string (int field, const char *str)
 
int geterrcode (void)
 
int geterrposition (void)
 
int getinternalerrposition (void)
 
void pre_format_elog_string (int errnumber, const char *domain)
 
char * format_elog_string (const char *fmt,...)
 
void EmitErrorReport (void)
 
ErrorDataCopyErrorData (void)
 
void FreeErrorData (ErrorData *edata)
 
void FlushErrorState (void)
 
void ThrowErrorData (ErrorData *edata)
 
void ReThrowError (ErrorData *edata)
 
void pg_re_throw (void)
 
char * GetErrorContextStack (void)
 
void DebugFileOpen (void)
 
bool check_backtrace_functions (char **newval, void **extra, GucSource source)
 
void assign_backtrace_functions (const char *newval, void *extra)
 
bool check_log_destination (char **newval, void **extra, GucSource source)
 
void assign_log_destination (const char *newval, void *extra)
 
void assign_syslog_ident (const char *newval, void *extra)
 
void assign_syslog_facility (int newval, void *extra)
 
char * get_formatted_log_time (void)
 
void reset_formatted_start_time (void)
 
char * get_formatted_start_time (void)
 
bool check_log_of_query (ErrorData *edata)
 
const char * get_backend_type_for_log (void)
 
void log_status_format (StringInfo buf, const char *format, ErrorData *edata)
 
char * unpack_sql_state (int sql_state)
 
void write_pipe_chunks (char *data, int len, int dest)
 
static void err_sendstring (StringInfo buf, const char *str)
 
const char * error_severity (int elevel)
 
void write_stderr (const char *fmt,...)
 

Variables

ErrorContextCallbackerror_context_stack = NULL
 
sigjmp_buf * PG_exception_stack = NULL
 
emit_log_hook_type emit_log_hook = NULL
 
int Log_error_verbosity = PGERROR_DEFAULT
 
char * Log_line_prefix = NULL
 
int Log_destination = LOG_DESTINATION_STDERR
 
char * Log_destination_string = NULL
 
bool syslog_sequence_numbers = true
 
bool syslog_split_messages = true
 
static char * backtrace_function_list
 
static ErrorData errordata [ERRORDATA_STACK_SIZE]
 
static int errordata_stack_depth = -1
 
static int recursion_depth = 0
 
static struct timeval saved_timeval
 
static bool saved_timeval_set = false
 
static char formatted_start_time [FORMATTED_TS_LEN]
 
static char formatted_log_time [FORMATTED_TS_LEN]
 
static int save_format_errnumber
 
static const char * save_format_domain
 

Macro Definition Documentation

◆ _

#define _ (   x)    err_gettext(x)

Definition at line 90 of file elog.c.

◆ CHECK_STACK_DEPTH

#define CHECK_STACK_DEPTH ( )
Value:
do { \
{ \
errordata_stack_depth = -1; \
ereport(ERROR, (errmsg_internal("errstart was not called"))); \
} \
} while (0)
int errmsg_internal(const char *fmt,...)
Definition: elog.c:1155
static int errordata_stack_depth
Definition: elog.c:149
#define ERROR
Definition: elog.h:39

Definition at line 166 of file elog.c.

◆ ERRORDATA_STACK_SIZE

#define ERRORDATA_STACK_SIZE   5

Definition at line 145 of file elog.c.

◆ EVALUATE_MESSAGE

#define EVALUATE_MESSAGE (   domain,
  targetfield,
  appendval,
  translateit 
)
Value:
{ \
StringInfoData buf; \
/* Internationalize the error format string */ \
if ((translateit) && !in_error_recursion_trouble()) \
fmt = dgettext((domain), fmt); \
initStringInfo(&buf); \
if ((appendval) && edata->targetfield) { \
appendStringInfoString(&buf, edata->targetfield); \
appendStringInfoChar(&buf, '\n'); \
} \
/* Generate actual output --- have to use appendStringInfoVA */ \
for (;;) \
{ \
va_list args; \
int needed; \
errno = edata->saved_errno; \
va_start(args, fmt); \
needed = appendStringInfoVA(&buf, fmt, args); \
va_end(args); \
if (needed == 0) \
break; \
enlargeStringInfo(&buf, needed); \
} \
/* Save the completed message into the stack item */ \
if (edata->targetfield) \
pfree(edata->targetfield); \
edata->targetfield = pstrdup(buf.data); \
pfree(buf.data); \
}
#define dgettext(d, x)
Definition: c.h:1180
bool in_error_recursion_trouble(void)
Definition: elog.c:295
static void const char * fmt
char * pstrdup(const char *in)
Definition: mcxt.c:1696
static char * buf
Definition: pg_test_fsync.c:73
int appendStringInfoVA(StringInfo str, const char *fmt, va_list args)
Definition: stringinfo.c:139

Definition at line 987 of file elog.c.

◆ EVALUATE_MESSAGE_PLURAL

#define EVALUATE_MESSAGE_PLURAL (   domain,
  targetfield,
  appendval 
)

Definition at line 1023 of file elog.c.

◆ FORMATTED_TS_LEN

#define FORMATTED_TS_LEN   128

Definition at line 160 of file elog.c.

Function Documentation

◆ append_with_tabs()

static void append_with_tabs ( StringInfo  buf,
const char *  str 
)
static

Definition at line 3700 of file elog.c.

3701 {
3702  char ch;
3703 
3704  while ((ch = *str++) != '\0')
3705  {
3707  if (ch == '\n')
3709  }
3710 }
const char * str
#define appendStringInfoCharMacro(str, ch)
Definition: stringinfo.h:204

References appendStringInfoCharMacro, buf, and str.

Referenced by send_message_to_server_log().

◆ assign_backtrace_functions()

void assign_backtrace_functions ( const char *  newval,
void *  extra 
)

Definition at line 2204 of file elog.c.

2205 {
2206  backtrace_function_list = (char *) extra;
2207 }
static char * backtrace_function_list
Definition: elog.c:116

References backtrace_function_list.

◆ assign_log_destination()

void assign_log_destination ( const char *  newval,
void *  extra 
)

Definition at line 2275 of file elog.c.

2276 {
2277  Log_destination = *((int *) extra);
2278 }
int Log_destination
Definition: elog.c:110

References Log_destination.

◆ assign_syslog_facility()

void assign_syslog_facility ( int  newval,
void *  extra 
)

Definition at line 2316 of file elog.c.

2317 {
2318 #ifdef HAVE_SYSLOG
2319  /*
2320  * As above, don't thrash the syslog connection unnecessarily.
2321  */
2322  if (syslog_facility != newval)
2323  {
2324  if (openlog_done)
2325  {
2326  closelog();
2327  openlog_done = false;
2328  }
2330  }
2331 #endif
2332  /* Without syslog support, just ignore it */
2333 }
#define newval
static int syslog_facility
Definition: guc_tables.c:589

References newval, and syslog_facility.

◆ assign_syslog_ident()

void assign_syslog_ident ( const char *  newval,
void *  extra 
)

Definition at line 2284 of file elog.c.

2285 {
2286 #ifdef HAVE_SYSLOG
2287  /*
2288  * guc.c is likely to call us repeatedly with same parameters, so don't
2289  * thrash the syslog connection unnecessarily. Also, we do not re-open
2290  * the connection until needed, since this routine will get called whether
2291  * or not Log_destination actually mentions syslog.
2292  *
2293  * Note that we make our own copy of the ident string rather than relying
2294  * on guc.c's. This may be overly paranoid, but it ensures that we cannot
2295  * accidentally free a string that syslog is still using.
2296  */
2297  if (syslog_ident == NULL || strcmp(syslog_ident, newval) != 0)
2298  {
2299  if (openlog_done)
2300  {
2301  closelog();
2302  openlog_done = false;
2303  }
2304  free(syslog_ident);
2305  syslog_ident = strdup(newval);
2306  /* if the strdup fails, we will cope in write_syslog() */
2307  }
2308 #endif
2309  /* Without syslog support, just ignore it */
2310 }
#define free(a)
Definition: header.h:65

References free, and newval.

◆ check_backtrace_functions()

bool check_backtrace_functions ( char **  newval,
void **  extra,
GucSource  source 
)

Definition at line 2145 of file elog.c.

2146 {
2147  int newvallen = strlen(*newval);
2148  char *someval;
2149  int validlen;
2150  int i;
2151  int j;
2152 
2153  /*
2154  * Allow characters that can be C identifiers and commas as separators, as
2155  * well as some whitespace for readability.
2156  */
2157  validlen = strspn(*newval,
2158  "0123456789_"
2159  "abcdefghijklmnopqrstuvwxyz"
2160  "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2161  ", \n\t");
2162  if (validlen != newvallen)
2163  {
2164  GUC_check_errdetail("Invalid character");
2165  return false;
2166  }
2167 
2168  if (*newval[0] == '\0')
2169  {
2170  *extra = NULL;
2171  return true;
2172  }
2173 
2174  /*
2175  * Allocate space for the output and create the copy. We could discount
2176  * whitespace chars to save some memory, but it doesn't seem worth the
2177  * trouble.
2178  */
2179  someval = guc_malloc(ERROR, newvallen + 1 + 1);
2180  for (i = 0, j = 0; i < newvallen; i++)
2181  {
2182  if ((*newval)[i] == ',')
2183  someval[j++] = '\0'; /* next item */
2184  else if ((*newval)[i] == ' ' ||
2185  (*newval)[i] == '\n' ||
2186  (*newval)[i] == '\t')
2187  ; /* ignore these */
2188  else
2189  someval[j++] = (*newval)[i]; /* copy anything else */
2190  }
2191 
2192  /* two \0s end the setting */
2193  someval[j] = '\0';
2194  someval[j + 1] = '\0';
2195 
2196  *extra = someval;
2197  return true;
2198 }
void * guc_malloc(int elevel, size_t size)
Definition: guc.c:640
#define GUC_check_errdetail
Definition: guc.h:447
int j
Definition: isn.c:74
int i
Definition: isn.c:73

References ERROR, GUC_check_errdetail, guc_malloc(), i, j, and newval.

◆ check_log_destination()

bool check_log_destination ( char **  newval,
void **  extra,
GucSource  source 
)

Definition at line 2213 of file elog.c.

2214 {
2215  char *rawstring;
2216  List *elemlist;
2217  ListCell *l;
2218  int newlogdest = 0;
2219  int *myextra;
2220 
2221  /* Need a modifiable copy of string */
2222  rawstring = pstrdup(*newval);
2223 
2224  /* Parse string into list of identifiers */
2225  if (!SplitIdentifierString(rawstring, ',', &elemlist))
2226  {
2227  /* syntax error in list */
2228  GUC_check_errdetail("List syntax is invalid.");
2229  pfree(rawstring);
2230  list_free(elemlist);
2231  return false;
2232  }
2233 
2234  foreach(l, elemlist)
2235  {
2236  char *tok = (char *) lfirst(l);
2237 
2238  if (pg_strcasecmp(tok, "stderr") == 0)
2239  newlogdest |= LOG_DESTINATION_STDERR;
2240  else if (pg_strcasecmp(tok, "csvlog") == 0)
2241  newlogdest |= LOG_DESTINATION_CSVLOG;
2242  else if (pg_strcasecmp(tok, "jsonlog") == 0)
2243  newlogdest |= LOG_DESTINATION_JSONLOG;
2244 #ifdef HAVE_SYSLOG
2245  else if (pg_strcasecmp(tok, "syslog") == 0)
2246  newlogdest |= LOG_DESTINATION_SYSLOG;
2247 #endif
2248 #ifdef WIN32
2249  else if (pg_strcasecmp(tok, "eventlog") == 0)
2250  newlogdest |= LOG_DESTINATION_EVENTLOG;
2251 #endif
2252  else
2253  {
2254  GUC_check_errdetail("Unrecognized key word: \"%s\".", tok);
2255  pfree(rawstring);
2256  list_free(elemlist);
2257  return false;
2258  }
2259  }
2260 
2261  pfree(rawstring);
2262  list_free(elemlist);
2263 
2264  myextra = (int *) guc_malloc(ERROR, sizeof(int));
2265  *myextra = newlogdest;
2266  *extra = (void *) myextra;
2267 
2268  return true;
2269 }
#define LOG_DESTINATION_JSONLOG
Definition: elog.h:496
#define LOG_DESTINATION_SYSLOG
Definition: elog.h:493
#define LOG_DESTINATION_STDERR
Definition: elog.h:492
#define LOG_DESTINATION_EVENTLOG
Definition: elog.h:494
#define LOG_DESTINATION_CSVLOG
Definition: elog.h:495
void list_free(List *list)
Definition: list.c:1546
void pfree(void *pointer)
Definition: mcxt.c:1521
#define lfirst(lc)
Definition: pg_list.h:172
int pg_strcasecmp(const char *s1, const char *s2)
Definition: pgstrcasecmp.c:36
Definition: pg_list.h:54
bool SplitIdentifierString(char *rawstring, char separator, List **namelist)
Definition: varlena.c:3457

References ERROR, GUC_check_errdetail, guc_malloc(), lfirst, list_free(), LOG_DESTINATION_CSVLOG, LOG_DESTINATION_EVENTLOG, LOG_DESTINATION_JSONLOG, LOG_DESTINATION_STDERR, LOG_DESTINATION_SYSLOG, newval, pfree(), pg_strcasecmp(), pstrdup(), and SplitIdentifierString().

◆ check_log_of_query()

bool check_log_of_query ( ErrorData edata)

Definition at line 2709 of file elog.c.

2710 {
2711  /* log required? */
2713  return false;
2714 
2715  /* query log wanted? */
2716  if (edata->hide_stmt)
2717  return false;
2718 
2719  /* query string available? */
2720  if (debug_query_string == NULL)
2721  return false;
2722 
2723  return true;
2724 }
static bool is_log_level_output(int elevel, int log_min_level)
Definition: elog.c:203
int log_min_error_statement
Definition: guc_tables.c:525
const char * debug_query_string
Definition: postgres.c:87
int elevel
Definition: elog.h:428
bool hide_stmt
Definition: elog.h:431

References debug_query_string, ErrorData::elevel, ErrorData::hide_stmt, is_log_level_output(), and log_min_error_statement.

Referenced by send_message_to_server_log(), write_csvlog(), and write_jsonlog().

◆ CopyErrorData()

ErrorData* CopyErrorData ( void  )

Definition at line 1727 of file elog.c.

1728 {
1730  ErrorData *newedata;
1731 
1732  /*
1733  * we don't increment recursion_depth because out-of-memory here does not
1734  * indicate a problem within the error subsystem.
1735  */
1737 
1739 
1740  /* Copy the struct itself */
1741  newedata = (ErrorData *) palloc(sizeof(ErrorData));
1742  memcpy(newedata, edata, sizeof(ErrorData));
1743 
1744  /*
1745  * Make copies of separately-allocated strings. Note that we copy even
1746  * theoretically-constant strings such as filename. This is because those
1747  * could point into JIT-created code segments that might get unloaded at
1748  * transaction cleanup. In some cases we need the copied ErrorData to
1749  * survive transaction boundaries, so we'd better copy those strings too.
1750  */
1751  if (newedata->filename)
1752  newedata->filename = pstrdup(newedata->filename);
1753  if (newedata->funcname)
1754  newedata->funcname = pstrdup(newedata->funcname);
1755  if (newedata->domain)
1756  newedata->domain = pstrdup(newedata->domain);
1757  if (newedata->context_domain)
1758  newedata->context_domain = pstrdup(newedata->context_domain);
1759  if (newedata->message)
1760  newedata->message = pstrdup(newedata->message);
1761  if (newedata->detail)
1762  newedata->detail = pstrdup(newedata->detail);
1763  if (newedata->detail_log)
1764  newedata->detail_log = pstrdup(newedata->detail_log);
1765  if (newedata->hint)
1766  newedata->hint = pstrdup(newedata->hint);
1767  if (newedata->context)
1768  newedata->context = pstrdup(newedata->context);
1769  if (newedata->backtrace)
1770  newedata->backtrace = pstrdup(newedata->backtrace);
1771  if (newedata->message_id)
1772  newedata->message_id = pstrdup(newedata->message_id);
1773  if (newedata->schema_name)
1774  newedata->schema_name = pstrdup(newedata->schema_name);
1775  if (newedata->table_name)
1776  newedata->table_name = pstrdup(newedata->table_name);
1777  if (newedata->column_name)
1778  newedata->column_name = pstrdup(newedata->column_name);
1779  if (newedata->datatype_name)
1780  newedata->datatype_name = pstrdup(newedata->datatype_name);
1781  if (newedata->constraint_name)
1782  newedata->constraint_name = pstrdup(newedata->constraint_name);
1783  if (newedata->internalquery)
1784  newedata->internalquery = pstrdup(newedata->internalquery);
1785 
1786  /* Use the calling context for string allocation */
1787  newedata->assoc_context = CurrentMemoryContext;
1788 
1789  return newedata;
1790 }
#define Assert(condition)
Definition: c.h:858
#define CHECK_STACK_DEPTH()
Definition: elog.c:166
static ErrorData errordata[ERRORDATA_STACK_SIZE]
Definition: elog.c:147
MemoryContext CurrentMemoryContext
Definition: mcxt.c:143
MemoryContext ErrorContext
Definition: mcxt.c:150
void * palloc(Size size)
Definition: mcxt.c:1317
char * schema_name
Definition: elog.h:446
char * context
Definition: elog.h:443
const char * domain
Definition: elog.h:436
char * internalquery
Definition: elog.h:453
struct MemoryContextData * assoc_context
Definition: elog.h:457
const char * filename
Definition: elog.h:433
char * datatype_name
Definition: elog.h:449
char * detail
Definition: elog.h:440
const char * context_domain
Definition: elog.h:437
const char * funcname
Definition: elog.h:435
char * table_name
Definition: elog.h:447
char * backtrace
Definition: elog.h:444
char * message
Definition: elog.h:439
char * detail_log
Definition: elog.h:441
const char * message_id
Definition: elog.h:445
char * hint
Definition: elog.h:442
char * constraint_name
Definition: elog.h:450
char * column_name
Definition: elog.h:448

References Assert, ErrorData::assoc_context, ErrorData::backtrace, CHECK_STACK_DEPTH, ErrorData::column_name, ErrorData::constraint_name, ErrorData::context, ErrorData::context_domain, CurrentMemoryContext, ErrorData::datatype_name, ErrorData::detail, ErrorData::detail_log, ErrorData::domain, ErrorContext, errordata, errordata_stack_depth, ErrorData::filename, ErrorData::funcname, ErrorData::hint, ErrorData::internalquery, ErrorData::message, ErrorData::message_id, palloc(), pstrdup(), ErrorData::schema_name, and ErrorData::table_name.

Referenced by _SPI_commit(), _SPI_rollback(), exec_stmt_block(), GetConnection(), initTrie(), plperl_return_next(), plperl_spi_commit(), plperl_spi_exec(), plperl_spi_exec_prepared(), plperl_spi_fetchrow(), plperl_spi_prepare(), plperl_spi_query(), plperl_spi_query_prepared(), plperl_spi_rollback(), plperl_util_elog(), pltcl_commit(), pltcl_elog(), pltcl_rollback(), pltcl_subtrans_abort(), PLy_commit(), PLy_output(), PLy_rollback(), PLy_spi_subtransaction_abort(), and ReorderBufferProcessTXN().

◆ DebugFileOpen()

void DebugFileOpen ( void  )

Definition at line 2089 of file elog.c.

2090 {
2091  int fd,
2092  istty;
2093 
2094  if (OutputFileName[0])
2095  {
2096  /*
2097  * A debug-output file name was given.
2098  *
2099  * Make sure we can write the file, and find out if it's a tty.
2100  */
2101  if ((fd = open(OutputFileName, O_CREAT | O_APPEND | O_WRONLY,
2102  0666)) < 0)
2103  ereport(FATAL,
2105  errmsg("could not open file \"%s\": %m", OutputFileName)));
2106  istty = isatty(fd);
2107  close(fd);
2108 
2109  /*
2110  * Redirect our stderr to the debug output file.
2111  */
2112  if (!freopen(OutputFileName, "a", stderr))
2113  ereport(FATAL,
2115  errmsg("could not reopen file \"%s\" as stderr: %m",
2116  OutputFileName)));
2117 
2118  /*
2119  * If the file is a tty and we're running under the postmaster, try to
2120  * send stdout there as well (if it isn't a tty then stderr will block
2121  * out stdout, so we may as well let stdout go wherever it was going
2122  * before).
2123  */
2124  if (istty && IsUnderPostmaster)
2125  if (!freopen(OutputFileName, "a", stdout))
2126  ereport(FATAL,
2128  errmsg("could not reopen file \"%s\" as stdout: %m",
2129  OutputFileName)));
2130  }
2131 }
int errcode_for_file_access(void)
Definition: elog.c:878
int errmsg(const char *fmt,...)
Definition: elog.c:1068
#define FATAL
Definition: elog.h:41
#define ereport(elevel,...)
Definition: elog.h:149
bool IsUnderPostmaster
Definition: globals.c:118
char OutputFileName[MAXPGPATH]
Definition: globals.c:77
#define close(a)
Definition: win32.h:12
static int fd(const char *x, int i)
Definition: preproc-init.c:105

References close, ereport, errcode_for_file_access(), errmsg(), FATAL, fd(), IsUnderPostmaster, OutputFileName, and generate_unaccent_rules::stdout.

Referenced by BaseInit().

◆ EmitErrorReport()

void EmitErrorReport ( void  )

Definition at line 1668 of file elog.c.

1669 {
1671  MemoryContext oldcontext;
1672 
1673  recursion_depth++;
1675  oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1676 
1677  /*
1678  * Reset the formatted timestamp fields before emitting any logs. This
1679  * includes all the log destinations and emit_log_hook, as the latter
1680  * could use log_line_prefix or the formatted timestamps.
1681  */
1682  saved_timeval_set = false;
1683  formatted_log_time[0] = '\0';
1684 
1685  /*
1686  * Call hook before sending message to log. The hook function is allowed
1687  * to turn off edata->output_to_server, so we must recheck that afterward.
1688  * Making any other change in the content of edata is not considered
1689  * supported.
1690  *
1691  * Note: the reason why the hook can only turn off output_to_server, and
1692  * not turn it on, is that it'd be unreliable: we will never get here at
1693  * all if errstart() deems the message uninteresting. A hook that could
1694  * make decisions in that direction would have to hook into errstart(),
1695  * where it would have much less information available. emit_log_hook is
1696  * intended for custom log filtering and custom log message transmission
1697  * mechanisms.
1698  *
1699  * The log hook has access to both the translated and original English
1700  * error message text, which is passed through to allow it to be used as a
1701  * message identifier. Note that the original text is not available for
1702  * detail, detail_log, hint and context text elements.
1703  */
1704  if (edata->output_to_server && emit_log_hook)
1705  (*emit_log_hook) (edata);
1706 
1707  /* Send to server log, if enabled */
1708  if (edata->output_to_server)
1710 
1711  /* Send to client, if enabled */
1712  if (edata->output_to_client)
1713  send_message_to_frontend(edata);
1714 
1715  MemoryContextSwitchTo(oldcontext);
1716  recursion_depth--;
1717 }
static char formatted_log_time[FORMATTED_TS_LEN]
Definition: elog.c:162
static void send_message_to_frontend(ErrorData *edata)
Definition: elog.c:3470
static bool saved_timeval_set
Definition: elog.c:158
static int recursion_depth
Definition: elog.c:151
emit_log_hook_type emit_log_hook
Definition: elog.c:105
static void send_message_to_server_log(ErrorData *edata)
Definition: elog.c:3167
MemoryContextSwitchTo(old_ctx)
bool output_to_server
Definition: elog.h:429
bool output_to_client
Definition: elog.h:430

References ErrorData::assoc_context, CHECK_STACK_DEPTH, emit_log_hook, errordata, errordata_stack_depth, formatted_log_time, MemoryContextSwitchTo(), ErrorData::output_to_client, ErrorData::output_to_server, recursion_depth, saved_timeval_set, send_message_to_frontend(), and send_message_to_server_log().

Referenced by AutoVacWorkerMain(), BackgroundWorkerMain(), BackgroundWriterMain(), CheckpointerMain(), DisableSubscriptionAndExit(), do_autovacuum(), errfinish(), perform_work_item(), pgarch_archiveXlog(), PostgresMain(), ReplSlotSyncWorkerMain(), WalSummarizerMain(), and WalWriterMain().

◆ err_generic_string()

int err_generic_string ( int  field,
const char *  str 
)

Definition at line 1510 of file elog.c.

1511 {
1513 
1514  /* we don't bother incrementing recursion_depth */
1516 
1517  switch (field)
1518  {
1519  case PG_DIAG_SCHEMA_NAME:
1520  set_errdata_field(edata->assoc_context, &edata->schema_name, str);
1521  break;
1522  case PG_DIAG_TABLE_NAME:
1523  set_errdata_field(edata->assoc_context, &edata->table_name, str);
1524  break;
1525  case PG_DIAG_COLUMN_NAME:
1526  set_errdata_field(edata->assoc_context, &edata->column_name, str);
1527  break;
1528  case PG_DIAG_DATATYPE_NAME:
1530  break;
1533  break;
1534  default:
1535  elog(ERROR, "unsupported ErrorData field id: %d", field);
1536  break;
1537  }
1538 
1539  return 0; /* return value does not matter */
1540 }
static void set_errdata_field(MemoryContextData *cxt, char **ptr, const char *str)
Definition: elog.c:1546
#define elog(elevel,...)
Definition: elog.h:224
#define PG_DIAG_SCHEMA_NAME
Definition: postgres_ext.h:64
#define PG_DIAG_CONSTRAINT_NAME
Definition: postgres_ext.h:68
#define PG_DIAG_DATATYPE_NAME
Definition: postgres_ext.h:67
#define PG_DIAG_TABLE_NAME
Definition: postgres_ext.h:65
#define PG_DIAG_COLUMN_NAME
Definition: postgres_ext.h:66

References ErrorData::assoc_context, CHECK_STACK_DEPTH, ErrorData::column_name, ErrorData::constraint_name, ErrorData::datatype_name, elog, ERROR, errordata, errordata_stack_depth, PG_DIAG_COLUMN_NAME, PG_DIAG_CONSTRAINT_NAME, PG_DIAG_DATATYPE_NAME, PG_DIAG_SCHEMA_NAME, PG_DIAG_TABLE_NAME, ErrorData::schema_name, set_errdata_field(), str, and ErrorData::table_name.

Referenced by errdatatype(), errdomainconstraint(), errtable(), errtablecolname(), errtableconstraint(), exec_stmt_raise(), PLy_elog_impl(), and PLy_output().

◆ err_gettext()

static const char * err_gettext ( const char *  str)
inlinestatic

Definition at line 307 of file elog.c.

308 {
309 #ifdef ENABLE_NLS
311  return str;
312  else
313  return gettext(str);
314 #else
315  return str;
316 #endif
317 }
#define gettext(x)
Definition: c.h:1179

References gettext, in_error_recursion_trouble(), and str.

◆ err_sendstring()

static void err_sendstring ( StringInfo  buf,
const char *  str 
)
static

Definition at line 3458 of file elog.c.

3459 {
3462  else
3463  pq_sendstring(buf, str);
3464 }
void pq_sendstring(StringInfo buf, const char *str)
Definition: pqformat.c:195
void pq_send_ascii_string(StringInfo buf, const char *str)
Definition: pqformat.c:227

References buf, in_error_recursion_trouble(), pq_send_ascii_string(), pq_sendstring(), and str.

Referenced by send_message_to_frontend().

◆ errbacktrace()

int errbacktrace ( void  )

Definition at line 1090 of file elog.c.

1091 {
1093  MemoryContext oldcontext;
1094 
1095  recursion_depth++;
1097  oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1098 
1099  set_backtrace(edata, 1);
1100 
1101  MemoryContextSwitchTo(oldcontext);
1102  recursion_depth--;
1103 
1104  return 0;
1105 }
static pg_noinline void set_backtrace(ErrorData *edata, int num_skip)
Definition: elog.c:1114

References ErrorData::assoc_context, CHECK_STACK_DEPTH, errordata, errordata_stack_depth, MemoryContextSwitchTo(), recursion_depth, and set_backtrace().

◆ errcode()

int errcode ( int  sqlerrcode)

Definition at line 855 of file elog.c.

856 {
858 
859  /* we don't bother incrementing recursion_depth */
861 
862  edata->sqlerrcode = sqlerrcode;
863 
864  return 0; /* return value does not matter */
865 }
int sqlerrcode
Definition: elog.h:438

References CHECK_STACK_DEPTH, errordata, errordata_stack_depth, and ErrorData::sqlerrcode.

Referenced by _arrq_cons(), _bt_binsrch_insert(), _bt_check_third_page(), _bt_check_unique(), _bt_checkpage(), _bt_get_endpoint(), _bt_getmeta(), _bt_gettrueroot(), _bt_insert_parent(), _bt_insertonpg(), _bt_lock_subtree_parent(), _bt_mark_page_halfdead(), _bt_pagedel(), _bt_preprocess_array_keys_final(), _bt_split(), _bt_unlink_halfdead_page(), _crypt_blowfish_rn(), _hash_addovflpage(), _hash_checkpage(), _hash_doinsert(), _hash_first(), _hash_init(), _hash_ovflblkno_to_bitno(), _intbig_in(), _intbig_out(), _lca(), _lt_q_regex(), _ltree_compress(), _PG_init(), _SPI_commit(), _SPI_execute_plan(), _SPI_rollback(), _tarWriteHeader(), AbortBufferIO(), accumArrayResult(), accumArrayResultArr(), aclcheck_error(), aclcheck_error_col(), aclinsert(), aclitemin(), aclparse(), aclremove(), add_guc_variable(), add_json(), add_jsonb(), add_parameter_name(), add_reloption_kind(), add_size(), addCompoundAffixFlagValue(), AddEnumLabel(), addFamilyMember(), addFkRecurseReferenced(), addFkRecurseReferencing(), AddQual(), addRangeTableEntryForCTE(), addRangeTableEntryForFunction(), addRangeTableEntryForJoin(), addRangeTableEntryForSubquery(), addRangeTableEntryForTableFunc(), addRangeTableEntryForValues(), AddRelationNewConstraints(), AddRoleMems(), addTargetToSortList(), AdjustIntervalForTypmod(), AdjustTimestampForTypmod(), advance_windowaggregate(), afterTriggerMarkEvents(), AfterTriggerSetState(), AggregateCreate(), alen_object_start(), alen_scalar(), AllocateDir(), AllocateFile(), AllocateVfd(), AllocSetContextCreateInternal(), AlterDatabase(), AlterDatabaseOwner(), AlterDatabaseRefreshColl(), AlterDomainAddConstraint(), AlterDomainDropConstraint(), AlterDomainValidateConstraint(), AlterEventTrigger(), AlterEventTriggerOwner(), AlterEventTriggerOwner_internal(), AlterEventTriggerOwner_oid(), AlterExtensionNamespace(), AlterForeignDataWrapper(), AlterForeignDataWrapperOwner(), AlterForeignDataWrapperOwner_internal(), AlterForeignDataWrapperOwner_oid(), AlterForeignServer(), AlterForeignServerOwner(), AlterForeignServerOwner_oid(), AlterFunction(), AlterObjectNamespace_internal(), AlterObjectRename_internal(), AlterOperator(), AlterOpFamily(), AlterOpFamilyAdd(), AlterOpFamilyDrop(), AlterPolicy(), AlterPublication(), AlterPublicationOptions(), AlterPublicationOwner(), AlterPublicationOwner_internal(), AlterPublicationOwner_oid(), AlterPublicationSchemas(), AlterRelationNamespaceInternal(), AlterRole(), AlterRoleSet(), AlterSchemaOwner(), AlterStatistics(), AlterSubscription(), AlterSubscription_refresh(), AlterSubscriptionOwner(), AlterSubscriptionOwner_internal(), AlterSubscriptionOwner_oid(), AlterSystemSetConfigFile(), AlterTableMoveAll(), AlterTableNamespace(), AlterTableSpaceOptions(), AlterTSConfiguration(), AlterType(), AlterTypeNamespace(), AlterTypeNamespace_oid(), AlterTypeNamespaceInternal(), AlterTypeOwner(), AlterTypeOwnerInternal(), AlterUserMapping(), analyzeCTE(), analyzeCTETargetList(), anybit_typmodin(), anychar_typmodin(), anytime_typmod_check(), anytime_typmodin(), anytimestamp_typmod_check(), anytimestamp_typmodin(), appendElement(), appendKey(), apply_dispatch(), apply_handle_begin_prepare(), apply_handle_commit(), apply_handle_origin(), apply_handle_prepare(), apply_handle_stream_abort(), apply_handle_stream_commit(), apply_handle_stream_prepare(), apply_handle_stream_start(), apply_handle_stream_stop(), apply_typmod(), apply_typmod_special(), apw_start_database_worker(), apw_start_leader_worker(), array_agg_array_combine(), array_agg_array_transfn(), array_agg_deserialize(), array_agg_transfn(), array_append(), array_cat(), array_cmp(), array_contain_compare(), array_eq(), array_exec_setup(), array_fill(), array_fill_internal(), array_fill_with_lower_bounds(), array_get_slice(), array_in(), array_iterator(), array_map(), array_position_common(), array_positions(), array_prepend(), array_recv(), array_replace_internal(), array_sample(), array_send(), array_set_element(), array_set_element_expanded(), array_set_slice(), array_subscript_check_subscripts(), array_subscript_transform(), array_to_datum_internal(), array_to_tsvector(), ArrayCheckBoundsSafe(), ArrayGetIntegerTypmods(), ArrayGetNItemsSafe(), arrq_cons(), ascii(), ASN1_STRING_to_text(), assign_backendlist_entry(), assign_client_encoding(), assign_collations_walker(), assign_hypothetical_collations(), assign_record_type_identifier(), assignable_custom_variable_name(), assignOperTypes(), assignProcTypes(), AssignTransactionId(), AssignTypeArrayOid(), AssignTypeMultirangeArrayOid(), AssignTypeMultirangeOid(), Async_Notify(), ATAddCheckConstraint(), ATAddForeignKeyConstraint(), AtEOSubXact_SPI(), AtEOXact_SPI(), ATExecAddColumn(), ATExecAddConstraint(), ATExecAddIdentity(), ATExecAddIndexConstraint(), ATExecAddInherit(), ATExecAddOf(), ATExecAlterColumnGenericOptions(), ATExecAlterColumnType(), ATExecAlterConstraint(), ATExecAttachPartition(), ATExecAttachPartitionIdx(), ATExecChangeOwner(), ATExecCheckNotNull(), ATExecClusterOn(), ATExecColumnDefault(), ATExecDetachPartition(), ATExecDropColumn(), ATExecDropConstraint(), ATExecDropExpression(), ATExecDropIdentity(), ATExecDropInherit(), ATExecDropNotNull(), ATExecDropOf(), ATExecGenericOptions(), ATExecMergePartitions(), ATExecReplicaIdentity(), ATExecSetCompression(), ATExecSetExpression(), ATExecSetIdentity(), ATExecSetNotNull(), ATExecSetOptions(), ATExecSetRelOptions(), ATExecSetStatistics(), ATExecSetStorage(), ATExecSplitPartition(), ATExecValidateConstraint(), ATPrepAddColumn(), ATPrepAddInherit(), ATPrepAlterColumnType(), AtPrepare_Locks(), AtPrepare_Notify(), AtPrepare_RelationMap(), ATPrepChangePersistence(), ATPrepCmd(), ATPrepDropColumn(), ATPrepDropExpression(), ATPrepDropNotNull(), ATPrepSetNotNull(), ATPrepSetTableSpace(), ATRewriteTable(), ATRewriteTables(), ATSimplePermissions(), AtSubCommit_childXids(), attach_internal(), AttachPartitionEnsureIndexes(), auth_failed(), auth_peer(), autoinc(), autoprewarm_database_main(), autoprewarm_start_worker(), BackendInitialize(), BackendStartup(), BackgroundWorkerInitializeConnection(), BackgroundWorkerInitializeConnectionByOid(), BackgroundWorkerStateChange(), BaseBackupGetTargetHandle(), BasicOpenFilePerm(), bbsink_gzip_new(), bbsink_lz4_new(), bbsink_server_archive_contents(), bbsink_server_manifest_contents(), bbsink_server_new(), bbsink_zstd_new(), be_lo_close(), be_lo_get_fragment(), be_lo_lseek(), be_lo_lseek64(), be_lo_tell(), be_lo_tell64(), be_lo_unlink(), be_tls_init(), be_tls_open_server(), be_tls_read(), be_tls_write(), before_shmem_exit(), begin_prepare_cb_wrapper(), BeginCopyFrom(), BeginCopyTo(), BeginTransactionBlock(), bernoulli_beginsamplescan(), bgworker_die(), binary_decode(), binary_encode(), bit(), bit_and(), bit_catenate(), bit_in(), bit_or(), bit_overlay(), bit_recv(), bitgetbit(), bitsetbit(), bitsubstring(), bittoint4(), bittoint8(), bitxor(), blvalidate(), boolin(), BootstrapModeMain(), bpchar(), bpchar_input(), bqarr_in(), bqarr_out(), brin_bloom_summary_in(), brin_bloom_summary_recv(), brin_desummarize_range(), brin_doinsert(), brin_doupdate(), brin_getinsertbuffer(), brin_metapage_info(), brin_minmax_multi_summary_in(), brin_minmax_multi_summary_recv(), brin_page_items(), brin_page_type(), brin_revmap_data(), brin_summarize_range(), brinGetTupleForHeapBlock(), brininsert(), brinRevmapDesummarizeRange(), brinvalidate(), bt_check_every_level(), bt_check_level_from_leftmost(), bt_child_check(), bt_child_highkey_check(), bt_downlink_missing_check(), bt_entry_unique_check(), bt_index_block_validate(), bt_index_check_internal(), bt_leftmost_ignoring_half_dead(), bt_metap(), bt_multi_page_stats(), bt_normalize_tuple(), bt_page_items_bytea(), bt_page_items_internal(), bt_page_stats_internal(), bt_recheck_sibling_links(), bt_report_duplicate(), bt_right_page_check_scankey(), bt_target_page_check(), bt_tuple_present_callback(), btree_index_checkable(), btree_index_mainfork_expected(), BTreeTupleGetHeapTIDCareful(), btvacuumpage(), btvalidate(), build_attrmap_by_name(), build_attrmap_by_position(), build_column_default(), build_datatype(), build_server_first_message(), build_tuplestore_recursively(), BuildDescForRelation(), buildRelationAliases(), BuildRelationExtStatistics(), builtin_locale_encoding(), builtin_validate_locale(), BumpContextCreate(), bytea_overlay(), bytea_substring(), byteaGetBit(), byteaGetByte(), byteain(), byteaout(), byteaSetBit(), byteaSetByte(), calc_rank_cd(), call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_pltcl_start_proc(), call_real_check_hook(), call_string_check_hook(), cannotCastJsonbValue(), cash_dist(), cash_div_cash(), cash_div_flt4(), cash_div_flt8(), cash_div_int2(), cash_div_int4(), cash_div_int8(), cash_in(), CastCreate(), changeDependenciesOn(), char2wchar(), check_acl(), check_agg_arguments(), check_agg_arguments_walker(), check_agglevels_and_constraints(), check_and_set_sync_info(), check_can_set_role(), check_circularity(), check_collation_set(), check_conn_params(), check_default_partition_contents(), check_default_table_access_method(), check_default_tablespace(), check_default_text_search_config(), check_duplicates_in_publist(), check_enable_rls(), check_encoding_locale_matches(), check_exclusion_or_unique_constraint(), check_for_column_name_collision(), check_foreign_key(), check_ident_usermap(), check_index_is_clusterable(), check_lateral_ref_ok(), check_nested_generated_walker(), check_new_partition_bound(), check_object_ownership(), check_of_type(), check_parameter_resolution_walker(), check_parent_values_in_new_partitions(), check_partition_bounds_for_split_list(), check_partition_bounds_for_split_range(), check_partitions_for_split(), check_partitions_not_overlap_list(), check_password(), check_primary_key(), check_publication_add_relation(), check_publication_add_schema(), check_publications(), check_publications_origin(), check_relation_block_range(), check_relation_privileges(), check_relation_relkind(), check_relation_updatable(), check_restricted_library_name(), check_role(), check_role_grantor(), check_role_membership_authorization(), check_rolespec_name(), check_safe_enum_use(), check_session_authorization(), check_simple_rowfilter_expr_walker(), check_sql_fn_retval(), check_sql_fn_statements(), check_srf_call_placement(), check_ssl_key_file_permissions(), check_stack_depth(), check_temp_tablespaces(), check_transform_function(), check_two_partitions_bounds_range(), check_ungrouped_columns_walker(), check_unicode_value(), check_valid_extension_name(), check_valid_version_name(), CheckAlterPublication(), CheckAlterTableIsSafe(), CheckAndGetDbnameFromConninfo(), CheckAttributeNamesTypes(), CheckAttributeType(), CheckCmdReplicaIdentity(), checkDataDir(), checkDomainOwner(), CheckDuplicateColumnOrPathNames(), checkEnumOwner(), checkExprIsVarFree(), CheckForSerializableConflictIn(), CheckForSerializableConflictOut(), CheckForSerializableConflictOutNeeded(), CheckForSessionAndXactLocks(), CheckFunctionValidatorAccess(), CheckIndexCompatible(), checkInsertTargets(), checkJsonOutputFormat(), CheckLogicalDecodingRequirements(), checkMembershipInCurrentExtension(), CheckMyDatabase(), checkNameSpaceConflicts(), checkPartition(), CheckPredicate(), CheckPubRelationColumnList(), CheckRecoveryConflictDeadlock(), CheckRelationTableSpaceMove(), CheckRequiredParameterValues(), CheckRestrictedOperation(), checkRuleResultList(), CheckSASLAuth(), CheckSelectLocking(), CheckSetNamespace(), checkSharedDependencies(), CheckSlotPermissions(), CheckSlotRequirements(), checkStringLen(), CheckSubscriptionRelkind(), CheckTableNotInUse(), CheckTablespaceDirectory(), checkTargetlistEntrySQL92(), checkTimezoneIsUsedForCast(), CheckTransactionBlock(), CheckValidResultRel(), CheckValidRowMarkRel(), CheckVarSlotCompatibility(), checkViewColumns(), checkWellFormedRecursion(), checkWellFormedRecursionWalker(), choose_hashed_setop(), chr(), cidr_abbrev(), cidr_set_masklen(), circle_in(), circle_poly(), circle_recv(), ClientAuthentication(), CloneFkReferencing(), ClosePipeFromProgram(), ClosePipeToProgram(), cluster(), cluster_rel(), coerce_record_to_complex(), coerce_to_boolean(), coerce_to_common_type(), coerce_to_specific_type_typmod(), coerceJsonFuncExpr(), CollationCreate(), collectMatchBitmap(), colNameToVar(), CommandCounterIncrement(), CommentObject(), commit_prepared_cb_wrapper(), comparetup_index_btree_tiebreak(), compatConnectbyTupleDescs(), compatCrosstabTupleDescs(), compatible_oper(), compile_plperl_function(), compile_pltcl_function(), compileTheLexeme(), compileTheSubstitute(), complex_in(), compute_common_attribute(), compute_function_attributes(), compute_return_type(), ComputeIndexAttrs(), ComputePartitionAttrs(), connect_pg_server(), connectby_text(), connectby_text_serial(), ConstraintSetParentConstraint(), construct_md_array(), ConversionCreate(), convert_and_check_filename(), convert_any_priv_string(), convert_column_name(), convert_function_name(), convert_type_name(), convertJsonbArray(), convertJsonbObject(), cookConstraint(), cookDefault(), copy_replication_slot(), copy_table(), CopyFrom(), CopyGetAttnums(), CopyGetData(), CopyReadAttributesCSV(), CopyReadAttributesText(), CopyReadBinaryAttribute(), CopyReadLineText(), CopyXLogRecordToWAL(), countVariablesFromJsonb(), create_ctas_nodata(), create_distinct_paths(), create_ordinary_grouping_paths(), create_tablespace_directories(), CreateAccessMethod(), CreateCast(), CreateConversionCommand(), createdb(), CreateDecodingContext(), CreateEventTrigger(), CreateExtension(), CreateExtensionInternal(), CreateForeignDataWrapper(), CreateForeignServer(), CreateFunction(), CreateInheritance(), CreateInitDecodingContext(), CreateLockFile(), createNewConnection(), CreateOpFamily(), createPartitionTable(), CreatePolicy(), CreatePortal(), CreatePredicateLock(), CreateProceduralLanguage(), CreatePublication(), CreateRole(), CreateSchemaCommand(), CreateStatistics(), CreateSubscription(), CreateTableAsRelExists(), CreateTableSpace(), CreateTransform(), CreateTriggerFiringOn(), CreateUserMapping(), crosstab(), crosstab_hash(), cube_a_f8(), cube_a_f8_f8(), cube_c_f8(), cube_c_f8_f8(), cube_coord(), cube_coord_llur(), cube_recv(), cube_subset(), currtid_for_view(), currtid_internal(), currval_oid(), cursor_to_xml(), cursor_to_xmlschema(), dacos(), dacosd(), dacosh(), dasin(), dasind(), datanh(), date2timestamp_opt_overflow(), date2timestamptz_opt_overflow(), date_in(), date_mi(), date_mii(), date_pli(), date_recv(), daterange_canonical(), datetime_timestamp(), DateTimeParseError(), datetimetz_timestamptz(), datum_to_json_internal(), datum_to_jsonb_internal(), datumGetSize(), db_encoding_convert(), dblink_build_sql_delete(), dblink_build_sql_insert(), dblink_build_sql_update(), dblink_connect(), dblink_connstr_check(), dblink_exec(), dblink_fdw_validator(), dblink_fetch(), dblink_get_conn(), dblink_res_error(), dblink_security_check(), DCH_from_char(), DCH_to_char(), dcos(), dcosd(), dcot(), dcotd(), DeadLockReport(), DecodeTimezoneName(), deconstruct_array(), DeconstructQualifiedName(), defGetBoolean(), defGetCopyHeaderChoice(), defGetCopyLogVerbosityChoice(), defGetCopyOnErrorChoice(), defGetInt32(), defGetInt64(), defGetNumeric(), defGetObjectId(), defGetQualifiedName(), defGetStreamingMode(), defGetString(), defGetStringList(), defGetTypeLength(), defGetTypeName(), define_custom_variable(), DefineAggregate(), DefineCollation(), DefineCompositeType(), DefineDomain(), DefineEnum(), DefineIndex(), DefineOpClass(), DefineOperator(), DefineOpFamily(), DefineQueryRewrite(), DefineRange(), DefineRelation(), DefineSavepoint(), DefineSequence(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSParser(), DefineTSTemplate(), DefineType(), DefineView(), DefineVirtualRelation(), deleteConnection(), DeleteInheritsTuple(), deserialize_deflist(), destroy_tablespace_directories(), DetermineTimeZoneAbbrevOffsetTS(), dintdict_init(), dispell_init(), div_var(), div_var_fast(), div_var_int(), dlog1(), dlog10(), do_analyze_rel(), do_compile(), do_pg_backup_start(), do_pg_backup_stop(), do_setval(), do_to_timestamp(), DoCopy(), domain_check_input(), domain_state_setup(), domainAddCheckConstraint(), domainAddNotNullConstraint(), DoPortalRewind(), dpow(), DropConfigurationMapping(), DropDatabase(), dropdb(), DropErrorMsgNonExistent(), DropErrorMsgWrongType(), dropOperators(), DropOwnedObjects(), dropProcedures(), DropRole(), DropSubscription(), DropTableSpace(), dsa_allocate_extended(), dsa_attach(), dshash_create(), dsimple_init(), dsin(), dsind(), dsm_backend_startup(), dsm_create(), dsnowball_init(), dsqrt(), dsynonym_init(), dtan(), dtand(), dtoi2(), dtoi4(), dtoi8(), dummy_object_relabel(), dumptuples(), dxsyn_init(), EA_get_flat_size(), each_array_start(), each_scalar(), each_worker_jsonb(), ean2isn(), ean2string(), elements_object_start(), elements_scalar(), elements_worker_jsonb(), emit_audit_message(), EnableDisableRule(), EnableDisableTrigger(), EnableLockPagesPrivilege(), EndPrepare(), EndTransactionBlock(), enforce_generic_type_consistency(), enlargeStringInfo(), entry_reset(), enum_cmp_internal(), enum_first(), enum_in(), enum_last(), enum_out(), enum_range_all(), enum_range_bounds(), enum_recv(), enum_send(), EnumValuesCreate(), errcode_for_dynamic_shared_memory(), error_commit_ts_disabled(), error_duplicate_filter_variable(), error_view_not_updatable(), errorConflictingDefElem(), errorMissingColumn(), errorMissingRTE(), esc_dec_len(), esc_decode(), EvalPlanQualFetchRowMark(), EvaluateParams(), exec_assign_value(), exec_bind_message(), exec_check_assignable(), exec_describe_portal_message(), exec_describe_statement_message(), exec_dynquery_with_params(), exec_eval_datum(), exec_eval_expr(), exec_execute_message(), exec_init_tuple_store(), exec_move_row_from_fields(), exec_object_restorecon(), exec_parse_message(), exec_replication_command(), exec_run_select(), exec_simple_query(), exec_stmt_assert(), exec_stmt_case(), exec_stmt_close(), exec_stmt_dynexecute(), exec_stmt_execsql(), exec_stmt_fetch(), exec_stmt_forc(), exec_stmt_foreach_a(), exec_stmt_fori(), exec_stmt_getdiag(), exec_stmt_open(), exec_stmt_raise(), exec_stmt_return(), exec_stmt_return_next(), exec_stmt_return_query(), ExecAlterDefaultPrivilegesStmt(), ExecAlterExtensionContentsRecurse(), ExecAlterExtensionContentsStmt(), ExecAlterExtensionStmt(), ExecBRInsertTriggers(), ExecBSDeleteTriggers(), ExecBSInsertTriggers(), ExecBSTruncateTriggers(), ExecBSUpdateTriggers(), ExecBuildUpdateProjection(), ExecCallTriggerFunc(), ExecCheckIndexConstraints(), ExecCheckPlanOutput(), ExecCheckTupleVisible(), ExecConstraints(), ExecCrossPartitionUpdate(), ExecCrossPartitionUpdateForeignKey(), execCurrentOf(), ExecCustomMarkPos(), ExecCustomRestrPos(), ExecDelete(), ExecEvalArrayExpr(), ExecEvalConstraintCheck(), ExecEvalConstraintNotNull(), ExecEvalCurrentOfExpr(), ExecEvalFieldSelect(), ExecEvalJsonExprPath(), ExecEvalParamExtern(), ExecEvalWholeRowVar(), ExecFindPartition(), ExecGrant_Language_check(), ExecGrant_Relation(), ExecGrant_Type_check(), ExecInitAgg(), ExecInitExprRec(), ExecInitFunc(), ExecInitMergeJoin(), ExecInitSubscriptingRef(), ExecLockRows(), ExecMakeFunctionResultSet(), ExecMakeTableFunctionResult(), ExecMergeMatched(), ExecOnConflictUpdate(), ExecOpenScanRelation(), ExecPartitionCheckEmitError(), ExecPrepareTuplestoreResult(), ExecRefreshMatView(), ExecReindex(), ExecScanSubPlan(), ExecSecLabelStmt(), ExecSetParamPlan(), ExecSetVariableStmt(), ExecUpdate(), execute_extension_script(), execute_sql_string(), executeBinaryArithmExpr(), ExecuteCallStmt(), executeDateTimeMethod(), ExecuteDoStmt(), ExecuteGrantStmt(), executeItemOptUnwrapTarget(), executeKeyValueMethod(), executeNumericItemMethod(), ExecuteQuery(), ExecuteTruncate(), executeUnaryArithmExpr(), ExecVacuum(), ExecWindowAgg(), ExecWithCheckOptions(), ExitPostmaster(), exp_var(), expand_col_privileges(), expand_vacuum_rel(), ExpandAllTables(), ExpandColumnRefStar(), expandTableLikeClause(), ExplainQuery(), ExportSnapshot(), exprType(), ExtendBufferedRelLocal(), ExtendBufferedRelShared(), extract_date(), extract_variadic_args(), ExtractExtensionList(), extractModify(), FastPathGetRelationLockEntry(), fatal_llvm_error_handler(), fatal_llvm_new_handler(), fatal_system_new_handler(), fetch_array_arg_replace_nulls(), fetch_cursor_param_value(), fetch_finfo_record(), fetch_fp_info(), fetch_remote_table_info(), fetch_table_list(), FetchPreparedStatement(), file_fdw_validator(), FileWriteV(), finalize_grouping_exprs_walker(), find_composite_type_dependencies(), find_expr_references_walker(), find_in_dynamic_libpath(), find_my_exec(), find_option(), find_provider(), find_typed_table_dependencies(), findDependentObjects(), findRangeCanonicalFunction(), findRangeSubOpclass(), findRangeSubtypeDiffFunction(), findTargetlistEntrySQL92(), findTypeAnalyzeFunction(), findTypeInputFunction(), findTypeOutputFunction(), findTypeReceiveFunction(), findTypeSendFunction(), findTypeSubscriptingFunction(), findTypeTypmodinFunction(), findTypeTypmodoutFunction(), finish_nodeitem(), finite_interval_mi(), finite_interval_pl(), fireRIRrules(), fixed_paramref_hook(), flatten_set_variable_args(), flattenJsonPathParseItem(), float4in_internal(), float8_timestamptz(), float8in_internal(), float_overflow_error(), float_underflow_error(), float_zero_divide_error(), FloatExceptionHandler(), fmgr_info_cxt_security(), fmgr_internal_validator(), fmgr_sql(), fmgr_sql_validator(), forbidden_in_wal_sender(), forkname_to_number(), free_parsestate(), FreezeMultiXactId(), from_char_parse_int_len(), from_char_seq_search(), from_char_set_int(), from_char_set_mode(), fsm_page_contents(), ftoi2(), ftoi4(), ftoi8(), func_select_candidate(), g_cube_distance(), g_int_compress(), g_int_decompress(), gai_strerror(), gbtreekey_in(), gbtreekey_out(), gen_random_uuid(), generate_recursion_path(), generate_series_step_int4(), generate_series_step_int8(), generate_series_step_numeric(), generate_series_timestamp(), generate_series_timestamptz_internal(), generateClonedIndexStmt(), GenerationContextCreate(), Generic_Text_IC_like(), GenericMatchText(), get_am_type_oid(), get_cached_rowtype(), get_cast_oid(), get_collation_actual_version(), get_collation_oid(), get_connect_string(), get_controlfile_by_exact_path(), get_conversion_oid(), get_crosstab_tuplestore(), get_database_oid(), get_domain_constraint_oid(), get_event_trigger_oid(), get_expr_result_tupdesc(), get_extension_oid(), get_fn_opclass_options(), get_foreign_data_wrapper_oid(), get_foreign_server_oid(), get_func_expr(), get_language_oid(), get_multirange_io_data(), get_namespace_oid(), get_object_address(), get_object_address_attrdef(), get_object_address_attribute(), get_object_address_defacl(), get_object_address_opf_member(), get_object_address_publication_rel(), get_object_address_publication_schema(), get_object_address_relobject(), get_object_address_type(), get_object_address_usermapping(), get_page_from_raw(), get_publication_oid(), get_range_io_data(), get_raw_page_1_9(), get_raw_page_fork_1_9(), get_raw_page_internal(), get_record_type_from_argument(), get_record_type_from_query(), get_relation_by_qualified_name(), get_relation_constraint_attnos(), get_relation_constraint_oid(), get_relation_info(), get_relation_policy_oid(), get_required_extension(), get_rewrite_oid(), get_role_oid(), get_rolespec_oid(), get_rolespec_tuple(), get_rte_attribute_is_dropped(), get_sort_group_operators(), get_sql_insert(), get_sql_update(), get_statistics_object_oid(), get_subscription_oid(), get_tablespace_oid(), get_th(), get_transform_oid(), get_trigger_oid(), get_ts_config_oid(), get_ts_dict_oid(), get_ts_parser_func(), get_ts_parser_oid(), get_ts_template_func(), get_ts_template_oid(), get_tsearch_config_filename(), get_tuple_of_interest(), get_windowfunc_expr_helper(), getAffixFlagSet(), getArrayIndex(), GetAttributeCompression(), GetAttributeStorage(), GetColumnDefCollation(), GetConfFilesInDir(), GetConfigOption(), GetConfigOptionByName(), GetConfigOptionResetString(), GetConflictingVirtualXIDs(), GetCurrentCommandId(), GetCurrentTimeUsec(), getdatafield(), GetDefaultOpClass(), GetDefaultTablespace(), GetExtensibleNodeEntry(), GetFdwRoutineByServerId(), GetFileBackupMethod(), getid(), GetIndexAmRoutineByAmId(), getJsonPathVariable(), GetLocalVictimBuffer(), GetMultiXactIdMembers(), GetNewMultiXactId(), GetNewTransactionId(), getNextFlagFromString(), GetOldestUnsummarizedLSN(), GetRunningTransactionData(), GetSafeSnapshot(), GetSerializableTransactionSnapshot(), GetSerializableTransactionSnapshotInt(), GetSnapshotData(), gettoken_query(), gettoken_query_standard(), gettoken_tsvector(), getTokenTypes(), GetTupleForTrigger(), getTypeBinaryInputInfo(), getTypeBinaryOutputInfo(), getTypeInputInfo(), getTypeOutputInfo(), GetUserMapping(), GetUserNameFromId(), GetWALBlockInfo(), getWeights(), ghstore_in(), ghstore_out(), gin_clean_pending_list(), gin_leafpage_items(), gin_metapage_info(), gin_page_opaque_info(), ginadjustmembers(), ginCombineData(), GinFormTuple(), ginvalidate(), gist_page_items(), gist_page_items_bytea(), gist_page_opaque_info(), gistadjustmembers(), gistcheckpage(), gistSplit(), gistUserPicksplit(), gistvalidate(), GrantRole(), grouping_planner(), gtrgm_in(), gtrgm_out(), gtsvectorin(), guc_malloc(), guc_realloc(), handle_streamed_transaction(), HandleConcurrentAbort(), HandleFunctionRequest(), HandleParallelApplyMessage(), HandleParallelApplyMessages(), HandleParallelMessages(), HandlePgArchInterrupts(), HandleUploadManifestPacket(), has_sequence_privilege_id(), has_sequence_privilege_id_id(), has_sequence_privilege_id_name(), has_sequence_privilege_name(), has_sequence_privilege_name_id(), has_sequence_privilege_name_name(), hash_array(), hash_array_extended(), hash_array_start(), hash_bitmap_info(), hash_create(), hash_metapage_info(), hash_multirange(), hash_multirange_extended(), hash_page_items(), hash_page_stats(), hash_page_type(), hash_range(), hash_range_extended(), hash_record(), hash_record_extended(), hash_scalar(), hash_search_with_hash_value(), hashbpchar(), hashbpcharextended(), hashtext(), hashtextextended(), hashvalidate(), heap_acquire_tuplock(), heap_create(), heap_create_with_catalog(), heap_delete(), heap_fetch_toast_slice(), heap_force_common(), heap_form_minimal_tuple(), heap_form_tuple(), heap_getnext(), heap_inplace_update(), heap_lock_tuple(), heap_page_items(), heap_pre_freeze_checks(), heap_prepare_freeze_tuple(), heap_prepare_insert(), heap_truncate_check_FKs(), heap_tuple_infomask_flags(), heap_update(), heapam_index_build_range_scan(), heapam_index_validate_scan(), heapam_tuple_lock(), hex_decode_safe(), hlparsetext(), HoldPinnedPortals(), hstore_from_array(), hstore_from_arrays(), hstore_populate_record(), hstore_recv(), hstore_subscript_assign(), hstore_subscript_transform(), hstore_to_plpython(), hstoreArrayToPairs(), hstoreCheckKeyLen(), hstoreCheckKeyLength(), hstoreCheckValLen(), hstoreCheckValLength(), i4tochar(), i4toi2(), i8tooid(), icu_language_tag(), icu_validate_locale(), identify_update_path(), ImportForeignSchema(), ImportSnapshot(), in_range_float4_float8(), in_range_float8_float8(), in_range_int2_int4(), in_range_int4_int4(), in_range_int4_int8(), in_range_int8_int8(), in_range_interval_interval(), in_range_numeric_numeric(), in_range_time_interval(), in_range_timestamp_interval(), in_range_timestamptz_interval(), in_range_timetz_interval(), index_check_primary_key(), index_concurrently_create_copy(), index_constraint_create(), index_create(), index_delete_check_htid(), index_drop(), index_form_tuple_context(), index_opclass_options(), IndexOnlyNext(), inet_abbrev(), inet_merge(), inet_set_masklen(), inetand(), inetmi(), inetor(), infer_arbiter_indexes(), init_execution_state(), init_MultiFuncCall(), init_params(), init_sexpr(), initArrayResultArr(), InitControlFile(), InitFileAccess(), initGinState(), initialize_dh(), initialize_ecdh(), initialize_peragg(), InitializeClientEncoding(), InitializeMaxBackends(), InitializeSessionUserId(), InitLocalBuffers(), InitMaterializedSRF(), InitPgFdwOptions(), InitPostgres(), InitProcess(), InitTempTableNamespace(), initTrie(), InitWalRecovery(), InitXLogReaderState(), inner_subltree(), insert_username(), InsertRule(), instantiate_empty_record_variable(), int24div(), int24mi(), int24mul(), int24pl(), int28div(), int28mi(), int28mul(), int28pl(), int2_dist(), int2abs(), int2div(), int2mi(), int2mod(), int2mul(), int2pl(), int2um(), int2vectorin(), int2vectorrecv(), int42div(), int42mi(), int42mul(), int42pl(), int48div(), int48mi(), int48mul(), int48pl(), int4_dist(), int4abs(), int4div(), int4gcd_internal(), int4inc(), int4lcm(), int4mi(), int4mod(), int4mul(), int4pl(), int4random(), int4range_canonical(), int4um(), int82(), int82div(), int82mi(), int82mul(), int82pl(), int84(), int84div(), int84mi(), int84mul(), int84pl(), int8_dist(), int8abs(), int8dec(), int8div(), int8gcd_internal(), int8inc(), int8lcm(), int8mi(), int8mod(), int8mul(), int8pl(), int8random(), int8range_canonical(), int8um(), internal_get_result_type(), internal_inetpl(), internal_load_library(), interpret_AS_clause(), interpret_func_parallel(), interpret_func_support(), interpret_function_parameter_list(), interval_avg(), interval_div(), interval_in(), interval_justify_days(), interval_justify_hours(), interval_justify_interval(), interval_mi(), interval_mul(), interval_part_common(), interval_pl(), interval_sum(), interval_time(), interval_trunc(), interval_um_internal(), intervaltypmodin(), intorel_startup(), inv_open(), inv_read(), inv_seek(), inv_truncate(), inv_write(), iso8859_to_utf8(), issue_xlog_fsync(), IsThereCollationInNamespace(), IsThereFunctionInNamespace(), IsThereOpClassInNamespace(), IsThereOpFamilyInNamespace(), json_agg_transfn_worker(), json_build_object_worker(), json_errsave_error(), json_object(), json_object_agg_transfn_worker(), json_object_two_arg(), json_validate(), jsonb_agg_transfn_worker(), jsonb_array_length(), jsonb_build_object_worker(), jsonb_delete(), jsonb_delete_array(), jsonb_delete_idx(), jsonb_delete_path(), jsonb_insert(), jsonb_object(), jsonb_object_agg_transfn_worker(), jsonb_object_keys(), jsonb_object_two_arg(), jsonb_path_match_internal(), jsonb_set(), jsonb_set_lax(), jsonb_subscript_check_subscripts(), jsonb_subscript_transform(), JsonEncodeDateTime(), JsonItemFromDatum(), jsonPathFromCstring(), JsonPathQuery(), JsonPathValue(), JsValueToJsObject(), LargeObjectDrop(), lastval(), length_in_encoding(), libpqrcv_alter_slot(), libpqrcv_check_conninfo(), libpqrcv_connect(), libpqrcv_create_slot(), libpqrcv_endstreaming(), libpqrcv_exec(), libpqrcv_get_conninfo(), libpqrcv_get_dbname_from_conninfo(), libpqrcv_identify_system(), libpqrcv_processTuples(), libpqrcv_readtimelinehistoryfile(), libpqrcv_receive(), libpqrcv_send(), libpqrcv_startstreaming(), libpqsrv_connect_prepare(), like_fixed_prefix(), line_construct_pp(), line_decode(), line_in(), line_recv(), ln_var(), lo_get_fragment_internal(), lo_read(), lo_truncate_internal(), lo_write(), load_categories_hash(), load_critical_index(), load_dh_file(), load_enum_cache_data(), load_external_function(), load_hba(), load_libraries(), LoadArchiveLibrary(), LocalToUtf(), locate_stem_module(), lock_twophase_recover(), LockAcquireExtended(), LockGXact(), LockSchemaList(), LockTableRecurse(), LockViewRecurse_walker(), LogicalParallelApplyLoop(), logicalrep_rel_mark_updatable(), logicalrep_rel_open(), logicalrep_report_missing_attrs(), logicalrep_worker_attach(), logicalrep_worker_launch(), LogicalRepApplyLoop(), LogicalRepSyncTableStart(), lookup_agg_function(), lookup_am_handler_func(), lookup_fdw_handler_func(), lookup_rowtype_tupdesc_domain(), lookup_rowtype_tupdesc_internal(), lookup_type_cache(), LookupFuncName(), LookupFuncWithArgs(), LookupOperName(), LookupTypeNameExtended(), LookupTypeNameOid(), lowerstr_with_len(), lpad(), lt_q_regex(), ltree_concat(), ltree_gist_in(), ltree_gist_out(), ltree_gist_relopts_validator(), ltree_to_plpython(), ltxtq_out(), ltxtq_send(), lz4_decompress_datum(), lz4_decompress_datum_slice(), macaddr8_in(), macaddr8tomacaddr(), macaddr_in(), make_absolute_path(), make_callstmt_target(), make_date(), make_distinct_op(), make_expanded_record_from_tupdesc(), make_expanded_record_from_typeid(), make_icu_collator(), make_inh_translation_list(), make_interval(), make_modifytable(), make_op(), make_outerjoininfo(), make_pathkeys_for_window(), make_result_opt_error(), make_row_comparison_op(), make_row_distinct_op(), make_ruledef(), make_scalar_array_op(), make_time(), make_timestamp_internal(), make_timestamptz_at_timezone(), make_tsvector(), makeMultirangeTypeName(), makepol(), makeRangeVarFromNameList(), makeWholeRowVar(), map_sql_value_to_xml_value(), mark_index_clustered(), MarkAsPreparing(), MarkGUCPrefixReserved(), MarkInheritDetached(), MarkPortalActive(), matchLocks(), MatchText(), materializeResult(), md5_bytea(), md5_text(), mdextend(), mdreadv(), mdzeroextend(), MemoryContextAllocationFailure(), merge_acl_with_grant(), merge_collation_state(), merge_publications(), MergeAttributes(), MergeAttributesIntoExisting(), MergeCheckConstraint(), MergeChildAttribute(), MergeConstraintsIntoExisting(), MergeInheritedAttribute(), MergeWithExistingConstraint(), metaphone(), moddatetime(), movedb(), moveSplitTableRows(), mul_size(), multirange_constructor2(), multirange_in(), namerecv(), NamespaceCreate(), network_host(), network_in(), network_out(), network_recv(), network_show(), NextCopyFrom(), NextCopyFromRawFields(), nextval_internal(), NIAddAffix(), NIImportAffixes(), NIImportDictionary(), NIImportOOAffixes(), NISortDictionary(), NonFiniteIntervalPart(), NonFiniteTimestampTzPart(), normal_rand(), NUM_processor(), NUMDesc_prepare(), numeric_div_opt_error(), numeric_div_trunc(), numeric_fac(), numeric_in(), numeric_int2(), numeric_int4_opt_error(), numeric_int8_opt_error(), numeric_ln(), numeric_log(), numeric_mod_opt_error(), numeric_pg_lsn(), numeric_power(), numeric_recv(), numeric_sqrt(), numerictypmodin(), numericvar_to_double_no_overflow(), object_aclmask_ext(), object_ownercheck(), objectNamesToOids(), ObjectsInPublicationToOids(), oidvectorrecv(), okeys_array_start(), okeys_scalar(), on_proc_exit(), on_shmem_exit(), OnConflict_CheckForSerializationFailure(), op_error(), OpClassCacheLookup(), OpenPipeStream(), OpenTableList(), OpenTransientFilePerm(), OperatorCreate(), OperatorShellMake(), OperatorUpd(), OperatorValidateParams(), OpFamilyCacheLookup(), pa_send_data(), pa_wait_for_xact_finish(), page_checksum_internal(), page_header(), PageAddItemExtended(), PageGetItemIdCareful(), PageIndexMultiDelete(), PageIndexTupleDelete(), PageIndexTupleDeleteNoCompact(), PageIndexTupleOverwrite(), PageIsVerifiedExtended(), PageRepairFragmentation(), pair_decode(), palloc_btree_page(), ParallelApplyWorkerMain(), ParallelWorkerMain(), ParameterAclLookup(), parse_affentry(), parse_and_validate_value(), parse_basebackup_options(), parse_datetime(), parse_extension_control_file(), parse_fcall_arguments(), parse_format(), parse_hba_auth_opt(), parse_hba_line(), parse_ident(), parse_jsonb_index_flags(), parse_key_value_arrays(), parse_lquery(), parse_ltree(), parse_one_reloption(), parse_output_parameters(), parse_phrase_operator(), parse_publication_options(), parse_re_flags(), parse_sane_timezone(), parse_snapshot(), parse_subscription_options(), parse_test_flags(), parse_tsquery(), ParseAlterReplSlotOptions(), parseCheckAggregates(), parseCreateReplSlotOptions(), ParseFuncOrColumn(), parseIntFromText(), parseNameAndArgTypes(), parseRelOptionsInternal(), parserOpenTable(), parsetext(), parseTypeString(), parseVxidFromText(), parseXidFromText(), partitioned_table_reloptions(), path_add(), path_decode(), path_in(), path_poly(), path_recv(), PathNameOpenFilePerm(), pclose_check(), percentile_cont_final_common(), percentile_disc_final(), perform_base_backup(), perform_default_encoding_conversion(), PerformCursorOpen(), PerformPortalClose(), PerformPortalFetch(), PerformWalRecovery(), pg_analyze_and_rewrite_varparams(), pg_any_to_server(), pg_attribute_aclcheck_all_ext(), pg_attribute_aclmask_ext(), pg_attribute_noreturn(), pg_backup_start(), pg_backup_stop(), pg_base64_decode(), pg_be_scram_build_secret(), pg_buffercache_evict(), pg_cancel_backend(), pg_class_aclmask_ext(), pg_collation_actual_version(), pg_collation_for(), pg_convert(), pg_create_restore_point(), pg_crypt(), pg_cryptohash_create(), pg_current_logfile(), pg_current_wal_flush_lsn(), pg_current_wal_insert_lsn(), pg_current_wal_lsn(), pg_database_collation_actual_version(), pg_decode_startup(), pg_decrypt(), pg_decrypt_iv(), pg_dependencies_in(), pg_dependencies_recv(), pg_do_encoding_conversion(), pg_encrypt(), pg_encrypt_iv(), pg_event_trigger_ddl_commands(), pg_event_trigger_dropped_objects(), pg_event_trigger_table_rewrite_oid(), pg_event_trigger_table_rewrite_reason(), pg_extension_config_dump(), pg_freespace(), pg_gen_salt(), pg_gen_salt_rounds(), pg_get_expr_worker(), pg_get_functiondef(), pg_get_multixact_members(), pg_get_object_address(), pg_get_serial_sequence(), pg_get_wal_record_info(), pg_get_wal_records_info_till_end_of_wal(), pg_get_wal_replay_pause_state(), pg_get_wal_stats_till_end_of_wal(), pg_hmac_create(), pg_import_system_collations(), pg_is_wal_replay_paused(), pg_largeobject_aclmask_snapshot(), pg_log_standby_snapshot(), pg_logical_slot_get_changes_guts(), pg_ls_replslotdir(), pg_ls_tmpdir(), pg_lsn_in(), pg_lsn_mii(), pg_lsn_pli(), pg_mcv_list_in(), pg_mcv_list_recv(), pg_namespace_aclmask_ext(), pg_ndistinct_in(), pg_ndistinct_recv(), pg_newlocale_from_collation(), pg_nextoid(), pg_parameter_acl_aclmask(), pg_prewarm(), pg_promote(), pg_random_bytes(), pg_read_binary_file_common(), pg_read_file_common(), pg_regerror(), pg_relpages(), pg_relpages_impl(), pg_relpagesbyid(), pg_replication_origin_create(), pg_replication_origin_session_progress(), pg_replication_origin_xact_setup(), pg_replication_slot_advance(), pg_sequence_parameters(), pg_set_regex_collation(), pg_size_bytes(), pg_snapshot_recv(), pg_split_walfile_name(), pg_stat_get_progress_info(), pg_stat_reset_shared(), pg_stat_reset_subscription_stats(), pg_stat_statements_info(), pg_stat_statements_internal(), pg_stats_ext_mcvlist_items(), pg_stop_making_pinned_objects(), pg_strtoint16_safe(), pg_strtoint32_safe(), pg_strtoint64_safe(), pg_switch_wal(), pg_sync_replication_slots(), pg_tablespace_location(), pg_terminate_backend(), pg_to_ascii(), pg_type_aclmask_ext(), pg_unicode_to_server(), pg_visibility(), pg_visibility_map(), pg_wait_until_termination(), pg_wal_replay_pause(), pg_wal_replay_resume(), pg_wal_summary_contents(), pg_walfile_name(), pg_walfile_name_offset(), pgfdw_cancel_query_begin(), pgfdw_cancel_query_end(), pgfdw_reject_incomplete_xact_state_change(), pgfdw_report_error(), pgfdw_security_check(), pgfdw_xact_callback(), PGLC_localeconv(), pglz_decompress_datum(), pglz_decompress_datum_slice(), pgoutput_column_list_init(), pgoutput_startup(), pgrowlocks(), PGSharedMemoryCreate(), pgss_shmem_startup(), pgstat_get_kind_from_str(), pgstat_heap(), pgstat_init_function_usage(), pgstat_relation(), pgstat_reset_replslot(), pgstatginindex(), pgstatginindex_internal(), pgstathashindex(), pgstatindex(), pgstatindex_impl(), pgstatindexbyid(), pgstattuple(), pgstattuple_approx(), pgstattuple_approx_internal(), pgstattuplebyid(), pipe_read_line(), placeChar(), plan_recursive_revoke(), plperl_array_to_datum(), plperl_build_tuple_result(), plperl_call_perl_event_trigger_func(), plperl_call_perl_func(), plperl_call_perl_trigger_func(), plperl_create_sub(), plperl_func_handler(), plperl_init_interp(), plperl_modify_tuple(), plperl_return_next_internal(), plperl_spi_execute_fetch_result(), plperl_sv_to_datum(), plperl_sv_to_literal(), plperl_to_hstore(), plperl_trigger_handler(), plperl_trusted_init(), plperl_untrusted_init(), plperl_validator(), plpgsql_build_datatype_arrayof(), plpgsql_build_variable(), plpgsql_exec_event_trigger(), plpgsql_exec_function(), plpgsql_exec_get_datum_type(), plpgsql_exec_get_datum_type_info(), plpgsql_exec_trigger(), plpgsql_param_eval_generic(), plpgsql_param_eval_generic_ro(), plpgsql_param_eval_recfield(), plpgsql_parse_cwordrowtype(), plpgsql_parse_cwordtype(), plpgsql_parse_err_condition(), plpgsql_parse_wordrowtype(), plpgsql_parse_wordtype(), plpgsql_post_column_ref(), plpgsql_recognize_err_condition(), plpgsql_resolve_polymorphic_argtypes(), plpgsql_validator(), plpgsql_yyerror(), plpython_to_hstore(), pltcl_build_tuple_result(), pltcl_elog(), pltcl_func_handler(), pltcl_trigger_handler(), PLy_cursor_fetch(), PLy_elog_impl(), PLy_exec_function(), PLy_exec_trigger(), PLy_modify_tuple(), PLy_output(), PLy_procedure_create(), PLy_spi_execute_fetch_result(), PLyGenericObject_ToComposite(), PLyMapping_ToComposite(), PLyNumber_ToJsonbValue(), PLyObject_AsString(), PLyObject_ToJsonbValue(), PLySequence_ToArray(), PLySequence_ToArray_recurse(), PLySequence_ToComposite(), PLyUnicode_ToComposite(), policy_role_list_to_array(), poly_in(), poly_recv(), populate_array_check_dimension(), populate_array_report_expected_array(), populate_joinrel_with_paths(), populate_recordset_array_element_start(), populate_recordset_object_start(), populate_recordset_scalar(), populate_recordset_worker(), PortalDrop(), PortalRunSelect(), PortalSetResultFormat(), postgres_fdw_validator(), postgresAcquireSampleRowsFunc(), postgresBeginForeignInsert(), postgresExecForeignTruncate(), postgresImportForeignSchema(), PostgresMain(), postgresql_fdw_validator(), PostgresSingleUserMain(), PostmasterMain(), PostPrepare_Locks(), power_var(), power_var_int(), pq_copymsgbytes(), pq_getmessage(), pq_getmsgbyte(), pq_getmsgbytes(), pq_getmsgend(), pq_getmsgrawstring(), pq_getmsgstring(), pq_getmsgtext(), pq_startmsgread(), PreCommit_CheckForSerializationFailure(), PreCommit_Notify(), PreCommit_Portals(), predicatelock_twophase_recover(), PrefetchBuffer(), prepare_cb_wrapper(), prepare_sql_fn_parse_info(), PrepareForIncrementalBackup(), PrepareQuery(), PrepareRedoAdd(), PrepareTransaction(), preprocess_grouping_sets(), prepTuplestoreResult(), PreventCommandDuringRecovery(), PreventCommandIfParallelMode(), PreventCommandIfReadOnly(), PreventInTransactionBlock(), printtup_prepare_info(), ProcArrayAdd(), ProcedureCreate(), process_function_rte_ref(), process_matched_tle(), process_owned_by(), process_postgres_switches(), ProcessConfigFileInternal(), ProcessCopyOptions(), ProcessInterrupts(), ProcessRecoveryConflictInterrupt(), ProcessRepliesIfAny(), ProcessSSLStartup(), ProcessStandbyMessage(), ProcessStartupPacket(), ProcessTwoPhaseBuffer(), processTypesSpec(), ProcessUtilitySlow(), ProcessWalRcvInterrupts(), protect_out_of_mem(), prsd_headline(), prseof(), prssyntaxerror(), publication_add_relation(), publication_add_schema(), publication_translate_columns(), PublicationDropSchemas(), PublicationDropTables(), pushquery(), PushTransaction(), pushval_asis(), pushValue(), pushValue_internal(), pvsnprintf(), px_crypt_des(), px_THROW_ERROR(), qtext_load_file(), QTN2QT(), QualifiedNameGetCreationNamespace(), query_to_xml_internal(), queryin(), quickdie(), random_numeric(), random_var(), range_constructor3(), range_minus_internal(), range_parse(), range_parse_bound(), range_parse_flags(), range_serialize(), range_union_internal(), RangeVarAdjustRelationPersistence(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForAttachIndex(), RangeVarCallbackForDropRelation(), RangeVarCallbackForLockTable(), RangeVarCallbackForPolicy(), RangeVarCallbackForReindexIndex(), RangeVarCallbackForRenameRule(), RangeVarCallbackForRenameTrigger(), RangeVarCallbackMaintainsTable(), RangeVarCallbackOwnsRelation(), RangeVarGetAndCheckCreationNamespace(), RangeVarGetCreationNamespace(), RangeVarGetRelidExtended(), raw_heap_insert(), RE_compile(), RE_compile_and_cache(), RE_wchar_execute(), read_any_attr(), read_attr_value(), read_backup_label(), read_binary_file(), read_client_final_message(), read_client_first_message(), read_dictionary(), read_objtype_from_string(), read_relmap_file(), read_tablespace_map(), read_whole_file(), ReadArrayBinary(), ReadArrayDimensions(), ReadArrayStr(), ReadArrayToken(), ReadBufferExtended(), ReadControlFile(), ReadDimensionInt(), readRecoverySignalFile(), ReadReplicationSlot(), readstoplist(), ReadTwoPhaseFile(), ReassignOwnedObjects(), ReceiveCopyBinaryHeader(), recompute_limits(), record_cmp(), record_eq(), record_image_cmp(), record_image_eq(), record_in(), record_recv(), recordDependencyOnCurrentExtension(), RecoveryRequiresIntParameter(), recursive_revoke(), recv_password_packet(), refresh_by_match_merge(), refuseDupeIndexAttach(), regclassin(), regcollationin(), regcomp_auth_token(), regconfigin(), regdictionaryin(), regex_fixed_prefix(), regexp_count(), regexp_fixed_prefix(), regexp_instr(), regexp_like(), regexp_match(), regexp_split_to_array(), regexp_split_to_table(), regexp_substr(), RegisterBackgroundWorker(), RegisterExtensibleNodeEntry(), RegisterTimeout(), regnamespacein(), regoperatorin(), regoperin(), regprocedurein(), regprocin(), REGRESS_exec_check_perms(), REGRESS_object_access_hook(), REGRESS_object_access_hook_str(), REGRESS_utility_command(), regrolein(), reindex_index(), reindex_relation(), ReindexMultipleTables(), ReindexRelationConcurrently(), reject_target_detail(), RelationBuildPartitionKey(), RelationCacheInitializePhase3(), RelationCopyStorage(), RelationFindReplTupleByIndex(), RelationFindReplTupleSeq(), RelationGetBufferForTuple(), RelationSetNewRelfilenumber(), ReleaseOneSerializableXact(), ReleaseSavepoint(), RememberAllDependentForRebuilding(), remove_tablespace_symlink(), RemoveExtensionById(), RemoveInheritance(), RemoveObjects(), RemovePolicyById(), RemoveRelations(), RemoveRewriteRuleById(), RemoveSubscriptionRel(), RemoveTriggerById(), RemoveUserMapping(), rename_constraint_internal(), rename_policy(), renameatt_check(), renameatt_internal(), RenameConstraintById(), RenameDatabase(), RenameEnumLabel(), RenameRelationInternal(), RenameRewriteRule(), RenameRole(), RenameSchema(), RenameTableSpace(), renametrig(), renametrig_internal(), RenameType(), RenameTypeInternal(), repeat(), replace_percent_placeholders(), replace_rte_variables_mutator(), replace_text_regexp(), ReplaceVarsFromTargetList_callback(), ReplicationSlotAcquire(), ReplicationSlotAlter(), ReplicationSlotCreate(), ReplicationSlotDrop(), ReplicationSlotDropAtPubNode(), ReplicationSlotsDropDBSlots(), ReplicationSlotValidateName(), replorigin_advance(), replorigin_by_name(), replorigin_by_oid(), replorigin_check_prerequisites(), replorigin_create(), replorigin_session_reset(), replorigin_session_setup(), replorigin_state_clear(), ReplSlotSyncWorkerMain(), report_invalid_encoding(), report_name_conflict(), report_namespace_conflict(), report_newlocale_failure(), report_untranslatable_char(), reportDependentObjects(), ReportSlotConnectionError(), ReportWalSummaryError(), reserveAllocatedDesc(), resolve_anyarray_from_others(), resolve_anyelement_from_others(), resolve_anymultirange_from_others(), resolve_anyrange_from_others(), resolve_column_ref(), resolve_unique_index_expr(), ResolveOpClass(), RestoreGUCState(), RestoreSlotFromDisk(), restrict_and_check_grant(), revalidate_rectypeid(), RevalidateCachedQuery(), revmap_physical_extend(), RewriteQuery(), rewriteRuleAction(), rewriteSearchAndCycle(), rewriteTargetListIU(), rewriteTargetView(), ri_CheckTrigger(), ri_FetchConstraintInfo(), RI_FKey_check(), RI_Initial_Check(), ri_PerformCheck(), ri_ReportViolation(), rollback_prepared_cb_wrapper(), RollbackToSavepoint(), rpad(), run_apply_worker(), sanity_check_array(), sanity_check_tid_array(), SanityCheckBackgroundWorker(), satisfies_hash_partition(), scanNameSpaceForRefname(), scanNameSpaceForRelid(), scanNSItemForColumn(), scanRTEForColumn(), scram_exchange(), scram_init(), secure_open_gssapi(), secure_read(), secure_write(), select_common_collation(), select_common_type(), select_common_type_from_oids(), select_perl_context(), SendBaseBackup(), sendDir(), SendFunctionResult(), SendTimeLineHistory(), sepgsql_attribute_relabel(), sepgsql_avc_check_perms_label(), sepgsql_avc_init(), sepgsql_avc_unlabeled(), sepgsql_client_auth(), sepgsql_compute_avd(), sepgsql_compute_create(), sepgsql_get_label(), sepgsql_init_client_label(), sepgsql_mcstrans_in(), sepgsql_mcstrans_out(), sepgsql_object_relabel(), sepgsql_relation_relabel(), sepgsql_restorecon(), sepgsql_set_client_label(), sepgsql_utility_command(), serialize_expr_stats(), serialize_prepare_info(), server_check_detail(), set_config_by_name(), set_config_with_handle(), set_max_safe_fds(), set_var_from_non_decimal_integer_str(), set_var_from_str(), setCompoundAffixFlagValue(), SetDefaultACL(), setPath(), setPathArray(), setPathObject(), SetPossibleUnsafeConflict(), SetRWConflict(), setSchemaName(), setseed(), SetSerializableTransactionSnapshot(), setTargetTable(), SetTransactionSnapshot(), setup_background_workers(), setup_dynamic_shared_memory(), setup_pct_info(), setup_regexp_matches(), setup_test_matches(), SetUserIdAndContext(), SharedFileSetAttach(), shdepDropOwned(), shdepLockAndCheckObject(), shdepReassignOwned(), shell_check_detail(), shell_finish_command(), shell_get_sink(), shell_in(), shell_out(), shm_mq_receive(), shm_mq_sendv(), shm_toc_allocate(), shm_toc_insert(), ShmemAlloc(), ShmemAllocUnlocked(), ShmemInitStruct(), should_apply_changes_for_rel(), similar_escape_internal(), SlabContextCreate(), slot_modify_data(), slot_store_data(), SnapBuildInitialSnapshot(), SnapBuildRestore(), SnapBuildRestoreContents(), socket_set_nonblocking(), SocketBackend(), sort(), spgadjustmembers(), spgdoinsert(), spgFormInnerTuple(), spgFormNodeTuple(), spgGetCache(), spgvalidate(), SPI_cursor_open_internal(), split_part(), sqrt_var(), ssl_extension_info(), standard_ProcessUtility(), StandbySlotsHaveCaughtup(), StartAutovacuumWorker(), StartReplication(), StartupDecodingContext(), StartupReplicationOrigin(), StartupXLOG(), storeOperators(), StorePreparedStatement(), storeProcedures(), StoreRelCheck(), storeRow(), str_initcap(), str_tolower(), str_toupper(), str_udeescape(), stream_abort_cb_wrapper(), stream_change_cb_wrapper(), stream_commit_cb_wrapper(), stream_prepare_cb_wrapper(), stream_start_cb_wrapper(), stream_stop_cb_wrapper(), string2ean(), string_to_privilege(), string_to_uuid(), stringToQualifiedNameList(), substitute_libpath_macro(), SummarizeWAL(), suppress_redundant_updates_trigger(), SV_to_JsonbValue(), SwitchToUntrustedUser(), synchronize_one_slot(), SyncRepWaitForLSN(), systable_beginscan_ordered(), system_beginsamplescan(), system_rows_beginsamplescan(), system_time_beginsamplescan(), table_tuple_get_latest_tid(), tablesample_init(), TablespaceCreateDbspace(), TargetPrivilegesCheck(), tblspc_redo(), TerminateOtherDBBackends(), test_enc_conversion(), test_re_compile(), test_re_execute(), test_shm_mq(), test_shm_mq_main(), test_shm_mq_pipelined(), text_format(), text_format_append_string(), text_format_parse_digits(), text_format_parse_format(), text_format_string_conversion(), text_overlay(), text_position_setup(), text_starts_with(), text_substring(), text_to_bits(), textarray_to_strvaluelist(), textregexreplace(), textregexreplace_extended(), textToQualifiedNameList(), tfuncInitialize(), tfuncLoadRows(), thesaurus_init(), thesaurusRead(), throw_tcl_error(), tidin(), time_mi_interval(), time_part_common(), time_pl_interval(), time_recv(), timestamp2timestamptz_opt_overflow(), timestamp_age(), timestamp_bin(), timestamp_date(), timestamp_in(), timestamp_izone(), timestamp_mi(), timestamp_out(), timestamp_part_common(), timestamp_pl_interval(), timestamp_recv(), timestamp_time(), timestamp_to_char(), timestamp_trunc(), timestamp_zone(), timestamptz2timestamp(), timestamptz_age(), timestamptz_bin(), timestamptz_date(), timestamptz_in(), timestamptz_izone(), timestamptz_out(), timestamptz_part_common(), timestamptz_pl_interval_internal(), timestamptz_recv(), timestamptz_time(), timestamptz_timetz(), timestamptz_to_char(), timestamptz_trunc_internal(), timestamptz_zone(), timetz_izone(), timetz_mi_interval(), timetz_part_common(), timetz_pl_interval(), timetz_recv(), timetz_zone(), to_ascii_enc(), to_ascii_encname(), to_date(), to_json(), to_jsonb(), to_timestamp(), TopologicalSort(), tqueueReceiveSlot(), TransactionIdGetCommitTsData(), TransactionIdInRecentPast(), TransactionIdIsInProgress(), transformAExprNullIf(), transformAggregateCall(), transformAlterTableStmt(), transformArrayExpr(), transformAssignedExpr(), transformAssignmentIndirection(), transformAssignmentSubscripts(), transformCaseExpr(), transformCoalesceExpr(), transformCollateClause(), transformColumnDefinition(), transformColumnNameList(), transformColumnRef(), transformColumnType(), transformConstraintAttrs(), transformContainerSubscripts(), transformCreateStmt(), transformCreateTableAsStmt(), transformDeclareCursorStmt(), transformDistinctClause(), transformDistinctOnClause(), transformExprRecurse(), transformFkeyCheckAttrs(), transformFkeyGetPrimaryKey(), transformFrameOffset(), transformFromClauseItem(), transformGenericOptions(), transformGroupingFunc(), transformGroupingSet(), TransformGUCArray(), transformIndexConstraint(), transformIndexStmt(), transformIndirection(), transformInsertRow(), transformJsonAggConstructor(), transformJsonArrayQueryConstructor(), transformJsonBehavior(), transformJsonFuncExpr(), transformJsonIsPredicate(), transformJsonOutput(), transformJsonParseArg(), transformJsonParseExpr(), transformJsonReturning(), transformJsonSerializeExpr(), transformJsonTable(), transformJsonTableColumns(), transformJsonValueExpr(), transformLimitClause(), transformLockingClause(), transformMergeStmt(), transformMergeSupportFunc(), transformMultiAssignRef(), transformOnConflictArbiter(), transformParamRef(), transformPartitionBound(), transformPartitionBoundValue(), transformPartitionCmd(), transformPartitionCmdForMerge(), transformPartitionCmdForSplit(), transformPartitionRangeBounds(), transformPartitionSpec(), transformPLAssignStmt(), TransformPubWhereClauses(), transformRangeFunction(), transformRangeTableFunc(), transformRangeTableSample(), transformRelOptions(), transformReturningList(), transformRowExpr(), transformRuleStmt(), transformSelectStmt(), transformSetOperationStmt(), transformSetOperationTree(), transformStatsStmt(), transformSubLink(), transformTableConstraint(), transformTableLikeClause(), transformTypeCast(), transformUpdateTargetList(), transformValuesClause(), transformWindowDefinitions(), transformWindowFuncCall(), transformWithClause(), transformXmlExpr(), transformXmlSerialize(), translate(), triggered_change_notification(), trim_array(), truncate_check_activity(), truncate_check_rel(), truncate_identifier(), ts_headline_byid_opt(), ts_headline_json_byid_opt(), ts_headline_jsonb_byid_opt(), ts_stat_sql(), tsquery_phrase_distance(), tsquery_rewrite_query(), tsvector_concat(), tsvector_filter(), tsvector_update_trigger(), tsvectorin(), ttdummy(), tts_buffer_heap_getsysattr(), tts_buffer_is_current_xact_tuple(), tts_heap_getsysattr(), tts_heap_is_current_xact_tuple(), tts_minimal_getsysattr(), tts_minimal_is_current_xact_tuple(), tts_virtual_getsysattr(), tts_virtual_is_current_xact_tuple(), tuple_data_split(), tuple_data_split_internal(), tupledesc_match(), tuples_equal(), TwoPhaseTransactionGid(), TypeCreate(), TypeGetTupleDesc(), typenameType(), typenameTypeMod(), TypeShellMake(), typeStringToTypeName(), uint32in_subr(), uint64in_subr(), unaccent_dict(), unaccent_init(), unicode_norm_form_from_string(), unique_key_recheck(), uniqueifyJsonbObject(), unistr(), unknown_attribute(), UserAbortTransactionBlock(), utf8_to_iso8859(), utf8_to_win(), UtfToLocal(), uuid_generate_internal(), vac_update_relstats(), vacuum(), vacuum_open_relation(), validate_ddl_tags(), validate_option_array_item(), validate_pkattnums(), validate_relation_kind(), validate_remote_info(), validate_table_rewrite_tags(), validateConnectbyTupleDesc(), validateDomainCheckConstraint(), validateDomainNotNullConstraint(), validateFkOnDeleteSetColumns(), validateInfiniteBounds(), ValidateInputLSNs(), ValidateJoinEstimator(), ValidateOperatorReference(), ValidatePgVersion(), validateRecoveryParameters(), ValidateRestrictionEstimator(), ValidateSlotSyncParams(), varbit(), varbit_in(), varbit_recv(), varchar(), varchar_input(), variable_coerce_param_hook(), variable_paramref_hook(), varstr_levenshtein(), verify_brin_page(), verify_cb(), verify_dictoptions(), verify_gist_page(), verify_hash_page(), verify_heapam(), verifyBackupPageConsistency(), VirtualXactLock(), wait_for_workers_to_become_ready(), WaitEventCustomNew(), WaitForParallelWorkersToAttach(), WaitForParallelWorkersToExit(), WaitForParallelWorkersToFinish(), WaitReadBuffers(), WalRcvFetchTimeLineHistoryFiles(), WALReadRaiseError(), WalReceiverMain(), widget_in(), width_bucket_array(), width_bucket_float8(), width_bucket_numeric(), win_to_utf8(), window_nth_value(), window_ntile(), worker_spi_launch(), write_auto_conf_file(), X509_NAME_field_to_text(), X509_NAME_to_cstring(), xlog_decode(), XLogFileCopy(), XLogPageRead(), XLogReadBufferForRedoExtended(), XlogReadTwoPhaseData(), XLogWalRcvProcessMsg(), xml_out_internal(), xmlcomment(), xmlpi(), XmlTableGetValue(), XmlTableSetColumnFilter(), XmlTableSetNamespace(), XmlTableSetRowFilter(), xmltotext_with_options(), xmlvalidate(), xpath_table(), and xslt_process().

◆ errcode_for_file_access()

int errcode_for_file_access ( void  )

Definition at line 878 of file elog.c.

879 {
881 
882  /* we don't bother incrementing recursion_depth */
884 
885  switch (edata->saved_errno)
886  {
887  /* Permission-denied failures */
888  case EPERM: /* Not super-user */
889  case EACCES: /* Permission denied */
890 #ifdef EROFS
891  case EROFS: /* Read only file system */
892 #endif
893  edata->sqlerrcode = ERRCODE_INSUFFICIENT_PRIVILEGE;
894  break;
895 
896  /* File not found */
897  case ENOENT: /* No such file or directory */
898  edata->sqlerrcode = ERRCODE_UNDEFINED_FILE;
899  break;
900 
901  /* Duplicate file */
902  case EEXIST: /* File exists */
903  edata->sqlerrcode = ERRCODE_DUPLICATE_FILE;
904  break;
905 
906  /* Wrong object type or state */
907  case ENOTDIR: /* Not a directory */
908  case EISDIR: /* Is a directory */
909  case ENOTEMPTY: /* Directory not empty */
910  edata->sqlerrcode = ERRCODE_WRONG_OBJECT_TYPE;
911  break;
912 
913  /* Insufficient resources */
914  case ENOSPC: /* No space left on device */
915  edata->sqlerrcode = ERRCODE_DISK_FULL;
916  break;
917 
918  case ENOMEM: /* Out of memory */
919  edata->sqlerrcode = ERRCODE_OUT_OF_MEMORY;
920  break;
921 
922  case ENFILE: /* File table overflow */
923  case EMFILE: /* Too many open files */
924  edata->sqlerrcode = ERRCODE_INSUFFICIENT_RESOURCES;
925  break;
926 
927  /* Hardware failure */
928  case EIO: /* I/O error */
929  edata->sqlerrcode = ERRCODE_IO_ERROR;
930  break;
931 
932  /* All else is classified as internal errors */
933  default:
934  edata->sqlerrcode = ERRCODE_INTERNAL_ERROR;
935  break;
936  }
937 
938  return 0; /* return value does not matter */
939 }
int saved_errno
Definition: elog.h:454

References CHECK_STACK_DEPTH, errordata, errordata_stack_depth, ErrorData::saved_errno, and ErrorData::sqlerrcode.

Referenced by _mdfd_getseg(), _mdnblocks(), AddToDataDirLockFile(), AlterSystemSetConfigFile(), ApplyLogicalMappingFile(), apw_dump_now(), apw_load_buffers(), assign_wal_sync_method(), basebackup_read_file(), basic_archive_file(), bbsink_server_archive_contents(), bbsink_server_begin_archive(), bbsink_server_begin_manifest(), bbsink_server_end_archive(), bbsink_server_manifest_contents(), bbsink_server_new(), be_lo_export(), BeginCopyFrom(), BeginCopyTo(), BootStrapXLOG(), BufFileDumpBuffer(), BufFileLoadBuffer(), BufFileOpenFileSet(), BufFileReadCommon(), BufFileSeek(), BufFileSize(), BufFileTruncateFileSet(), calculate_relation_size(), calculate_tablespace_size(), ChangeToDataDir(), check_ssl_key_file_permissions(), checkDataDir(), CheckPointLogicalRewriteHeap(), CheckPointReplicationOrigin(), CheckPointSnapBuild(), CheckXLogRemoved(), ClosePipeFromProgram(), ClosePipeToProgram(), ClosePostmasterPorts(), compare_files(), copy_file(), copydir(), CopyGetData(), CopySendEndOfRow(), create_tablespace_directories(), CreateDirAndVersionFile(), CreateLockFile(), CreateOptsFile(), CreateSlotOnDisk(), db_dir_size(), DebugFileOpen(), DeleteAllExportedSnapshotFiles(), destroy_tablespace_directories(), do_pg_backup_stop(), do_truncate(), dsm_cleanup_for_mmap(), dsm_impl_mmap(), durable_rename(), durable_unlink(), EndCopy(), EndCopyFrom(), entry_reset(), errcode_for_dynamic_shared_memory(), ExecHashJoinNewBatch(), existsTimeLineHistory(), ExportSnapshot(), fileAnalyzeForeignTable(), FileClose(), fsync_fname_ext(), gc_qtexts(), get_controlfile_by_exact_path(), get_dirent_type(), GetConfFilesInDir(), getInstallationPaths(), hashagg_batch_read(), heap_xlog_logical_rewrite(), ImportSnapshot(), InitPostgres(), InitPostmasterDeathWatchHandle(), InitWalRecovery(), internal_load_library(), issue_xlog_fsync(), KeepFileRestoredFromArchive(), lo_import_internal(), load_dh_file(), logfile_open(), logical_end_heap_rewrite(), logical_heap_rewrite_flush_mappings(), logical_rewrite_log_mapping(), ltsReadBlock(), ltsWriteBlock(), mdcreate(), mdextend(), mdimmedsync(), mdopenfork(), mdreadv(), mdtruncate(), mdunlinkfork(), mdwritev(), mdzeroextend(), normalize_exec_path(), open_auth_file(), OpenWalSummaryFile(), parse_extension_control_file(), PathNameCreateTemporaryDir(), PathNameCreateTemporaryFile(), PathNameDeleteTemporaryFile(), PathNameOpenTemporaryFile(), perform_base_backup(), pg_current_logfile(), pg_file_exists(), pg_flush_data(), pg_import_system_collations(), pg_ls_dir_files(), pg_promote(), pg_stat_file(), pg_tablespace_databases(), pg_tablespace_location(), pg_tzenumerate_next(), pg_tzenumerate_start(), pgarch_archiveDone(), pgarch_readyXlog(), PGReserveSemaphores(), PGSharedMemoryCreate(), pgss_shmem_shutdown(), pgss_shmem_startup(), pgstat_discard_stats(), pgstat_read_statsfile(), pgstat_write_statsfile(), pipe_read_line(), PostmasterMain(), PrepareRedoAdd(), ProcessSyncRequests(), qtext_load_file(), qtext_store(), read_backup_label(), read_binary_file(), read_relmap_file(), read_tablespace_map(), read_whole_file(), ReadControlFile(), ReadDirExtended(), ReadNextXLogRecord(), readRecoverySignalFile(), readTimeLineHistory(), ReadTwoPhaseFile(), ReadWalSummary(), RecheckDataDirLockFile(), RecreateTwoPhaseFile(), register_dirty_segment(), remove_tablespace_symlink(), RemovePgTempFilesInDir(), RemovePgTempRelationFilesInDbspace(), RemoveTwoPhaseFile(), RemoveWalSummaryIfOlderThan(), RemoveXlogFile(), ReorderBufferCleanupSerializedTXNs(), ReorderBufferRestoreChanges(), ReorderBufferRestoreCleanup(), ReorderBufferSerializeChange(), ReorderBufferSerializeTXN(), ReplicationSlotDropPtr(), ResetUnloggedRelationsInDbspaceDir(), ResetUnloggedRelationsInTablespaceDir(), RestoreArchivedFile(), RestoreSlotFromDisk(), run_ssl_passphrase_command(), SaveSlotToPath(), SendBackupManifest(), sendDir(), sendFile(), sendTablespace(), SendTimeLineHistory(), Setup_AF_UNIX(), shell_finish_command(), shell_run_command(), shell_send_data(), SlruReportIOError(), SnapBuildRestore(), SnapBuildRestoreContents(), SnapBuildSerialize(), SnapBuildSnapshotExists(), StartupReplicationOrigin(), sts_parallel_scan_next(), sts_read_tuple(), SummarizeWAL(), SyncDataDirectory(), SyncPostCheckpoint(), SysLogger_Start(), TablespaceCreateDbspace(), tokenize_auth_file(), tuplestore_copy_read_pointer(), tuplestore_gettuple(), tuplestore_puttuple_common(), tuplestore_rescan(), tuplestore_select_read_pointer(), unlink_if_exists_fname(), unlink_initfile(), update_controlfile(), update_metainfo_datafile(), ValidatePgVersion(), ValidateXLOGDirectoryStructure(), wal_segment_open(), WALReadRaiseError(), WalReceiverMain(), WalSndSegmentOpen(), write_auto_conf_file(), write_item(), write_relcache_init_file(), write_relmap_file(), WriteControlFile(), writeTimeLineHistory(), writeTimeLineHistoryFile(), WriteWalSummary(), XLogArchiveForceDone(), XLogArchiveNotify(), XLogFileClose(), XLogFileCopy(), XLogFileInit(), XLogFileInitInternal(), XLogFileOpen(), XLogFileRead(), XLogFileReadAnyTLI(), XLogInitNewTimeline(), XLogPageRead(), XlogReadTwoPhaseData(), XLogWalRcvClose(), XLogWalRcvWrite(), and XLogWrite().

◆ errcode_for_socket_access()

int errcode_for_socket_access ( void  )

Definition at line 951 of file elog.c.

952 {
954 
955  /* we don't bother incrementing recursion_depth */
957 
958  switch (edata->saved_errno)
959  {
960  /* Loss of connection */
962  edata->sqlerrcode = ERRCODE_CONNECTION_FAILURE;
963  break;
964 
965  /* All else is classified as internal errors */
966  default:
967  edata->sqlerrcode = ERRCODE_INTERNAL_ERROR;
968  break;
969  }
970 
971  return 0; /* return value does not matter */
972 }
#define ALL_CONNECTION_FAILURE_ERRNOS
Definition: port.h:121

References ALL_CONNECTION_FAILURE_ERRNOS, CHECK_STACK_DEPTH, errordata, errordata_stack_depth, ErrorData::saved_errno, and ErrorData::sqlerrcode.

Referenced by AcceptConnection(), auth_peer(), be_tls_open_server(), ident_inet(), InitPostmasterChild(), InitPostmasterDeathWatchHandle(), internal_flush_buffer(), ListenServerPort(), pq_getbyte_if_available(), pq_recvbuf(), ProcessStartupPacket(), SysLogger_Start(), SysLoggerMain(), and WaitEventSetWaitBlock().

◆ errcontext_msg()

int errcontext_msg ( const char *  fmt,
  ... 
)

Definition at line 1363 of file elog.c.

1364 {
1366  MemoryContext oldcontext;
1367 
1368  recursion_depth++;
1370  oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1371 
1372  EVALUATE_MESSAGE(edata->context_domain, context, true, true);
1373 
1374  MemoryContextSwitchTo(oldcontext);
1375  recursion_depth--;
1376  return 0; /* return value does not matter */
1377 }
#define EVALUATE_MESSAGE(domain, targetfield, appendval, translateit)
Definition: elog.c:987
tree context
Definition: radixtree.h:1835

References ErrorData::assoc_context, CHECK_STACK_DEPTH, context, ErrorData::context_domain, errordata, errordata_stack_depth, EVALUATE_MESSAGE, MemoryContextSwitchTo(), and recursion_depth.

◆ errdetail()

int errdetail ( const char *  fmt,
  ... 
)

Definition at line 1201 of file elog.c.

1202 {
1204  MemoryContext oldcontext;
1205 
1206  recursion_depth++;
1208  oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1209 
1210  EVALUATE_MESSAGE(edata->domain, detail, false, true);
1211 
1212  MemoryContextSwitchTo(oldcontext);
1213  recursion_depth--;
1214  return 0; /* return value does not matter */
1215 }

References ErrorData::assoc_context, CHECK_STACK_DEPTH, ErrorData::domain, errordata, errordata_stack_depth, EVALUATE_MESSAGE, MemoryContextSwitchTo(), and recursion_depth.

Referenced by _bt_check_third_page(), _bt_check_unique(), _PG_init(), AbortBufferIO(), AddEnumLabel(), AggregateCreate(), AllocSetContextCreateInternal(), AlterExtensionNamespace(), AlterPublicationOptions(), AlterPublicationSchemas(), AlterRole(), AlterRoleSet(), AlterTableNamespace(), apply_typmod(), apply_typmod_special(), array_cat(), array_fill_internal(), array_in(), array_set_slice(), assignable_custom_variable_name(), asyncQueueFillWarning(), ATAddForeignKeyConstraint(), ATExecAddColumn(), ATExecAddInherit(), ATExecAlterConstraint(), ATExecAttachPartition(), ATExecAttachPartitionIdx(), ATExecChangeOwner(), ATExecCheckNotNull(), ATPrepAlterColumnType(), ATPrepChangePersistence(), AttachPartitionEnsureIndexes(), BackendInitialize(), bbsink_server_new(), be_tls_init(), brin_page_type(), bt_entry_unique_check(), bt_page_items_bytea(), bt_report_duplicate(), btree_index_checkable(), build_attrmap_by_name(), build_attrmap_by_position(), BumpContextCreate(), check_conn_params(), check_encoding_locale_matches(), check_exclusion_or_unique_constraint(), check_lateral_ref_ok(), check_nested_generated_walker(), check_new_partition_bound(), check_object_ownership(), check_partition_bounds_for_split_range(), check_primary_key(), check_publication_add_relation(), check_publication_add_schema(), check_role_grantor(), check_role_membership_authorization(), check_sql_fn_retval(), check_ssl_key_file_permissions(), check_ungrouped_columns_walker(), check_valid_extension_name(), check_valid_version_name(), CheckAlterPublication(), CheckCmdReplicaIdentity(), checkDataDir(), checkMembershipInCurrentExtension(), CheckMyDatabase(), CheckPubRelationColumnList(), CheckRecoveryConflictDeadlock(), CheckRequiredParameterValues(), checkRuleResultList(), CheckSlotPermissions(), checkStringLen(), CheckTablespaceDirectory(), CheckVarSlotCompatibility(), choose_hashed_setop(), clear_subscription_skip_lsn(), coerce_record_to_complex(), comparetup_index_btree_tiebreak(), compatConnectbyTupleDescs(), compatCrosstabTupleDescs(), compute_return_type(), ComputeIndexAttrs(), ComputePartitionAttrs(), copy_replication_slot(), copy_table_data(), CopyGetAttnums(), CopyReadAttributesCSV(), CopyReadAttributesText(), countVariablesFromJsonb(), create_distinct_paths(), create_ordinary_grouping_paths(), createdb(), CreateDecodingContext(), CreateRestartPoint(), CreateRole(), CreateSchemaCommand(), CreateSubscription(), CreateTableSpace(), CreateTriggerFiringOn(), crosstab(), crosstab_hash(), cube_a_f8(), cube_a_f8_f8(), cube_c_f8(), cube_c_f8_f8(), cube_recv(), cube_subset(), DateTimeParseError(), dblink_connstr_check(), dblink_fdw_validator(), dblink_security_check(), DCH_from_char(), DefineCollation(), DefineIndex(), DefineOpClass(), DefineOperator(), DefineRelation(), DeleteInheritsTuple(), DoCopy(), DropOwnedObjects(), DropRole(), dsa_allocate_extended(), dshash_create(), EnableLockPagesPrivilege(), enforce_generic_type_consistency(), enlargeStringInfo(), EnumValuesCreate(), errdetail_abort(), errdetail_busy_db(), errdetail_execute(), errdetail_params(), errdetail_recovery_conflict(), errdetail_relkind_not_supported(), errorMissingColumn(), errorMissingRTE(), EvaluateParams(), exec_move_row_from_fields(), exec_stmt_dynexecute(), exec_stmt_execsql(), ExecBRInsertTriggers(), ExecBuildUpdateProjection(), ExecCheckPlanOutput(), ExecConstraints(), ExecCrossPartitionUpdate(), ExecCrossPartitionUpdateForeignKey(), ExecEvalArrayExpr(), ExecEvalFieldSelect(), ExecEvalWholeRowVar(), ExecFindPartition(), ExecGrant_Language_check(), ExecPartitionCheckEmitError(), ExecWithCheckOptions(), ExitPostmaster(), expandTableLikeClause(), fatal_llvm_new_handler(), fatal_system_new_handler(), file_fdw_validator(), finish_nodeitem(), FloatExceptionHandler(), from_char_parse_int_len(), from_char_seq_search(), from_char_set_int(), generate_recursion_path(), generateClonedIndexStmt(), GenerationContextCreate(), get_connect_string(), get_crosstab_tuplestore(), get_page_from_raw(), GetConfigOption(), GetConfigOptionByName(), GetConfigOptionResetString(), getid(), GetSerializableTransactionSnapshot(), GetSerializableTransactionSnapshotInt(), gin_leafpage_items(), gin_metapage_info(), gin_page_opaque_info(), gistdoinsert(), gistvacuumpage(), HandlePgArchInterrupts(), heap_create(), heap_truncate_check_FKs(), hlparsetext(), incompatible_module_error(), InitializeMaxBackends(), InitPgFdwOptions(), InitPostgres(), InitWalRecovery(), InitXLogReaderState(), instantiate_empty_record_variable(), InternalIpcMemoryCreate(), InternalIpcSemaphoreCreate(), interval_trunc(), jsonb_set_lax(), lazy_check_wraparound_failsafe(), libpqrcv_check_conninfo(), libpqrcv_connect(), libpqrcv_identify_system(), libpqrcv_processTuples(), libpqrcv_readtimelinehistoryfile(), libpqsrv_connect_prepare(), load_categories_hash(), LoadArchiveLibrary(), LogChildExit(), ltxtq_out(), ltxtq_send(), make_pathkeys_for_window(), make_row_comparison_op(), makeMultirangeTypeName(), map_sql_value_to_xml_value(), MarkGUCPrefixReserved(), matchLocks(), MemoryContextAllocationFailure(), MergeAttributes(), MergeChildAttribute(), MergeInheritedAttribute(), multirange_in(), namerecv(), network_in(), network_recv(), NUMDesc_prepare(), parse_extension_control_file(), parse_ident(), parse_lquery(), parse_ltree(), parse_one_reloption(), parserOpenTable(), parsetext(), perform_default_encoding_conversion(), pg_attribute_noreturn(), pg_cancel_backend(), pg_do_encoding_conversion(), pg_get_wal_record_info(), pg_get_wal_records_info_till_end_of_wal(), pg_get_wal_stats_till_end_of_wal(), pg_newlocale_from_collation(), pg_replication_origin_create(), pg_replication_slot_advance(), pg_size_bytes(), pg_terminate_backend(), pgfdw_security_check(), pgrowlocks(), PGSharedMemoryCreate(), plpgsql_post_column_ref(), PLy_exec_function(), PLy_exec_trigger(), PLy_initialize(), PLyUnicode_ToComposite(), populate_array_check_dimension(), PrepareForIncrementalBackup(), PrepareRedoAdd(), preprocess_grouping_sets(), ProcedureCreate(), process_owned_by(), ProcessStartupPacket(), ProcessUtilitySlow(), qtext_load_file(), queryin(), quickdie(), range_parse(), range_parse_bound(), read_any_attr(), read_attr_value(), read_backup_label(), read_client_final_message(), read_client_first_message(), ReadArrayDimensions(), ReadArrayStr(), ReadArrayToken(), ReadControlFile(), ReassignOwnedObjects(), record_in(), recordDependencyOnCurrentExtension(), RecoveryRequiresIntParameter(), refresh_by_match_merge(), refuseDupeIndexAttach(), RegisterCustomRmgr(), ReindexRelationConcurrently(), RememberAllDependentForRebuilding(), RemoveSubscriptionRel(), RenameEnumLabel(), RenameRole(), RenameSchema(), RenameTableSpace(), replace_percent_placeholders(), ReplicationSlotAlter(), ReplicationSlotDrop(), report_newlocale_failure(), RestoreArchivedFile(), rewriteTargetListIU(), rewriteTargetView(), RI_FKey_check(), RI_Initial_Check(), ri_ReportViolation(), scram_exchange(), set_max_safe_fds(), setPath(), SetTransactionSnapshot(), shell_archive_file(), should_apply_changes_for_rel(), SlabContextCreate(), SlruReportIOError(), SnapBuildFindSnapshot(), SnapBuildRestore(), SPI_cursor_open_internal(), standard_ProcessUtility(), StandbySlotsHaveCaughtup(), StartReplication(), StartupDecodingContext(), SummarizeWAL(), SyncRepWaitForLSN(), TerminateOtherDBBackends(), test_enc_conversion(), tfuncInitialize(), transformAggregateCall(), transformDeclareCursorStmt(), transformIndexConstraint(), transformJsonFuncExpr(), transformJsonTable(), transformMergeStmt(), TransformPubWhereClauses(), transformSetOperationStmt(), tupledesc_match(), update_and_persist_local_synced_slot(), update_local_synced_slot(), vac_cleanup_one_index(), vac_truncate_clog(), validate_remote_info(), validateConnectbyTupleDesc(), ValidateInputLSNs(), ValidatePgVersion(), variable_coerce_param_hook(), verify_brin_page(), verify_gist_page(), verify_hash_page(), verify_message(), WalReceiverMain(), write_relcache_init_file(), XlogReadTwoPhaseData(), xmlpi(), and xpath_table().

◆ errdetail_internal()

int errdetail_internal ( const char *  fmt,
  ... 
)

Definition at line 1228 of file elog.c.

1229 {
1231  MemoryContext oldcontext;
1232 
1233  recursion_depth++;
1235  oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1236 
1237  EVALUATE_MESSAGE(edata->domain, detail, false, false);
1238 
1239  MemoryContextSwitchTo(oldcontext);
1240  recursion_depth--;
1241  return 0; /* return value does not matter */
1242 }

References ErrorData::assoc_context, CHECK_STACK_DEPTH, ErrorData::domain, errordata, errordata_stack_depth, EVALUATE_MESSAGE, MemoryContextSwitchTo(), and recursion_depth.

Referenced by AggregateCreate(), be_tls_open_server(), bt_check_every_level(), bt_check_level_from_leftmost(), bt_child_check(), bt_child_highkey_check(), bt_downlink_missing_check(), bt_leftmost_ignoring_half_dead(), bt_recheck_sibling_links(), bt_right_page_check_scankey(), bt_target_page_check(), call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_real_check_hook(), call_string_check_hook(), check_rolespec_name(), check_simple_rowfilter_expr_walker(), CheckForSerializableConflictIn(), CheckForSerializableConflictOut(), CheckForSerializableConflictOutNeeded(), ClosePipeFromProgram(), ClosePipeToProgram(), connect_pg_server(), dblink_connect(), dblink_get_conn(), dblink_res_error(), DeadLockReport(), DropRole(), DropTableSpace(), elog_node_display(), error_view_not_updatable(), exec_stmt_dynexecute(), exec_stmt_execsql(), exec_stmt_raise(), FreezeMultiXactId(), GetConnection(), incompatible_module_error(), json_errsave_error(), OnConflict_CheckForSerializationFailure(), PageGetItemIdCareful(), parse_one_reloption(), pg_GSS_error(), pgarch_ArchiverCopyLoop(), pgfdw_report_error(), PLy_elog_impl(), PLy_output(), PreCommit_CheckForSerializationFailure(), ProcedureCreate(), reindex_index(), reportDependentObjects(), ReportSlotInvalidation(), rewriteTargetView(), run_ssl_passphrase_command(), shell_finish_command(), ShowUsage(), SnapBuildFindSnapshot(), sts_read_tuple(), synchronize_one_slot(), update_local_synced_slot(), XLogRecordAssemble(), XLogRegisterBufData(), and XLogRegisterData().

◆ errdetail_log()

int errdetail_log ( const char *  fmt,
  ... 
)

Definition at line 1249 of file elog.c.

1250 {
1252  MemoryContext oldcontext;
1253 
1254  recursion_depth++;
1256  oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1257 
1258  EVALUATE_MESSAGE(edata->domain, detail_log, false, true);
1259 
1260  MemoryContextSwitchTo(oldcontext);
1261  recursion_depth--;
1262  return 0; /* return value does not matter */
1263 }

References ErrorData::assoc_context, CHECK_STACK_DEPTH, ErrorData::domain, errordata, errordata_stack_depth, EVALUATE_MESSAGE, MemoryContextSwitchTo(), and recursion_depth.

Referenced by auth_failed(), check_password(), DeadLockReport(), DropRole(), DropTableSpace(), ProcSleep(), reportDependentObjects(), and set_authn_id().

◆ errdetail_log_plural()

int errdetail_log_plural ( const char *  fmt_singular,
const char *  fmt_plural,
unsigned long  n,
  ... 
)

Definition at line 1270 of file elog.c.

1272 {
1274  MemoryContext oldcontext;
1275 
1276  recursion_depth++;
1278  oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1279 
1280  EVALUATE_MESSAGE_PLURAL(edata->domain, detail_log, false);
1281 
1282  MemoryContextSwitchTo(oldcontext);
1283  recursion_depth--;
1284  return 0; /* return value does not matter */
1285 }
#define EVALUATE_MESSAGE_PLURAL(domain, targetfield, appendval)
Definition: elog.c:1023

References ErrorData::assoc_context, CHECK_STACK_DEPTH, ErrorData::domain, errordata, errordata_stack_depth, EVALUATE_MESSAGE_PLURAL, MemoryContextSwitchTo(), and recursion_depth.

Referenced by LogRecoveryConflict(), and ProcSleep().

◆ errdetail_plural()

int errdetail_plural ( const char *  fmt_singular,
const char *  fmt_plural,
unsigned long  n,
  ... 
)

◆ errfinish()

void errfinish ( const char *  filename,
int  lineno,
const char *  funcname 
)

Definition at line 475 of file elog.c.

476 {
478  int elevel;
479  MemoryContext oldcontext;
480  ErrorContextCallback *econtext;
481 
482  recursion_depth++;
484 
485  /* Save the last few bits of error state into the stack entry */
486  set_stack_entry_location(edata, filename, lineno, funcname);
487 
488  elevel = edata->elevel;
489 
490  /*
491  * Do processing in ErrorContext, which we hope has enough reserved space
492  * to report an error.
493  */
494  oldcontext = MemoryContextSwitchTo(ErrorContext);
495 
496  /* Collect backtrace, if enabled and we didn't already */
497  if (!edata->backtrace &&
498  edata->funcname &&
501  set_backtrace(edata, 2);
502 
503  /*
504  * Call any context callback functions. Errors occurring in callback
505  * functions will be treated as recursive errors --- this ensures we will
506  * avoid infinite recursion (see errstart).
507  */
508  for (econtext = error_context_stack;
509  econtext != NULL;
510  econtext = econtext->previous)
511  econtext->callback(econtext->arg);
512 
513  /*
514  * If ERROR (not more nor less) we pass it off to the current handler.
515  * Printing it and popping the stack is the responsibility of the handler.
516  */
517  if (elevel == ERROR)
518  {
519  /*
520  * We do some minimal cleanup before longjmp'ing so that handlers can
521  * execute in a reasonably sane state.
522  *
523  * Reset InterruptHoldoffCount in case we ereport'd from inside an
524  * interrupt holdoff section. (We assume here that no handler will
525  * itself be inside a holdoff section. If necessary, such a handler
526  * could save and restore InterruptHoldoffCount for itself, but this
527  * should make life easier for most.)
528  */
531 
532  CritSectionCount = 0; /* should be unnecessary, but... */
533 
534  /*
535  * Note that we leave CurrentMemoryContext set to ErrorContext. The
536  * handler should reset it to something else soon.
537  */
538 
539  recursion_depth--;
540  PG_RE_THROW();
541  }
542 
543  /* Emit the message to the right places */
544  EmitErrorReport();
545 
546  /* Now free up subsidiary data attached to stack entry, and release it */
547  FreeErrorDataContents(edata);
549 
550  /* Exit error-handling context */
551  MemoryContextSwitchTo(oldcontext);
552  recursion_depth--;
553 
554  /*
555  * Perform error recovery action as specified by elevel.
556  */
557  if (elevel == FATAL)
558  {
559  /*
560  * For a FATAL error, we let proc_exit clean up and exit.
561  *
562  * If we just reported a startup failure, the client will disconnect
563  * on receiving it, so don't send any more to the client.
564  */
567 
568  /*
569  * fflush here is just to improve the odds that we get to see the
570  * error message, in case things are so hosed that proc_exit crashes.
571  * Any other code you might be tempted to add here should probably be
572  * in an on_proc_exit or on_shmem_exit callback instead.
573  */
574  fflush(NULL);
575 
576  /*
577  * Let the cumulative stats system know. Only mark the session as
578  * terminated by fatal error if there is no other known cause.
579  */
582 
583  /*
584  * Do normal process-exit cleanup, then return exit code 1 to indicate
585  * FATAL termination. The postmaster may or may not consider this
586  * worthy of panic, depending on which subprocess returns it.
587  */
588  proc_exit(1);
589  }
590 
591  if (elevel >= PANIC)
592  {
593  /*
594  * Serious crash time. Postmaster will observe SIGABRT process exit
595  * status and kill the other backends too.
596  *
597  * XXX: what if we are *in* the postmaster? abort() won't kill our
598  * children...
599  */
600  fflush(NULL);
601  abort();
602  }
603 
604  /*
605  * Check for cancel/die interrupt first --- this is so that the user can
606  * stop a query emitting tons of notice or warning messages, even if it's
607  * in a loop that otherwise fails to check for interrupts.
608  */
610 }
@ DestRemote
Definition: dest.h:89
@ DestNone
Definition: dest.h:87
void EmitErrorReport(void)
Definition: elog.c:1668
static void FreeErrorDataContents(ErrorData *edata)
Definition: elog.c:1811
ErrorContextCallback * error_context_stack
Definition: elog.c:94
static bool matches_backtrace_functions(const char *funcname)
Definition: elog.c:827
static void set_stack_entry_location(ErrorData *edata, const char *filename, int lineno, const char *funcname)
Definition: elog.c:797
sigjmp_buf * PG_exception_stack
Definition: elog.c:96
#define PG_RE_THROW()
Definition: elog.h:411
#define PANIC
Definition: elog.h:42
volatile uint32 QueryCancelHoldoffCount
Definition: globals.c:43
volatile uint32 InterruptHoldoffCount
Definition: globals.c:42
volatile uint32 CritSectionCount
Definition: globals.c:44
char * backtrace_functions
Definition: guc_tables.c:535
#define funcname
Definition: indent_codes.h:69
void proc_exit(int code)
Definition: ipc.c:104
static void const char fflush(stdout)
#define CHECK_FOR_INTERRUPTS()
Definition: miscadmin.h:122
static char * filename
Definition: pg_dumpall.c:119
@ DISCONNECT_FATAL
Definition: pgstat.h:81
@ DISCONNECT_NORMAL
Definition: pgstat.h:79
SessionEndType pgStatSessionEndCause
CommandDest whereToSendOutput
Definition: postgres.c:90
struct ErrorContextCallback * previous
Definition: elog.h:295
void(* callback)(void *arg)
Definition: elog.h:296

References ErrorContextCallback::arg, ErrorData::backtrace, backtrace_functions, ErrorContextCallback::callback, CHECK_FOR_INTERRUPTS, CHECK_STACK_DEPTH, CritSectionCount, DestNone, DestRemote, DISCONNECT_FATAL, DISCONNECT_NORMAL, ErrorData::elevel, EmitErrorReport(), ERROR, error_context_stack, ErrorContext, errordata, errordata_stack_depth, FATAL, fflush(), filename, FreeErrorDataContents(), ErrorData::funcname, funcname, InterruptHoldoffCount, matches_backtrace_functions(), MemoryContextSwitchTo(), PANIC, PG_exception_stack, PG_RE_THROW, pgStatSessionEndCause, ErrorContextCallback::previous, proc_exit(), QueryCancelHoldoffCount, recursion_depth, set_backtrace(), set_stack_entry_location(), and whereToSendOutput.

Referenced by errsave_finish(), pg_re_throw(), and ThrowErrorData().

◆ errhidecontext()

int errhidecontext ( bool  hide_ctx)

Definition at line 1428 of file elog.c.

1429 {
1431 
1432  /* we don't bother incrementing recursion_depth */
1434 
1435  edata->hide_ctx = hide_ctx;
1436 
1437  return 0; /* return value does not matter */
1438 }
bool hide_ctx
Definition: elog.h:432

References CHECK_STACK_DEPTH, errordata, errordata_stack_depth, and ErrorData::hide_ctx.

Referenced by llvm_compile_module(), MemoryContextStatsDetail(), MemoryContextStatsInternal(), MemoryContextStatsPrint(), and ProcessLogMemoryContextInterrupt().

◆ errhidestmt()

int errhidestmt ( bool  hide_stmt)

Definition at line 1409 of file elog.c.

1410 {
1412 
1413  /* we don't bother incrementing recursion_depth */
1415 
1416  edata->hide_stmt = hide_stmt;
1417 
1418  return 0; /* return value does not matter */
1419 }

References CHECK_STACK_DEPTH, errordata, errordata_stack_depth, and ErrorData::hide_stmt.

Referenced by exec_bind_message(), exec_execute_message(), exec_parse_message(), exec_simple_query(), explain_ExecutorEnd(), llvm_compile_module(), MemoryContextStatsDetail(), MemoryContextStatsInternal(), MemoryContextStatsPrint(), and ProcessLogMemoryContextInterrupt().

◆ errhint()

int errhint ( const char *  fmt,
  ... 
)

Definition at line 1315 of file elog.c.

1316 {
1318  MemoryContext oldcontext;
1319 
1320  recursion_depth++;
1322  oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1323 
1324  EVALUATE_MESSAGE(edata->domain, hint, false, true);
1325 
1326  MemoryContextSwitchTo(oldcontext);
1327  recursion_depth--;
1328  return 0; /* return value does not matter */
1329 }

References ErrorData::assoc_context, CHECK_STACK_DEPTH, ErrorData::domain, errordata, errordata_stack_depth, EVALUATE_MESSAGE, MemoryContextSwitchTo(), and recursion_depth.

Referenced by _bt_check_third_page(), _bt_check_unique(), _bt_checkpage(), _bt_pagedel(), _hash_checkpage(), _hash_doinsert(), aclparse(), addTargetToSortList(), AlterCollation(), AlterDatabase(), AlterEventTriggerOwner_internal(), AlterForeignDataWrapper(), AlterForeignDataWrapperOwner_internal(), AlterObjectRename_internal(), AlterPublicationOwner_internal(), AlterSubscription(), AlterSubscriptionOwner_internal(), AlterTypeNamespace_oid(), AlterTypeNamespaceInternal(), AlterTypeOwner(), analyzeCTE(), apw_start_database_worker(), apw_start_leader_worker(), assign_collations_walker(), assign_hypothetical_collations(), assignProcTypes(), asyncQueueFillWarning(), AtEOSubXact_SPI(), AtEOXact_SPI(), ATExecAddIdentity(), ATExecAlterConstraint(), ATExecChangeOwner(), ATExecCheckNotNull(), ATExecColumnDefault(), ATExecDropColumn(), ATExecDropConstraint(), ATExecDropIdentity(), ATExecSetIdentity(), ATExecSetRelOptions(), ATExecSetStatistics(), ATPrepAlterColumnType(), ATPrepCmd(), ATPrepDropNotNull(), autovac_init(), bbsink_server_archive_contents(), bbsink_server_manifest_contents(), be_tls_open_server(), BeginCopyFrom(), BeginCopyTo(), brin_desummarize_range(), brin_summarize_range(), bt_check_every_level(), bt_entry_unique_check(), bt_index_check_internal(), bt_metap(), bt_target_page_check(), bt_tuple_present_callback(), build_column_default(), call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_real_check_hook(), call_string_check_hook(), char2wchar(), check_agg_arguments_walker(), check_collation_set(), check_enable_rls(), check_lateral_ref_ok(), check_publications_origin(), check_safe_enum_use(), check_stack_depth(), CheckAttributeType(), CheckCmdReplicaIdentity(), checkDataDir(), CheckForSerializableConflictIn(), CheckForSerializableConflictOut(), CheckForSerializableConflictOutNeeded(), checkJsonOutputFormat(), CheckMyDatabase(), CheckpointerMain(), CheckRequiredParameterValues(), CheckTablespaceDirectory(), checkTimezoneIsUsedForCast(), checkViewColumns(), compileTheLexeme(), ComputeIndexAttrs(), ComputePartitionAttrs(), cookDefault(), copy_replication_slot(), CopyFrom(), CopyReadLineText(), create_ctas_nodata(), create_tablespace_directories(), CreateAccessMethod(), CreateAnonymousSegment(), createdb(), CreateDecodingContext(), CreateEventTrigger(), CreateForeignDataWrapper(), CreateFunction(), CreateLockFile(), CreatePredicateLock(), CreatePublication(), CreateSubscription(), CreateTableSpace(), CreateTriggerFiringOn(), DateTimeParseError(), dblink_fdw_validator(), dblink_res_error(), dblink_security_check(), DeadLockReport(), DefineQueryRewrite(), DefineRange(), DefineType(), DefineView(), DefineVirtualRelation(), DeleteInheritsTuple(), do_compile(), do_pg_backup_start(), do_pg_backup_stop(), do_to_timestamp(), DoCopy(), DoPortalRewind(), DropErrorMsgWrongType(), EnableLockPagesPrivilege(), error_commit_ts_disabled(), error_view_not_updatable(), errorMissingColumn(), errorMissingRTE(), EvaluateParams(), exec_move_row_from_fields(), exec_stmt_case(), exec_stmt_dynexecute(), exec_stmt_execsql(), exec_stmt_raise(), ExecCrossPartitionUpdateForeignKey(), ExecDelete(), ExecGrant_Type_check(), ExecMergeMatched(), ExecOnConflictUpdate(), ExecOpenScanRelation(), ExecRefreshMatView(), ExecUpdate(), execute_extension_script(), executeDateTimeMethod(), ExecuteDoStmt(), ExecuteTruncate(), ExecVacuum(), ExtendBufferedRelShared(), FastPathGetRelationLockEntry(), fetch_finfo_record(), file_fdw_validator(), find_typed_table_dependencies(), findDependentObjects(), findRangeSubOpclass(), forkname_to_number(), from_char_parse_int_len(), from_char_set_mode(), Generic_Text_IC_like(), get_object_address_defacl(), get_raw_page(), get_record_type_from_query(), get_required_extension(), get_sort_group_operators(), getInstallationPaths(), GetNewMultiXactId(), GetNewTransactionId(), GetSerializableTransactionSnapshot(), GetTupleForTrigger(), gin_clean_pending_list(), ginCombineData(), gistcheckpage(), gistdoinsert(), gistUserPicksplit(), gistvacuumpage(), hashbpchar(), hashbpcharextended(), hashtext(), hashtextextended(), heap_create_with_catalog(), heap_force_common(), heap_truncate_check_FKs(), icu_validate_locale(), InitPostgres(), InitWalRecovery(), internal_load_library(), InternalIpcMemoryCreate(), InternalIpcSemaphoreCreate(), intorel_startup(), IpcSemaphoreInitialize(), json_build_object_worker(), jsonb_build_object_worker(), jsonb_set_lax(), jsonb_subscript_transform(), JsonPathQuery(), lazy_check_wraparound_failsafe(), libpqrcv_connect(), libpqsrv_connect_prepare(), like_fixed_prefix(), ListenServerPort(), lock_twophase_recover(), LockAcquireExtended(), LockGXact(), LogChildExit(), logicalrep_worker_launch(), LookupFuncName(), LookupFuncWithArgs(), macaddr8tomacaddr(), make_row_comparison_op(), makeMultirangeTypeName(), MarkAsPreparing(), MarkInheritDetached(), mdextend(), mdwritev(), mdzeroextend(), MergeAttributes(), MergeChildAttribute(), movedb(), OnConflict_CheckForSerializationFailure(), op_error(), palloc_btree_page(), parse_and_validate_value(), parse_extension_control_file(), parse_hba_line(), parse_jsonb_index_flags(), parse_sane_timezone(), ParseFuncOrColumn(), parserOpenTable(), partitioned_table_reloptions(), pg_backup_stop(), pg_base64_decode(), pg_create_restore_point(), pg_current_logfile(), pg_current_wal_flush_lsn(), pg_current_wal_insert_lsn(), pg_current_wal_lsn(), pg_get_wal_replay_pause_state(), pg_is_wal_replay_paused(), pg_log_standby_snapshot(), pg_newlocale_from_collation(), pg_prewarm(), pg_promote(), pg_set_regex_collation(), pg_size_bytes(), pg_stat_reset_shared(), pg_switch_wal(), pg_wal_replay_pause(), pg_wal_replay_resume(), pg_walfile_name(), pg_walfile_name_offset(), pgfdw_report_error(), pgfdw_security_check(), PGSharedMemoryCreate(), plan_recursive_revoke(), PLy_elog_impl(), PLy_output(), PLyGenericObject_ToComposite(), PLyMapping_ToComposite(), PLyUnicode_ToComposite(), policy_role_list_to_array(), populate_array_report_expected_array(), PortalRunSelect(), postgres_fdw_validator(), postgresql_fdw_validator(), PostmasterMain(), PreCommit_CheckForSerializationFailure(), PrepareRedoAdd(), ProcedureCreate(), process_owned_by(), process_postgres_switches(), ProcessRecoveryConflictInterrupt(), ProcessStartupPacket(), quickdie(), range_parse_flags(), RangeVarCallbackForAlterRelation(), read_backup_label(), ReadControlFile(), readTimeLineHistory(), recoveryPausesHere(), RecoveryRequiresIntParameter(), recursive_revoke(), regexp_match(), RegisterBackgroundWorker(), RegisterCustomRmgr(), regoperatorin(), ReindexRelationConcurrently(), ReleaseOneSerializableXact(), RemoveObjects(), RemoveSubscriptionRel(), renametrig(), RenameType(), ReplicationSlotCreate(), ReplicationSlotValidateName(), replorigin_advance(), replorigin_session_setup(), reportDependentObjects(), ReportSlotConnectionError(), ReportSlotInvalidation(), RequestCheckpoint(), ResolveOpClass(), RestoreSlotFromDisk(), RewriteQuery(), rewriteTargetListIU(), rewriteTargetView(), ri_FetchConstraintInfo(), ri_PerformCheck(), RmgrNotFound(), select_common_collation(), sendDir(), SetMultiXactIdLimit(), setPathObject(), SetPossibleUnsafeConflict(), SetRWConflict(), SetTransactionIdLimit(), setup_background_workers(), shell_archive_file(), shell_get_sink(), similar_escape_internal(), spgdoinsert(), spgFormInnerTuple(), StandbySlotsHaveCaughtup(), StartupXLOG(), str_initcap(), str_tolower(), str_toupper(), str_udeescape(), SysLogger_Start(), tblspc_redo(), text_format(), textregexreplace(), transformArrayExpr(), transformAssignedExpr(), transformAssignmentIndirection(), transformCaseExpr(), transformCoalesceExpr(), transformFrameOffset(), transformInsertRow(), transformJsonSerializeExpr(), transformOnConflictArbiter(), transformPLAssignStmt(), transformRangeFunction(), transformSetOperationStmt(), transformUpdateTargetList(), transformWindowDefinitions(), unistr(), vacuum_get_cutoffs(), validate_remote_info(), ValidatePgVersion(), validateRecoveryParameters(), verify_heapam(), VirtualXactLock(), WaitForParallelWorkersToAttach(), WaitForParallelWorkersToFinish(), worker_spi_launch(), and WriteWalSummary().

◆ errhint_plural()

int errhint_plural ( const char *  fmt_singular,
const char *  fmt_plural,
unsigned long  n,
  ... 
)

Definition at line 1337 of file elog.c.

1339 {
1341  MemoryContext oldcontext;
1342 
1343  recursion_depth++;
1345  oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1346 
1347  EVALUATE_MESSAGE_PLURAL(edata->domain, hint, false);
1348 
1349  MemoryContextSwitchTo(oldcontext);
1350  recursion_depth--;
1351  return 0; /* return value does not matter */
1352 }

References ErrorData::assoc_context, CHECK_STACK_DEPTH, ErrorData::domain, errordata, errordata_stack_depth, EVALUATE_MESSAGE_PLURAL, MemoryContextSwitchTo(), and recursion_depth.

Referenced by ParseFuncOrColumn().

◆ errmsg()

int errmsg ( const char *  fmt,
  ... 
)

Definition at line 1068 of file elog.c.

1069 {
1071  MemoryContext oldcontext;
1072 
1073  recursion_depth++;
1075  oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1076 
1077  edata->message_id = fmt;
1078  EVALUATE_MESSAGE(edata->domain, message, false, true);
1079 
1080  MemoryContextSwitchTo(oldcontext);
1081  recursion_depth--;
1082  return 0; /* return value does not matter */
1083 }

References ErrorData::assoc_context, CHECK_STACK_DEPTH, ErrorData::domain, errordata, errordata_stack_depth, EVALUATE_MESSAGE, fmt, MemoryContextSwitchTo(), ErrorData::message_id, and recursion_depth.

Referenced by _arrq_cons(), _bt_check_third_page(), _bt_check_unique(), _bt_checkpage(), _bt_getmeta(), _bt_gettrueroot(), _bt_pagedel(), _crypt_blowfish_rn(), _hash_addovflpage(), _hash_checkpage(), _hash_doinsert(), _hash_first(), _hash_init(), _hash_ovflblkno_to_bitno(), _intbig_in(), _intbig_out(), _lca(), _lt_q_regex(), _ltree_compress(), _mdfd_getseg(), _mdnblocks(), _PG_init(), _SPI_commit(), _SPI_execute_plan(), _SPI_rollback(), _tarWriteHeader(), AbortBufferIO(), AcceptConnection(), accumArrayResult(), accumArrayResultArr(), aclcheck_error(), aclcheck_error_col(), aclinsert(), aclitemin(), aclparse(), aclremove(), acquire_inherited_sample_rows(), acquire_sample_rows(), add_guc_variable(), add_json(), add_jsonb(), add_parameter_name(), add_reloption_kind(), add_size(), addCompoundAffixFlagValue(), AddEnumLabel(), addFamilyMember(), addFkRecurseReferenced(), addFkRecurseReferencing(), AddQual(), addRangeTableEntryForCTE(), addRangeTableEntryForFunction(), addRangeTableEntryForJoin(), addRangeTableEntryForSubquery(), addRangeTableEntryForTableFunc(), addRangeTableEntryForValues(), AddRelationNewConstraints(), AddRoleMems(), addTargetToSortList(), AddToDataDirLockFile(), AddWALInfoToBackupManifest(), AdjustIntervalForTypmod(), AdjustTimestampForTypmod(), advance_windowaggregate(), afterTriggerMarkEvents(), AfterTriggerSetState(), AggregateCreate(), alen_object_start(), alen_scalar(), AllocateDir(), AllocateFile(), AllocateVfd(), AllocSetContextCreateInternal(), AlterCollation(), AlterDatabase(), AlterDatabaseOwner(), AlterDatabaseRefreshColl(), AlterDomainAddConstraint(), AlterDomainDropConstraint(), AlterDomainValidateConstraint(), AlterEventTrigger(), AlterEventTriggerOwner(), AlterEventTriggerOwner_internal(), AlterEventTriggerOwner_oid(), AlterExtensionNamespace(), AlterForeignDataWrapper(), AlterForeignDataWrapperOwner(), AlterForeignDataWrapperOwner_internal(), AlterForeignDataWrapperOwner_oid(), AlterForeignServer(), AlterForeignServerOwner(), AlterForeignServerOwner_oid(), AlterFunction(), AlterObjectNamespace_internal(), AlterObjectRename_internal(), AlterOperator(), AlterOpFamily(), AlterOpFamilyAdd(), AlterOpFamilyDrop(), AlterPolicy(), AlterPublication(), AlterPublicationOptions(), AlterPublicationOwner(), AlterPublicationOwner_internal(), AlterPublicationOwner_oid(), AlterPublicationSchemas(), AlterRelationNamespaceInternal(), AlterRole(), AlterRoleSet(), AlterSchemaOwner(), AlterSequence(), AlterStatistics(), AlterSubscription(), AlterSubscription_refresh(), AlterSubscriptionOwner(), AlterSubscriptionOwner_internal(), AlterSubscriptionOwner_oid(), AlterSystemSetConfigFile(), AlterTableMoveAll(), AlterTableNamespace(), AlterTableSpaceOptions(), AlterTSConfiguration(), AlterType(), AlterTypeNamespace(), AlterTypeNamespace_oid(), AlterTypeNamespaceInternal(), AlterTypeOwner(), AlterTypeOwnerInternal(), AlterUserMapping(), analyze_rel(), analyzeCTE(), analyzeCTETargetList(), anybit_typmodin(), anychar_typmodin(), anytime_typmod_check(), anytime_typmodin(), anytimestamp_typmod_check(), anytimestamp_typmodin(), appendElement(), appendKey(), apply_dispatch(), apply_typmod(), apply_typmod_special(), ApplyLogicalMappingFile(), apw_dump_now(), apw_load_buffers(), apw_start_database_worker(), apw_start_leader_worker(), array_agg_array_combine(), array_agg_array_transfn(), array_agg_deserialize(), array_agg_transfn(), array_append(), array_cat(), array_cmp(), array_contain_compare(), array_eq(), array_exec_setup(), array_fill(), array_fill_internal(), array_fill_with_lower_bounds(), array_get_slice(), array_in(), array_iterator(), array_map(), array_position_common(), array_positions(), array_prepend(), array_recv(), array_replace_internal(), array_sample(), array_send(), array_set_element(), array_set_element_expanded(), array_set_slice(), array_subscript_check_subscripts(), array_subscript_transform(), array_to_datum_internal(), array_to_tsvector(), ArrayCheckBoundsSafe(), ArrayGetIntegerTypmods(), ArrayGetNItemsSafe(), arrq_cons(), ascii(), ASN1_STRING_to_text(), assign_backendlist_entry(), assign_client_encoding(), assign_collations_walker(), assign_hypothetical_collations(), assign_record_type_identifier(), assign_wal_sync_method(), assignable_custom_variable_name(), assignOperTypes(), assignProcTypes(), AssignTransactionId(), AssignTypeArrayOid(), AssignTypeMultirangeArrayOid(), AssignTypeMultirangeOid(), Async_Notify(), asyncQueueFillWarning(), ATAddCheckConstraint(), ATAddForeignKeyConstraint(), AtEOSubXact_SPI(), AtEOXact_SPI(), ATExecAddColumn(), ATExecAddConstraint(), ATExecAddIdentity(), ATExecAddIndexConstraint(), ATExecAddInherit(), ATExecAddOf(), ATExecAlterColumnGenericOptions(), ATExecAlterColumnType(), ATExecAlterConstraint(), ATExecAttachPartition(), ATExecAttachPartitionIdx(), ATExecChangeOwner(), ATExecCheckNotNull(), ATExecClusterOn(), ATExecColumnDefault(), ATExecDetachPartition(), ATExecDropColumn(), ATExecDropConstraint(), ATExecDropExpression(), ATExecDropIdentity(), ATExecDropInherit(), ATExecDropNotNull(), ATExecDropOf(), ATExecGenericOptions(), ATExecMergePartitions(), ATExecReplicaIdentity(), ATExecSetCompression(), ATExecSetExpression(), ATExecSetIdentity(), ATExecSetNotNull(), ATExecSetOptions(), ATExecSetRelOptions(), ATExecSetStatistics(), ATExecSetStorage(), ATExecSplitPartition(), ATExecValidateConstraint(), ATPrepAddColumn(), ATPrepAddInherit(), ATPrepAlterColumnType(), AtPrepare_Locks(), AtPrepare_Notify(), AtPrepare_RelationMap(), ATPrepChangePersistence(), ATPrepCmd(), ATPrepDropColumn(), ATPrepDropExpression(), ATPrepDropNotNull(), ATPrepSetNotNull(), ATPrepSetTableSpace(), ATRewriteTable(), ATRewriteTables(), ATSimplePermissions(), AtSubCommit_childXids(), attach_internal(), AttachPartitionEnsureIndexes(), auth_failed(), auth_peer(), autoinc(), autoprewarm_database_main(), autoprewarm_main(), autoprewarm_start_worker(), autovac_init(), BackendInitialize(), BackendMain(), BackendStartup(), BackgroundWorkerInitializeConnection(), BackgroundWorkerInitializeConnectionByOid(), BackgroundWorkerStateChange(), basebackup_read_file(), BaseBackupGetTargetHandle(), basic_archive_file(), BasicOpenFilePerm(), bbsink_gzip_new(), bbsink_lz4_new(), bbsink_server_archive_contents(), bbsink_server_begin_archive(), bbsink_server_begin_manifest(), bbsink_server_end_archive(), bbsink_server_manifest_contents(), bbsink_server_new(), bbsink_zstd_new(), be_gssapi_read(), be_gssapi_write(), be_lo_close(), be_lo_export(), be_lo_get_fragment(), be_lo_lseek(), be_lo_lseek64(), be_lo_tell(), be_lo_tell64(), be_lo_unlink(), be_tls_init(), be_tls_open_server(), be_tls_read(), be_tls_write(), begin_prepare_cb_wrapper(), BeginCopyFrom(), BeginCopyTo(), BeginTransactionBlock(), bernoulli_beginsamplescan(), bgworker_die(), binary_decode(), binary_encode(), bit(), bit_and(), bit_catenate(), bit_in(), bit_or(), bit_overlay(), bit_recv(), bitgetbit(), bitsetbit(), bitsubstring(), bittoint4(), bittoint8(), bitxor(), blvalidate(), boolin(), BootstrapModeMain(), BootStrapXLOG(), bpchar(), bpchar_input(), bqarr_in(), bqarr_out(), brin_bloom_summary_in(), brin_bloom_summary_recv(), brin_desummarize_range(), brin_doinsert(), brin_doupdate(), brin_getinsertbuffer(), brin_metapage_info(), brin_minmax_multi_summary_in(), brin_minmax_multi_summary_recv(), brin_page_items(), brin_page_type(), brin_revmap_data(), brin_summarize_range(), brininsert(), brinRevmapDesummarizeRange(), brinvalidate(), bt_check_every_level(), bt_check_level_from_leftmost(), bt_child_check(), bt_child_highkey_check(), bt_downlink_missing_check(), bt_entry_unique_check(), bt_index_block_validate(), bt_index_check_internal(), bt_metap(), bt_multi_page_stats(), bt_normalize_tuple(), bt_page_items_bytea(), bt_page_items_internal(), bt_page_stats_internal(), bt_recheck_sibling_links(), bt_report_duplicate(), bt_target_page_check(), bt_tuple_present_callback(), btree_index_checkable(), btree_index_mainfork_expected(), BTreeTupleGetHeapTIDCareful(), btvalidate(), BufFileDumpBuffer(), BufFileLoadBuffer(), BufFileOpenFileSet(), BufFileReadCommon(), BufFileSeek(), BufFileSize(), BufFileTruncateFileSet(), build_attrmap_by_name(), build_column_default(), build_datatype(), build_server_first_message(), build_tuplestore_recursively(), BuildDescForRelation(), buildRelationAliases(), BuildRelationExtStatistics(), builtin_locale_encoding(), builtin_validate_locale(), BumpContextCreate(), bytea_overlay(), bytea_substring(), byteaGetBit(), byteaGetByte(), byteain(), byteaSetBit(), byteaSetByte(), calc_rank_cd(), calculate_relation_size(), calculate_tablespace_size(), call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_pltcl_start_proc(), call_real_check_hook(), call_string_check_hook(), cannotCastJsonbValue(), cash_dist(), cash_div_cash(), cash_div_flt4(), cash_div_flt8(), cash_div_int2(), cash_div_int4(), cash_div_int8(), cash_in(), CastCreate(), changeDependenciesOn(), ChangeToDataDir(), char2wchar(), check_acl(), check_agg_arguments(), check_agg_arguments_walker(), check_and_set_sync_info(), check_can_set_role(), check_circularity(), check_collation_set(), check_conn_params(), check_default_partition_contents(), check_default_table_access_method(), check_default_tablespace(), check_default_text_search_config(), check_duplicates_in_publist(), check_enable_rls(), check_encoding_locale_matches(), check_exclusion_or_unique_constraint(), check_for_column_name_collision(), check_foreign_key(), check_ident_usermap(), check_index_is_clusterable(), check_lateral_ref_ok(), check_nested_generated_walker(), check_new_partition_bound(), check_object_ownership(), check_of_type(), check_parameter_resolution_walker(), check_parent_values_in_new_partitions(), check_partition_bounds_for_split_list(), check_partition_bounds_for_split_range(), check_partitions_for_split(), check_partitions_not_overlap_list(), check_password(), check_primary_key(), check_publication_add_relation(), check_publication_add_schema(), check_publications(), check_publications_origin(), check_relation_block_range(), check_relation_privileges(), check_relation_relkind(), check_relation_updatable(), check_restricted_library_name(), check_role(), check_role_grantor(), check_role_membership_authorization(), check_rolespec_name(), check_safe_enum_use(), check_same_host_or_net(), check_session_authorization(), check_simple_rowfilter_expr_walker(), check_sql_fn_retval(), check_sql_fn_statements(), check_srf_call_placement(), check_ssl_key_file_permissions(), check_stack_depth(), check_temp_tablespaces(), check_transform_function(), check_two_partitions_bounds_range(), check_ungrouped_columns_walker(), check_unicode_value(), check_usermap(), check_valid_extension_name(), check_valid_version_name(), CheckAlterPublication(), CheckAlterTableIsSafe(), CheckAndGetDbnameFromConninfo(), CheckAttributeNamesTypes(), CheckAttributeType(), CheckCmdReplicaIdentity(), checkDataDir(), checkDomainOwner(), CheckDuplicateColumnOrPathNames(), checkEnumOwner(), checkExprIsVarFree(), CheckForSerializableConflictIn(), CheckForSerializableConflictOut(), CheckForSerializableConflictOutNeeded(), CheckForSessionAndXactLocks(), CheckForStandbyTrigger(), CheckFunctionValidatorAccess(), CheckIndexCompatible(), checkInsertTargets(), checkJsonOutputFormat(), CheckLogicalDecodingRequirements(), CheckMD5Auth(), checkMembershipInCurrentExtension(), CheckMyDatabase(), checkNameSpaceConflicts(), checkPartition(), CheckPointLogicalRewriteHeap(), CheckPointReplicationOrigin(), CheckPointSnapBuild(), CheckPredicate(), CheckPubRelationColumnList(), CheckRADIUSAuth(), CheckRecoveryConflictDeadlock(), CheckRecoveryConsistency(), CheckRelationTableSpaceMove(), CheckRequiredParameterValues(), CheckRestrictedOperation(), checkRuleResultList(), CheckSASLAuth(), CheckSelectLocking(), CheckSetNamespace(), checkSharedDependencies(), CheckSlotPermissions(), CheckSlotRequirements(), checkStringLen(), CheckSubscriptionRelkind(), CheckTableNotInUse(), CheckTablespaceDirectory(), checkTargetlistEntrySQL92(), checkTimeLineSwitch(), checkTimezoneIsUsedForCast(), CheckTransactionBlock(), CheckValidResultRel(), CheckValidRowMarkRel(), CheckVarSlotCompatibility(), checkViewColumns(), checkWellFormedRecursion(), checkWellFormedRecursionWalker(), CheckXLogRemoved(), choose_hashed_setop(), chr(), cidr_abbrev(), cidr_set_masklen(), circle_in(), circle_poly(), circle_recv(), cleanup_tsquery_stopwords(), clear_subscription_skip_lsn(), ClientAuthentication(), CloneFkReferencing(), ClosePipeFromProgram(), ClosePipeToProgram(), cluster(), cluster_is_permitted_for_relation(), cluster_rel(), coerce_record_to_complex(), coerce_to_boolean(), coerce_to_common_type(), coerce_to_specific_type_typmod(), coerceJsonFuncExpr(), CollationCreate(), collectMatchBitmap(), colNameToVar(), CommandCounterIncrement(), CommentObject(), commit_prepared_cb_wrapper(), compare_files(), comparetup_index_btree_tiebreak(), compatConnectbyTupleDescs(), compatCrosstabTupleDescs(), compatible_oper(), compile_plperl_function(), compile_pltcl_function(), compileTheLexeme(), compileTheSubstitute(), complex_in(), compute_common_attribute(), compute_function_attributes(), compute_return_type(), ComputeIndexAttrs(), ComputePartitionAttrs(), connect_pg_server(), connectby_text(), connectby_text_serial(), ConstraintSetParentConstraint(), construct_md_array(), ConversionCreate(), convert_and_check_filename(), convert_any_priv_string(), convert_column_name(), convert_function_name(), convert_type_name(), convertJsonbArray(), convertJsonbObject(), cookConstraint(), cookDefault(), copy_file(), copy_replication_slot(), copy_table(), copy_table_data(), copydir(), CopyFrom(), CopyGetAttnums(), CopyGetData(), CopyReadAttributesCSV(), CopyReadAttributesText(), CopyReadBinaryAttribute(), CopyReadLineText(), CopySendEndOfRow(), count_nondeletable_pages(), count_usable_fds(), countVariablesFromJsonb(), create_ctas_nodata(), create_distinct_paths(), create_ordinary_grouping_paths(), create_tablespace_directories(), CreateAccessMethod(), CreateAnonymousSegment(), CreateCast(), CreateCheckPoint(), CreateConversionCommand(), createdb(), CreateDecodingContext(), CreateDirAndVersionFile(), CreateEventTrigger(), CreateExtension(), CreateExtensionInternal(), CreateForeignDataWrapper(), CreateForeignServer(), CreateFunction(), CreateInheritance(), CreateInitDecodingContext(), CreateLockFile(), createNewConnection(), CreateOpFamily(), CreateOptsFile(), createPartitionTable(), CreatePolicy(), CreatePortal(), CreatePredicateLock(), CreateProceduralLanguage(), CreatePublication(), CreateReplicationSlot(), CreateRestartPoint(), CreateRole(), CreateSchemaCommand(), CreateSlotOnDisk(), CreateStatistics(), CreateSubscription(), CreateTableAsRelExists(), CreateTableSpace(), CreateTransform(), CreateTriggerFiringOn(), CreateUserMapping(), crosstab(), crosstab_hash(), cube_a_f8(), cube_a_f8_f8(), cube_c_f8(), cube_c_f8_f8(), cube_coord(), cube_coord_llur(), cube_recv(), cube_subset(), currtid_for_view(), currtid_internal(), currval_oid(), cursor_to_xml(), cursor_to_xmlschema(), dacos(), dacosd(), dacosh(), dasin(), dasind(), datanh(), date2timestamp_opt_overflow(), date2timestamptz_opt_overflow(), date_in(), date_mi(), date_mii(), date_pli(), date_recv(), daterange_canonical(), datetime_timestamp(), DateTimeParseError(), datetimetz_timestamptz(), datum_to_json_internal(), datum_to_jsonb_internal(), datumGetSize(), db_dir_size(), db_encoding_convert(), dbase_redo(), dblink_build_sql_delete(), dblink_build_sql_insert(), dblink_build_sql_update(), dblink_connect(), dblink_connstr_check(), dblink_exec(), dblink_fdw_validator(), dblink_fetch(), dblink_get_conn(), dblink_res_error(), dblink_security_check(), DCH_from_char(), DCH_to_char(), dcos(), dcosd(), dcot(), dcotd(), dead_items_alloc(), DeadLockReport(), DebugFileOpen(), DecodeTimezoneName(), deconstruct_array(), DeconstructQualifiedName(), defGetBoolean(), defGetCopyHeaderChoice(), defGetCopyLogVerbosityChoice(), defGetCopyOnErrorChoice(), defGetInt32(), defGetInt64(), defGetNumeric(), defGetObjectId(), defGetQualifiedName(), defGetStreamingMode(), defGetString(), defGetStringList(), defGetTypeLength(), defGetTypeName(), define_custom_variable(), DefineAggregate(), DefineCollation(), DefineCompositeType(), DefineDomain(), DefineEnum(), DefineIndex(), DefineOpClass(), DefineOperator(), DefineOpFamily(), DefineQueryRewrite(), DefineRange(), DefineRelation(), DefineSavepoint(), DefineSequence(), DefineTSConfiguration(), DefineTSDictionary(), DefineTSParser(), DefineTSTemplate(), DefineType(), DefineView(), DefineVirtualRelation(), DeleteAllExportedSnapshotFiles(), deleteConnection(), DeleteInheritsTuple(), DelRoleMems(), deserialize_deflist(), destroy_tablespace_directories(), DetermineTimeZoneAbbrevOffsetTS(), dintdict_init(), DisableSubscriptionAndExit(), disconnect_cached_connections(), dispell_init(), div_var(), div_var_fast(), div_var_int(), dlog1(), dlog10(), do_analyze_rel(), do_autovacuum(), do_compile(), do_connect(), do_pg_abort_backup(), do_pg_backup_start(), do_pg_backup_stop(), do_setval(), do_start_bgworker(), do_to_timestamp(), do_truncate(), DoCopy(), does_not_exist_skipping(), domain_check_input(), domain_state_setup(), domainAddCheckConstraint(), domainAddNotNullConstraint(), DoPortalRewind(), dpow(), drop_local_obsolete_slots(), DropConfigurationMapping(), DropDatabase(), dropdb(), DropErrorMsgNonExistent(), DropErrorMsgWrongType(), dropOperators(), DropOwnedObjects(), dropProcedures(), DropRole(), DropSubscription(), DropTableSpace(), dsa_allocate_extended(), dsa_attach(), dshash_create(), dsimple_init(), dsin(), dsind(), dsm_backend_startup(), dsm_cleanup_for_mmap(), dsm_create(), dsm_impl_mmap(), dsm_impl_pin_segment(), dsm_impl_posix(), dsm_impl_sysv(), dsm_impl_unpin_segment(), dsm_postmaster_shutdown(), dsnowball_init(), dsqrt(), dsynonym_init(), dtan(), dtand(), dtoi2(), dtoi4(), dtoi8(), dummy_object_relabel(), dumptuples(), durable_rename(), durable_unlink(), dxsyn_init(), EA_get_flat_size(), each_array_start(), each_scalar(), each_worker_jsonb(), ean2isn(), ean2string(), ECPGconnect(), elements_object_start(), elements_scalar(), elements_worker_jsonb(), emit_audit_message(), EnableDisableRule(), EnableDisableTrigger(), EnableLockPagesPrivilege(), EndCopy(), EndCopyFrom(), EndPrepare(), EndTransactionBlock(), enforce_generic_type_consistency(), enlargeStringInfo(), entry_reset(), enum_cmp_internal(), enum_first(), enum_in(), enum_last(), enum_out(), enum_range_all(), enum_range_bounds(), enum_recv(), enum_send(), EnumValuesCreate(), error_commit_ts_disabled(), error_duplicate_filter_variable(), error_view_not_updatable(), errorConflictingDefElem(), errorMissingColumn(), errorMissingRTE(), esc_dec_len(), esc_decode(), EvalPlanQualFetchRowMark(), EvaluateParams(), exec_assign_value(), exec_bind_message(), exec_check_assignable(), exec_describe_portal_message(), exec_describe_statement_message(), exec_dynquery_with_params(), exec_eval_datum(), exec_eval_expr(), exec_execute_message(), exec_init_tuple_store(), exec_move_row_from_fields(), exec_object_restorecon(), exec_parse_message(), exec_replication_command(), exec_run_select(), exec_simple_query(), exec_stmt_assert(), exec_stmt_case(), exec_stmt_close(), exec_stmt_dynexecute(), exec_stmt_execsql(), exec_stmt_fetch(), exec_stmt_forc(), exec_stmt_foreach_a(), exec_stmt_fori(), exec_stmt_getdiag(), exec_stmt_open(), exec_stmt_raise(), exec_stmt_return(), exec_stmt_return_next(), exec_stmt_return_query(), ExecAlterDefaultPrivilegesStmt(), ExecAlterExtensionContentsRecurse(), ExecAlterExtensionContentsStmt(), ExecAlterExtensionStmt(), ExecBRInsertTriggers(), ExecBSDeleteTriggers(), ExecBSInsertTriggers(), ExecBSTruncateTriggers(), ExecBSUpdateTriggers(), ExecBuildUpdateProjection(), ExecCallTriggerFunc(), ExecCheckIndexConstraints(), ExecCheckPlanOutput(), ExecCheckTupleVisible(), ExecConstraints(), ExecCrossPartitionUpdate(), ExecCrossPartitionUpdateForeignKey(), execCurrentOf(), ExecCustomMarkPos(), ExecCustomRestrPos(), ExecDelete(), ExecEvalArrayExpr(), ExecEvalConstraintCheck(), ExecEvalConstraintNotNull(), ExecEvalCurrentOfExpr(), ExecEvalFieldSelect(), ExecEvalJsonExprPath(), ExecEvalParamExtern(), ExecEvalWholeRowVar(), ExecFindPartition(), ExecGrant_Language_check(), ExecGrant_Relation(), ExecGrant_Type_check(), ExecHashJoinNewBatch(), ExecInitAgg(), ExecInitExprRec(), ExecInitFunc(), ExecInitMergeJoin(), ExecInitSubscriptingRef(), ExecLockRows(), ExecMakeFunctionResultSet(), ExecMakeTableFunctionResult(), ExecMergeMatched(), ExecOnConflictUpdate(), ExecOpenScanRelation(), ExecPartitionCheckEmitError(), ExecPrepareTuplestoreResult(), ExecRefreshMatView(), ExecReindex(), ExecScanSubPlan(), ExecSecLabelStmt(), ExecSetParamPlan(), ExecSetVariableStmt(), ExecUpdate(), execute_extension_script(), execute_sql_string(), executeBinaryArithmExpr(), executeDateTimeMethod(), ExecuteDoStmt(), ExecuteGrantStmt(), executeItemOptUnwrapTarget(), executeKeyValueMethod(), executeNumericItemMethod(), ExecuteQuery(), ExecuteRecoveryCommand(), ExecuteTruncate(), ExecuteTruncateGuts(), executeUnaryArithmExpr(), ExecVacuum(), ExecWindowAgg(), ExecWithCheckOptions(), existsTimeLineHistory(), exp_var(), expand_col_privileges(), expand_vacuum_rel(), ExpandAllTables(), ExpandColumnRefStar(), expandTableLikeClause(), explain_ExecutorEnd(), ExplainQuery(), ExportSnapshot(), exprType(), ExtendBufferedRelLocal(), ExtendBufferedRelShared(), extract_date(), extract_variadic_args(), ExtractExtensionList(), extractModify(), FastPathGetRelationLockEntry(), fatal_llvm_error_handler(), fatal_llvm_new_handler(), fatal_system_new_handler(), fetch_array_arg_replace_nulls(), fetch_cursor_param_value(), fetch_finfo_record(), fetch_fp_info(), fetch_remote_table_info(), fetch_table_list(), FetchPreparedStatement(), file_acquire_sample_rows(), file_fdw_validator(), fileAnalyzeForeignTable(), FileClose(), FileWriteV(), finalize_grouping_exprs_walker(), find_composite_type_dependencies(), find_expr_references_walker(), find_in_dynamic_libpath(), find_option(), find_provider(), find_typed_table_dependencies(), findDependentObjects(), findRangeCanonicalFunction(), findRangeSubOpclass(), findRangeSubtypeDiffFunction(), findTargetlistEntrySQL92(), findTypeAnalyzeFunction(), findTypeInputFunction(), findTypeOutputFunction(), findTypeReceiveFunction(), findTypeSendFunction(), findTypeSubscriptingFunction(), findTypeTypmodinFunction(), findTypeTypmodoutFunction(), finish_nodeitem(), finite_interval_mi(), finite_interval_pl(), fireRIRrules(), fixed_paramref_hook(), flatten_set_variable_args(), flattenJsonPathParseItem(), float4in_internal(), float8_timestamptz(), float8in_internal(), float_overflow_error(), float_underflow_error(), float_zero_divide_error(), FloatExceptionHandler(), fmgr_info_cxt_security(), fmgr_internal_validator(), fmgr_sql(), fmgr_sql_validator(), forbidden_in_wal_sender(), forkname_to_number(), free_parsestate(), from_char_parse_int_len(), from_char_seq_search(), from_char_set_int(), from_char_set_mode(), fsm_page_contents(), fsync_fname_ext(), ftoi2(), ftoi4(), ftoi8(), g_cube_distance(), g_int_compress(), g_int_decompress(), gbtreekey_in(), gbtreekey_out(), gc_qtexts(), gen_random_uuid(), generate_recursion_path(), generate_series_step_int4(), generate_series_step_int8(), generate_series_step_numeric(), generate_series_timestamp(), generate_series_timestamptz_internal(), generateClonedIndexStmt(), GenerationContextCreate(), Generic_Text_IC_like(), GenericMatchText(), get_am_type_oid(), get_base_conninfo(), get_cached_rowtype(), get_cast_oid(), get_collation_actual_version(), get_collation_oid(), get_connect_string(), get_controlfile_by_exact_path(), get_conversion_oid(), get_crosstab_tuplestore(), get_database_oid(), get_dirent_type(), get_domain_constraint_oid(), get_event_trigger_oid(), get_expr_result_tupdesc(), get_extension_oid(), get_fn_opclass_options(), get_foreign_data_wrapper_oid(), get_foreign_server_oid(), get_func_expr(), get_language_oid(), get_multirange_io_data(), get_namespace_oid(), get_object_address(), get_object_address_attrdef(), get_object_address_attribute(), get_object_address_defacl(), get_object_address_opf_member(), get_object_address_publication_rel(), get_object_address_publication_schema(), get_object_address_relobject(), get_object_address_type(), get_object_address_usermapping(), get_page_from_raw(), get_publication_oid(), get_range_io_data(), get_raw_page(), get_raw_page_1_9(), get_raw_page_fork_1_9(), get_raw_page_internal(), get_record_type_from_argument(), get_record_type_from_query(), get_relation_by_qualified_name(), get_relation_constraint_attnos(), get_relation_constraint_oid(), get_relation_info(), get_relation_policy_oid(), get_required_extension(), get_rewrite_oid(), get_role_oid(), get_rolespec_oid(), get_rolespec_tuple(), get_rte_attribute_is_dropped(), get_sort_group_operators(), get_sql_insert(), get_sql_update(), get_statistics_object_oid(), get_subscription_oid(), get_tablespace_oid(), get_th(), get_transform_oid(), get_trigger_oid(), get_ts_config_oid(), get_ts_dict_oid(), get_ts_parser_func(), get_ts_parser_oid(), get_ts_template_func(), get_ts_template_oid(), get_tsearch_config_filename(), get_tuple_of_interest(), get_windowfunc_expr_helper(), getAffixFlagSet(), getAnotherTuple(), getArrayIndex(), GetAttributeCompression(), GetAttributeStorage(), GetColumnDefCollation(), GetConfFilesInDir(), GetConfigOption(), GetConfigOptionByName(), GetConfigOptionResetString(), GetConflictingVirtualXIDs(), GetCurrentCommandId(), GetCurrentTimeUsec(), getdatafield(), GetDefaultOpClass(), GetDefaultTablespace(), GetExtensibleNodeEntry(), GetFdwRoutineByServerId(), getid(), GetIndexAmRoutineByAmId(), getInstallationPaths(), getJsonPathVariable(), GetLocalVictimBuffer(), GetMultiXactIdMembers(), GetNamedDSMSegment(), GetNewMultiXactId(), GetNewOidWithIndex(), GetNewTransactionId(), getNextFlagFromString(), getParamDescriptions(), getRowDescriptions(), GetRunningTransactionData(), GetSerializableTransactionSnapshot(), GetSerializableTransactionSnapshotInt(), GetSnapshotData(), gettoken_query(), gettoken_query_standard(), gettoken_tsvector(), getTokenTypes(), GetTupleForTrigger(), getTypeBinaryInputInfo(), getTypeBinaryOutputInfo(), getTypeInputInfo(), getTypeOutputInfo(), GetUserMapping(), GetUserNameFromId(), getWeights(), ghstore_in(), ghstore_out(), gin_clean_pending_list(), gin_leafpage_items(), gin_metapage_info(), gin_page_opaque_info(), ginadjustmembers(), ginCombineData(), GinFormTuple(), ginvalidate(), gist_page_items(), gist_page_items_bytea(), gist_page_opaque_info(), gistadjustmembers(), gistcheckpage(), gistdoinsert(), gistfixsplit(), gistSplit(), gistUserPicksplit(), gistvacuumpage(), gistvalidate(), GrantRole(), grouping_planner(), gtrgm_in(), gtrgm_out(), gtsvectorin(), guc_malloc(), guc_realloc(), HandleChildCrash(), HandleConcurrentAbort(), HandleFunctionRequest(), HandleParallelApplyMessage(), HandleParallelApplyMessages(), HandleParallelMessages(), HandlePgArchInterrupts(), HandleUploadManifestPacket(), has_sequence_privilege_id(), has_sequence_privilege_id_id(), has_sequence_privilege_id_name(), has_sequence_privilege_name(), has_sequence_privilege_name_id(), has_sequence_privilege_name_name(), hash_array(), hash_array_extended(), hash_array_start(), hash_bitmap_info(), hash_create(), hash_metapage_info(), hash_multirange(), hash_multirange_extended(), hash_page_items(), hash_page_stats(), hash_page_type(), hash_range(), hash_range_extended(), hash_record(), hash_record_extended(), hash_scalar(), hash_search_with_hash_value(), hashbpchar(), hashbpcharextended(), hashtext(), hashtextextended(), hashvalidate(), heap_acquire_tuplock(), heap_create(), heap_create_with_catalog(), heap_delete(), heap_force_common(), heap_form_minimal_tuple(), heap_form_tuple(), heap_inplace_update(), heap_lock_tuple(), heap_page_items(), heap_prepare_insert(), heap_truncate_check_FKs(), heap_tuple_infomask_flags(), heap_update(), heap_vacuum_rel(), heap_xlog_logical_rewrite(), heapam_tuple_lock(), hex_decode_safe(), hlparsetext(), HoldPinnedPortals(), hstore_from_array(), hstore_from_arrays(), hstore_populate_record(), hstore_recv(), hstore_subscript_assign(), hstore_subscript_transform(), hstore_to_plpython(), hstoreArrayToPairs(), hstoreCheckKeyLen(), hstoreCheckKeyLength(), hstoreCheckValLen(), hstoreCheckValLength(), i4tochar(), i4toi2(), i8tooid(), icu_language_tag(), icu_validate_locale(), ident_inet(), identify_update_path(), ImportForeignSchema(), ImportSnapshot(), in_range_float4_float8(), in_range_float8_float8(), in_range_int2_int4(), in_range_int4_int4(), in_range_int4_int8(), in_range_int8_int8(), in_range_interval_interval(), in_range_numeric_numeric(), in_range_time_interval(), in_range_timestamp_interval(), in_range_timestamptz_interval(), in_range_timetz_interval(), incompatible_module_error(), index_check_primary_key(), index_concurrently_create_copy(), index_constraint_create(), index_create(), index_drop(), index_form_tuple_context(), index_opclass_options(), IndexOnlyNext(), inet_abbrev(), inet_merge(), inet_set_masklen(), inetand(), inetmi(), inetor(), infer_arbiter_indexes(), init_execution_state(), init_MultiFuncCall(), init_params(), init_sexpr(), initArrayResultArr(), InitControlFile(), InitFileAccess(), initGinState(), initialize_dh(), initialize_ecdh(), initialize_peragg(), InitializeClientEncoding(), InitializeLogRepWorker(), InitializeMaxBackends(), InitializeSessionUserId(), InitLocalBuffers(), InitMaterializedSRF(), InitPgFdwOptions(), InitPostgres(), InitProcess(), InitTempTableNamespace(), initTrie(), InitWalRecovery(), InitXLogReaderState(), inner_subltree(), insert_username(), InsertRule(), instantiate_empty_record_variable(), int24div(), int24mi(), int24mul(), int24pl(), int28div(), int28mi(), int28mul(), int28pl(), int2_dist(), int2abs(), int2div(), int2mi(), int2mod(), int2mul(), int2pl(), int2um(), int2vectorin(), int2vectorrecv(), int42div(), int42mi(), int42mul(), int42pl(), int48div(), int48mi(), int48mul(), int48pl(), int4_dist(), int4abs(), int4div(), int4gcd_internal(), int4inc(), int4lcm(), int4mi(), int4mod(), int4mul(), int4pl(), int4random(), int4range_canonical(), int4um(), int82(), int82div(), int82mi(), int82mul(), int82pl(), int84(), int84div(), int84mi(), int84mul(), int84pl(), int8_dist(), int8abs(), int8dec(), int8div(), int8gcd_internal(), int8inc(), int8lcm(), int8mi(), int8mod(), int8mul(), int8pl(), int8random(), int8range_canonical(), int8um(), internal_flush_buffer(), internal_get_result_type(), internal_inetpl(), internal_load_library(), InternalIpcMemoryCreate(), InternalIpcSemaphoreCreate(), interpret_AS_clause(), interpret_func_parallel(), interpret_func_support(), interpret_function_parameter_list(), interval_avg(), interval_div(), interval_in(), interval_justify_days(), interval_justify_hours(), interval_justify_interval(), interval_mi(), interval_mul(), interval_part_common(), interval_pl(), interval_sum(), interval_time(), interval_trunc(), interval_um_internal(), intervaltypmodin(), intorel_startup(), inv_open(), inv_read(), inv_seek(), inv_truncate(), inv_write(), iso8859_to_utf8(), issue_xlog_fsync(), IsThereCollationInNamespace(), IsThereFunctionInNamespace(), IsThereOpClassInNamespace(), IsThereOpFamilyInNamespace(), json_agg_transfn_worker(), json_build_object_worker(), json_errsave_error(), json_object(), json_object_agg_transfn_worker(), json_object_two_arg(), json_validate(), jsonb_agg_transfn_worker(), jsonb_array_length(), jsonb_build_object_worker(), jsonb_delete(), jsonb_delete_array(), jsonb_delete_idx(), jsonb_delete_path(), jsonb_insert(), jsonb_object(), jsonb_object_agg_transfn_worker(), jsonb_object_keys(), jsonb_object_two_arg(), jsonb_path_match_internal(), jsonb_set(), jsonb_set_lax(), jsonb_subscript_check_subscripts(), jsonb_subscript_transform(), JsonEncodeDateTime(), JsonItemFromDatum(), jsonPathFromCstring(), JsonPathQuery(), JsonPathValue(), JsValueToJsObject(), KeepFileRestoredFromArchive(), LargeObjectDrop(), lastval(), lazy_check_wraparound_failsafe(), lazy_truncate_heap(), lazy_vacuum_heap_rel(), length_in_encoding(), libpqrcv_alter_slot(), libpqrcv_check_conninfo(), libpqrcv_connect(), libpqrcv_create_slot(), libpqrcv_endstreaming(), libpqrcv_exec(), libpqrcv_get_conninfo(), libpqrcv_get_dbname_from_conninfo(), libpqrcv_identify_system(), libpqrcv_processTuples(), libpqrcv_readtimelinehistoryfile(), libpqrcv_receive(), libpqrcv_send(), libpqrcv_startstreaming(), libpqsrv_connect_prepare(), like_fixed_prefix(), line_construct_pp(), line_decode(), line_in(), line_recv(), ListenServerPort(), ln_var(), lo_get_fragment_internal(), lo_import_internal(), lo_read(), lo_truncate_internal(), lo_write(), load_categories_hash(), load_dh_file(), load_enum_cache_data(), load_external_function(), load_hba(), load_libraries(), LoadArchiveLibrary(), LocalToUtf(), locate_stem_module(), lock_twophase_recover(), LockAcquireExtended(), LockGXact(), LockSchemaList(), LockTableRecurse(), LockViewRecurse_walker(), log_disconnections(), LogCheckpointEnd(), LogCheckpointStart(), LogChildExit(), logfile_open(), logfile_rotate_dest(), logical_end_heap_rewrite(), logical_heap_rewrite_flush_mappings(), logical_rewrite_log_mapping(), LogicalParallelApplyLoop(), logicalrep_rel_mark_updatable(), logicalrep_rel_open(), logicalrep_worker_attach(), logicalrep_worker_launch(), LogicalRepApplyLoop(), LogicalRepSyncTableStart(), LogRecoveryConflict(), lookup_agg_function(), lookup_am_handler_func(), lookup_fdw_handler_func(), lookup_rowtype_tupdesc_domain(), lookup_rowtype_tupdesc_internal(), lookup_type_cache(), LookupFuncName(), LookupFuncWithArgs(), LookupOperName(), LookupTypeNameExtended(), LookupTypeNameOid(), lowerstr_with_len(), lpad(), lt_q_regex(), ltree_concat(), ltree_gist_in(), ltree_gist_out(), ltree_gist_relopts_validator(), ltree_to_plpython(), ltsReadBlock(), ltsWriteBlock(), ltxtq_out(), ltxtq_send(), macaddr8_in(), macaddr8tomacaddr(), macaddr_in(), main(), make_absolute_path(), make_callstmt_target(), make_date(), make_distinct_op(), make_expanded_record_from_tupdesc(), make_expanded_record_from_typeid(), make_icu_collator(), make_inh_translation_list(), make_interval(), make_modifytable(), make_op(), make_outerjoininfo(), make_pathkeys_for_window(), make_result_opt_error(), make_row_comparison_op(), make_row_distinct_op(), make_ruledef(), make_scalar_array_op(), make_time(), make_timestamp_internal(), make_timestamptz_at_timezone(), make_tsvector(), makeMultirangeTypeName(), makepol(), makeRangeVarFromNameList(), makeWholeRowVar(), map_sql_value_to_xml_value(), mark_index_clustered(), MarkAsPreparing(), MarkGUCPrefixReserved(), MarkInheritDetached(), MarkPortalActive(), matchLocks(), MatchText(), materializeResult(), maybe_reread_subscription(), maybe_start_skipping_changes(), md5_bytea(), md5_text(), mdcreate(), mdextend(), mdimmedsync(), mdopenfork(), mdreadv(), mdtruncate(), mdunlinkfork(), mdwritev(), mdzeroextend(), MemoryContextAllocationFailure(), merge_acl_with_grant(), merge_collation_state(), merge_publications(), MergeAttributes(), MergeAttributesIntoExisting(), MergeCheckConstraint(), MergeChildAttribute(), MergeConstraintsIntoExisting(), MergeInheritedAttribute(), MergeWithExistingConstraint(), metaphone(), moddatetime(), movedb(), moveSplitTableRows(), mul_size(), multirange_constructor2(), multirange_in(), namerecv(), NamespaceCreate(), network_host(), network_in(), network_out(), network_recv(), network_show(), NextCopyFrom(), NextCopyFromRawFields(), nextval_internal(), NIAddAffix(), NIImportAffixes(), NIImportDictionary(), NIImportOOAffixes(), NISortDictionary(), NonFiniteIntervalPart(), NonFiniteTimestampTzPart(), normal_rand(), NUM_processor(), NUMDesc_prepare(), numeric_div_opt_error(), numeric_div_trunc(), numeric_fac(), numeric_in(), numeric_int2(), numeric_int4_opt_error(), numeric_int8_opt_error(), numeric_ln(), numeric_log(), numeric_mod_opt_error(), numeric_pg_lsn(), numeric_power(), numeric_recv(), numeric_sqrt(), numerictypmodin(), numericvar_to_double_no_overflow(), object_aclmask_ext(), object_ownercheck(), objectNamesToOids(), ObjectsInPublicationToOids(), oidvectorrecv(), okeys_array_start(), okeys_scalar(), OnConflict_CheckForSerializationFailure(), op_error(), OpClassCacheLookup(), open_auth_file(), OpenPipeStream(), OpenTableList(), OpenTransientFilePerm(), OpenWalSummaryFile(), OperatorCreate(), OperatorShellMake(), OperatorUpd(), OperatorValidateParams(), OpFamilyCacheLookup(), pa_send_data(), pa_switch_to_partial_serialize(), pa_wait_for_xact_finish(), page_checksum_internal(), page_header(), PageAddItemExtended(), PageGetItemIdCareful(), PageIndexMultiDelete(), PageIndexTupleDelete(), PageIndexTupleDeleteNoCompact(), PageIndexTupleOverwrite(), PageIsVerifiedExtended(), PageRepairFragmentation(), pair_decode(), palloc_btree_page(), parallel_vacuum_process_all_indexes(), ParallelApplyWorkerMain(), ParallelWorkerMain(), ParameterAclLookup(), parse_affentry(), parse_and_validate_value(), parse_basebackup_options(), parse_datetime(), parse_extension_control_file(), parse_fcall_arguments(), parse_format(), parse_hba_auth_opt(), parse_hba_line(), parse_ident(), parse_jsonb_index_flags(), parse_key_value_arrays(), parse_lquery(), parse_ltree(), parse_one_reloption(), parse_output_parameters(), parse_phrase_operator(), parse_publication_options(), parse_re_flags(), parse_sane_timezone(), parse_snapshot(), parse_subscription_options(), parse_test_flags(), parse_tsquery(), ParseAlterReplSlotOptions(), parseCheckAggregates(), parseCreateReplSlotOptions(), ParseFuncOrColumn(), parseIntFromText(), parseNameAndArgTypes(), parseRelOptionsInternal(), parserOpenTable(), parsetext(), parseTypeString(), parseVxidFromText(), parseXidFromText(), partitioned_table_reloptions(), path_add(), path_decode(), path_in(), path_poly(), path_recv(), PathNameCreateTemporaryDir(), PathNameCreateTemporaryFile(), PathNameDeleteTemporaryFile(), PathNameOpenFilePerm(), PathNameOpenTemporaryFile(), percentile_cont_final_common(), percentile_disc_final(), perform_base_backup(), perform_default_encoding_conversion(), PerformAuthentication(), PerformCursorOpen(), PerformPortalClose(), PerformPortalFetch(), PerformRadiusTransaction(), PerformWalRecovery(), pg_analyze_and_rewrite_varparams(), pg_any_to_server(), pg_attribute_aclcheck_all_ext(), pg_attribute_aclmask_ext(), pg_attribute_noreturn(), pg_backup_start(), pg_backup_stop(), pg_base64_decode(), pg_be_scram_build_secret(), pg_buffercache_evict(), pg_cancel_backend(), pg_class_aclmask_ext(), pg_collation_actual_version(), pg_collation_for(), pg_control_checkpoint(), pg_control_init(), pg_control_recovery(), pg_control_system(), pg_convert(), pg_create_restore_point(), pg_crypt(), pg_cryptohash_create(), pg_current_logfile(), pg_current_wal_flush_lsn(), pg_current_wal_insert_lsn(), pg_current_wal_lsn(), pg_database_collation_actual_version(), pg_decode_startup(), pg_decrypt(), pg_decrypt_iv(), pg_dependencies_in(), pg_dependencies_recv(), pg_do_encoding_conversion(), pg_encrypt(), pg_encrypt_iv(), pg_event_trigger_ddl_commands(), pg_event_trigger_dropped_objects(), pg_event_trigger_table_rewrite_oid(), pg_event_trigger_table_rewrite_reason(), pg_extension_config_dump(), pg_file_exists(), pg_flush_data(), pg_freespace(), pg_gen_salt(), pg_gen_salt_rounds(), pg_get_expr_worker(), pg_get_functiondef(), pg_get_multixact_members(), pg_get_object_address(), pg_get_serial_sequence(), pg_get_wal_record_info(), pg_get_wal_records_info_till_end_of_wal(), pg_get_wal_replay_pause_state(), pg_get_wal_stats_till_end_of_wal(), pg_GSS_error(), pg_hmac_create(), pg_import_system_collations(), pg_is_wal_replay_paused(), pg_largeobject_aclmask_snapshot(), pg_log_backend_memory_contexts(), pg_log_standby_snapshot(), pg_logical_slot_get_changes_guts(), pg_ls_dir_files(), pg_ls_replslotdir(), pg_ls_tmpdir(), pg_lsn_in(), pg_lsn_mii(), pg_lsn_pli(), pg_mcv_list_in(), pg_mcv_list_recv(), pg_namespace_aclmask_ext(), pg_ndistinct_in(), pg_ndistinct_recv(), pg_newlocale_from_collation(), pg_nextoid(), pg_parameter_acl_aclmask(), pg_prewarm(), pg_promote(), pg_random_bytes(), pg_read_binary_file_common(), pg_read_file_common(), pg_reload_conf(), pg_relpages(), pg_relpages_impl(), pg_relpagesbyid(), pg_replication_origin_create(), pg_replication_origin_session_progress(), pg_replication_origin_xact_setup(), pg_replication_slot_advance(), pg_rotate_logfile(), pg_sequence_parameters(), pg_set_regex_collation(), pg_signal_backend(), pg_size_bytes(), pg_snapshot_recv(), pg_split_walfile_name(), pg_stat_file(), pg_stat_get_progress_info(), pg_stat_reset_shared(), pg_stat_reset_subscription_stats(), pg_stat_statements_info(), pg_stat_statements_internal(), pg_stats_ext_mcvlist_items(), pg_stop_making_pinned_objects(), pg_strtoint16_safe(), pg_strtoint32_safe(), pg_strtoint64_safe(), pg_switch_wal(), pg_sync_replication_slots(), pg_tablespace_databases(), pg_tablespace_location(), pg_terminate_backend(), pg_to_ascii(), pg_type_aclmask_ext(), pg_tzenumerate_next(), pg_tzenumerate_start(), pg_unicode_to_server(), pg_visibility(), pg_visibility_map(), pg_wait_until_termination(), pg_wal_replay_pause(), pg_wal_replay_resume(), pg_wal_summary_contents(), pg_walfile_name(), pg_walfile_name_offset(), pgarch_archiveDone(), pgarch_ArchiverCopyLoop(), pgarch_readyXlog(), pgfdw_cancel_query_begin(), pgfdw_cancel_query_end(), pgfdw_exec_cleanup_query_end(), pgfdw_reject_incomplete_xact_state_change(), pgfdw_report_error(), pgfdw_security_check(), pgfdw_xact_callback(), PGLC_localeconv(), pgoutput_column_list_init(), pgoutput_startup(), PGReserveSemaphores(), pgrowlocks(), PGSemaphoreCreate(), PGSemaphoreLock(), PGSemaphoreTryLock(), PGSemaphoreUnlock(), PGSharedMemoryCreate(), pgss_shmem_shutdown(), pgss_shmem_startup(), pgstat_create_transactional(), pgstat_discard_stats(), pgstat_get_kind_from_str(), pgstat_heap(), pgstat_init_function_usage(), pgstat_read_statsfile(), pgstat_relation(), pgstat_reset_replslot(), pgstat_write_statsfile(), pgstatginindex(), pgstatginindex_internal(), pgstathashindex(), pgstatindex(), pgstatindex_impl(), pgstatindexbyid(), pgstattuple(), pgstattuple_approx(), pgstattuple_approx_internal(), pgstattuplebyid(), pgwin32_create_signal_listener(), placeChar(), plan_recursive_revoke(), plperl_array_to_datum(), plperl_build_tuple_result(), plperl_call_perl_event_trigger_func(), plperl_call_perl_func(), plperl_call_perl_trigger_func(), plperl_create_sub(), plperl_func_handler(), plperl_init_interp(), plperl_modify_tuple(), plperl_return_next_internal(), plperl_spi_execute_fetch_result(), plperl_sv_to_datum(), plperl_sv_to_literal(), plperl_to_hstore(), plperl_trigger_handler(), plperl_trusted_init(), plperl_untrusted_init(), plperl_validator(), plpgsql_build_datatype_arrayof(), plpgsql_build_variable(), plpgsql_exec_event_trigger(), plpgsql_exec_function(), plpgsql_exec_get_datum_type(), plpgsql_exec_get_datum_type_info(), plpgsql_exec_trigger(), plpgsql_param_eval_generic(), plpgsql_param_eval_generic_ro(), plpgsql_param_eval_recfield(), plpgsql_parse_cwordrowtype(), plpgsql_parse_cwordtype(), plpgsql_parse_err_condition(), plpgsql_parse_wordrowtype(), plpgsql_parse_wordtype(), plpgsql_post_column_ref(), plpgsql_recognize_err_condition(), plpgsql_resolve_polymorphic_argtypes(), plpgsql_validator(), plpgsql_yyerror(), plpython_to_hstore(), plsample_func_handler(), plsample_trigger_handler(), pltcl_build_tuple_result(), pltcl_elog(), pltcl_func_handler(), pltcl_trigger_handler(), PLy_abort_open_subtransactions(), PLy_cursor_fetch(), PLy_exec_function(), PLy_exec_trigger(), PLy_initialize(), PLy_modify_tuple(), PLy_procedure_create(), PLy_spi_execute_fetch_result(), PLy_spi_prepare(), PLyGenericObject_ToComposite(), PLyMapping_ToComposite(), PLyNumber_ToJsonbValue(), PLyObject_AsString(), PLyObject_ToJsonbValue(), PLySequence_ToArray(), PLySequence_ToArray_recurse(), PLySequence_ToComposite(), PLyUnicode_ToComposite(), policy_role_list_to_array(), poly_in(), poly_recv(), populate_array_check_dimension(), populate_array_report_expected_array(), populate_joinrel_with_paths(), populate_recordset_array_element_start(), populate_recordset_object_start(), populate_recordset_scalar(), populate_recordset_worker(), PortalDrop(), PortalRunSelect(), PortalSetResultFormat(), postgres_fdw_validator(), postgresAcquireSampleRowsFunc(), postgresBeginForeignInsert(), postgresExecForeignTruncate(), postgresImportForeignSchema(), PostgresMain(), postgresql_fdw_validator(), PostgresSingleUserMain(), PostmasterMain(), PostmasterStateMachine(), PostPrepare_Locks(), power_var(), power_var_int(), pq_copymsgbytes(), pq_getbyte_if_available(), pq_getkeepalivescount(), pq_getkeepalivesidle(), pq_getkeepalivesinterval(), pq_getmessage(), pq_getmsgbyte(), pq_getmsgbytes(), pq_getmsgend(), pq_getmsgrawstring(), pq_getmsgstring(), pq_getmsgtext(), pq_gettcpusertimeout(), pq_init(), pq_recvbuf(), pq_setkeepalivescount(), pq_setkeepalivesidle(), pq_setkeepalivesinterval(), pq_settcpusertimeout(), pq_startmsgread(), PQconninfoParse(), PQsetvalue(), PreCommit_CheckForSerializationFailure(), PreCommit_Notify(), PreCommit_Portals(), predicatelock_twophase_recover(), PrefetchBuffer(), prepare_cb_wrapper(), prepare_sql_fn_parse_info(), PrepareForIncrementalBackup(), PrepareQuery(), PrepareRedoAdd(), PrepareTransaction(), preprocess_grouping_sets(), prepTuplestoreResult(), PreventCommandDuringRecovery(), PreventCommandIfParallelMode(), PreventCommandIfReadOnly(), PreventInTransactionBlock(), printtup_prepare_info(), ProcArrayAdd(), ProcedureCreate(), process_function_rte_ref(), process_matched_tle(), process_owned_by(), process_pm_child_exit(), process_pm_pmsignal(), process_pm_reload_request(), process_pm_shutdown_request(), process_postgres_switches(), process_syncing_tables_for_apply(), processCancelRequest(), ProcessConfigFileInternal(), ProcessCopyOptions(), ProcessInterrupts(), ProcessLogMemoryContextInterrupt(), ProcessParallelApplyInterrupts(), ProcessRecoveryConflictInterrupt(), ProcessRepliesIfAny(), ProcessSlotSyncInterrupts(), ProcessSSLStartup(), ProcessStandbyMessage(), ProcessStartupPacket(), ProcessSyncRequests(), ProcessTwoPhaseBuffer(), processTypesSpec(), ProcessUtilitySlow(), ProcessWalRcvInterrupts(), ProcSleep(), protect_out_of_mem(), prsd_headline(), prseof(), prssyntaxerror(), publication_add_relation(), publication_add_schema(), publication_translate_columns(), PublicationDropSchemas(), PublicationDropTables(), pushquery(), PushTransaction(), pushval_asis(), pushValue(), pushValue_internal(), pvsnprintf(), px_crypt_des(), px_THROW_ERROR(), qtext_load_file(), qtext_store(), QTN2QT(), QualifiedNameGetCreationNamespace(), query_to_xml_internal(), queryin(), quickdie(), random_numeric(), random_var(), range_constructor3(), range_minus_internal(), range_parse(), range_parse_bound(), range_parse_flags(), range_serialize(), range_union_internal(), RangeVarAdjustRelationPersistence(), RangeVarCallbackForAlterRelation(), RangeVarCallbackForAttachIndex(), RangeVarCallbackForDropRelation(), RangeVarCallbackForLockTable(), RangeVarCallbackForPolicy(), RangeVarCallbackForReindexIndex(), RangeVarCallbackForRenameRule(), RangeVarCallbackForRenameTrigger(), RangeVarCallbackMaintainsTable(), RangeVarCallbackOwnsRelation(), RangeVarGetAndCheckCreationNamespace(), RangeVarGetCreationNamespace(), RangeVarGetRelidExtended(), raw_heap_insert(), RE_compile(), RE_compile_and_cache(), RE_wchar_execute(), read_any_attr(), read_attr_value(), read_backup_label(), read_binary_file(), read_client_final_message(), read_client_first_message(), read_dictionary(), read_file_data_into_buffer(), read_objtype_from_string(), read_relmap_file(), read_server_final_message(), read_tablespace_map(), read_whole_file(), ReadArrayBinary(), ReadArrayDimensions(), ReadArrayStr(), ReadArrayToken(), ReadBufferExtended(), ReadCheckpointRecord(), ReadControlFile(), ReadDimensionInt(), ReadDirExtended(), ReadHead(), ReadNextXLogRecord(), ReadRecord(), readRecoverySignalFile(), ReadReplicationSlot(), readstoplist(), readTimeLineHistory(), ReadTwoPhaseFile(), ReadWalSummary(), ReassignOwnedObjects(), ReceiveCopyBinaryHeader(), RecheckDataDirLockFile(), recompute_limits(), record_cmp(), record_eq(), record_image_cmp(), record_image_eq(), record_in(), record_recv(), recordDependencyOnCurrentExtension(), RecoverPreparedTransactions(), recovery_create_dbdir(), recoveryPausesHere(), RecoveryRequiresIntParameter(), recoveryStopsAfter(), recoveryStopsBefore(), RecreateTwoPhaseFile(), recursive_revoke(), recv_password_packet(), refresh_by_match_merge(), refuseDupeIndexAttach(), regclassin(), regcollationin(), regcomp_auth_token(), regconfigin(), regdictionaryin(), regex_fixed_prefix(), regexp_count(), regexp_fixed_prefix(), regexp_instr(), regexp_like(), regexp_match(), regexp_split_to_array(), regexp_split_to_table(), regexp_substr(), register_dirty_segment(), RegisterBackgroundWorker(), RegisterCustomRmgr(), RegisterExtensibleNodeEntry(), RegisterTimeout(), regnamespacein(), regoperatorin(), regoperin(), regprocedurein(), regprocin(), REGRESS_exec_check_perms(), REGRESS_object_access_hook(), REGRESS_object_access_hook_str(), REGRESS_utility_command(), regrolein(), reindex_index(), reindex_relation(), ReindexMultipleInternal(), ReindexMultipleTables(), ReindexRelationConcurrently(), ReindexTable(), reject_target_detail(), RelationBuildPartitionKey(), RelationCopyStorage(), RelationFindReplTupleByIndex(), RelationFindReplTupleSeq(), RelationGetBufferForTuple(), RelationSetNewRelfilenumber(), ReleaseOneSerializableXact(), ReleaseSavepoint(), RememberAllDependentForRebuilding(), remove_dbtablespaces(), remove_tablespace_symlink(), RemoveExtensionById(), RemoveInheritance(), RemoveObjects(), RemovePgTempFilesInDir(), RemovePgTempRelationFilesInDbspace(), RemovePolicyById(), RemoveRelations(), RemoveRewriteRuleById(), RemoveSubscriptionRel(), RemoveTriggerById(), RemoveTwoPhaseFile(), RemoveUserMapping(), RemoveWalSummaryIfOlderThan(), RemoveXlogFile(), rename_constraint_internal(), rename_policy(), renameatt(), renameatt_check(), renameatt_internal(), RenameConstraint(), RenameConstraintById(), RenameDatabase(), RenameEnumLabel(), RenameRelation(), RenameRelationInternal(), RenameRewriteRule(), RenameRole(), RenameSchema(), RenameTableSpace(), renametrig(), renametrig_internal(), RenameType(), RenameTypeInternal(), ReorderBufferCleanupSerializedTXNs(), ReorderBufferRestoreChanges(), ReorderBufferRestoreCleanup(), ReorderBufferSerializeChange(), ReorderBufferSerializeTXN(), repeat(), replace_percent_placeholders(), replace_rte_variables_mutator(), replace_text_regexp(), ReplaceVarsFromTargetList_callback(), ReplicationSlotAcquire(), ReplicationSlotAlter(), ReplicationSlotCreate(), ReplicationSlotDrop(), ReplicationSlotDropAtPubNode(), ReplicationSlotDropPtr(), ReplicationSlotRelease(), ReplicationSlotsDropDBSlots(), ReplicationSlotValidateName(), replorigin_advance(), replorigin_by_name(), replorigin_by_oid(), replorigin_check_prerequisites(), replorigin_create(), replorigin_session_reset(), replorigin_session_setup(), replorigin_state_clear(), ReplSlotSyncWorkerMain(), report_invalid_encoding(), report_name_conflict(), report_namespace_conflict(), report_newlocale_failure(), report_untranslatable_char(), reportDependentObjects(), ReportSlotConnectionError(), ReportSlotInvalidation(), ReportTemporaryFileUsage(), RequestCheckpoint(), rescanLatestTimeLine(), reserveAllocatedDesc(), ResetUnloggedRelationsInDbspaceDir(), ResetUnloggedRelationsInTablespaceDir(), resolve_anyarray_from_others(), resolve_anyelement_from_others(), resolve_anymultirange_from_others(), resolve_anyrange_from_others(), resolve_column_ref(), resolve_unique_index_expr(), ResolveOpClass(), RestoreArchive(), RestoreArchivedFile(), RestoreGUCState(), RestoreSlotFromDisk(), restrict_and_check_grant(), revalidate_rectypeid(), RevalidateCachedQuery(), revmap_physical_extend(), RewriteQuery(), rewriteRuleAction(), rewriteSearchAndCycle(), rewriteTargetListIU(), rewriteTargetView(), ri_CheckTrigger(), ri_FetchConstraintInfo(), RI_FKey_check(), RI_Initial_Check(), ri_PerformCheck(), ri_ReportViolation(), RmgrNotFound(), rollback_prepared_cb_wrapper(), RollbackToSavepoint(), rpad(), run_apply_worker(), run_ssl_passphrase_command(), sanity_check_array(), sanity_check_tid_array(), SanityCheckBackgroundWorker(), satisfies_hash_partition(), SaveSlotToPath(), scanNameSpaceForRefname(), scanNameSpaceForRelid(), scanNSItemForColumn(), scanRTEForColumn(), scram_exchange(), scram_init(), scram_verify_plain_password(), secure_open_gssapi(), secure_read(), secure_write(), select_common_collation(), select_common_type(), select_common_type_from_oids(), select_perl_context(), SendBackupManifest(), SendBaseBackup(), sendDir(), sendFile(), SendFunctionResult(), sendTablespace(), SendTimeLineHistory(), sepgsql_attribute_relabel(), sepgsql_audit_log(), sepgsql_avc_check_perms_label(), sepgsql_avc_init(), sepgsql_avc_unlabeled(), sepgsql_client_auth(), sepgsql_compute_avd(), sepgsql_compute_create(), sepgsql_get_label(), sepgsql_init_client_label(), sepgsql_mcstrans_in(), sepgsql_mcstrans_out(), sepgsql_object_relabel(), sepgsql_relation_relabel(), sepgsql_restorecon(), sepgsql_set_client_label(), sepgsql_utility_command(), serialize_expr_stats(), serialize_prepare_info(), server_check_detail(), ServerLoop(), set_authn_id(), set_config_by_name(), set_config_with_handle(), set_max_safe_fds(), set_rot13(), set_var_from_non_decimal_integer_str(), set_var_from_str(), setCompoundAffixFlagValue(), SetDefaultACL(), SetOffsetVacuumLimit(), setPath(), setPathArray(), setPathObject(), SetPossibleUnsafeConflict(), SetRWConflict(), setSchemaName(), setseed(), SetSerializableTransactionSnapshot(), setTargetTable(), SetTransactionIdLimit(), SetTransactionSnapshot(), Setup_AF_UNIX(), setup_background_workers(), setup_dynamic_shared_memory(), setup_pct_info(), setup_regexp_matches(), setup_test_matches(), SetUserIdAndContext(), SharedFileSetAttach(), shdepDropOwned(), shdepLockAndCheckObject(), shdepReassignOwned(), shell_archive_file(), shell_check_detail(), shell_finish_command(), shell_get_sink(), shell_in(), shell_out(), shell_run_command(), shell_send_data(), shm_mq_receive(), shm_mq_sendv(), shm_toc_allocate(), shm_toc_insert(), ShmemAlloc(), ShmemAllocUnlocked(), ShmemInitStruct(), should_apply_changes_for_rel(), show_debug(), ShutdownXLOG(), similar_escape_internal(), SimpleLruTruncate(), SlabContextCreate(), slot_modify_data(), slot_store_data(), slotsync_reread_config(), SlruPhysicalReadPage(), SlruReportIOError(), SnapBuildFindSnapshot(), SnapBuildInitialSnapshot(), SnapBuildRestore(), SnapBuildRestoreContents(), SnapBuildSerialize(), SnapBuildSnapshotExists(), socket_set_nonblocking(), SocketBackend(), sort(), spgadjustmembers(), spgdoinsert(), spgFormInnerTuple(), spgFormNodeTuple(), spgGetCache(), spgvalidate(), SPI_cursor_open_internal(), split_part(), sqrt_var(), ssl_extension_info(), standard_ProcessUtility(), StandbySlotsHaveCaughtup(), StartAutovacuumWorker(), StartChildProcess(), StartLogicalReplication(), StartReplication(), StartupDecodingContext(), StartupReplicationOrigin(), StartupReplicationSlots(), StartupRequestWalReceiverRestart(), StartupXLOG(), stop_skipping_changes(), storeOperators(), StorePreparedStatement(), storeProcedures(), StoreRelCheck(), storeRow(), str_initcap(), str_tolower(), str_toupper(), str_udeescape(), stream_abort_cb_wrapper(), stream_change_cb_wrapper(), stream_commit_cb_wrapper(), stream_prepare_cb_wrapper(), stream_start_cb_wrapper(), stream_stop_cb_wrapper(), string2ean(), string_to_privilege(), string_to_uuid(), stringToQualifiedNameList(), sts_parallel_scan_next(), sts_read_tuple(), substitute_libpath_macro(), summarizer_read_local_xlog_page(), SummarizeWAL(), suppress_redundant_updates_trigger(), SV_to_JsonbValue(), SwitchToUntrustedUser(), SyncDataDirectory(), synchronize_one_slot(), synchronize_slots(), SyncPostCheckpoint(), SyncRepReleaseWaiters(), SyncRepWaitForLSN(), SysLogger_Start(), SysLoggerMain(), systable_beginscan_ordered(), system_beginsamplescan(), system_rows_beginsamplescan(), system_time_beginsamplescan(), table_tuple_get_latest_tid(), tablesample_init(), TablespaceCreateDbspace(), TargetPrivilegesCheck(), tblspc_redo(), TerminateOtherDBBackends(), test_copy_to_callback(), test_enc_conversion(), test_re_compile(), test_re_execute(), test_shm_mq(), test_shm_mq_main(), test_shm_mq_pipelined(), text_format(), text_format_append_string(), text_format_parse_digits(), text_format_parse_format(), text_format_string_conversion(), text_overlay(), text_position_setup(), text_starts_with(), text_substring(), text_to_bits(), textarray_to_strvaluelist(), textregexreplace(), textregexreplace_extended(), textToQualifiedNameList(), tfuncInitialize(), tfuncLoadRows(), thesaurus_init(), thesaurusRead(), throw_tcl_error(), tidin(), time_mi_interval(), time_part_common(), time_pl_interval(), time_recv(), timestamp2timestamptz_opt_overflow(), timestamp_age(), timestamp_bin(), timestamp_date(), timestamp_in(), timestamp_izone(), timestamp_mi(), timestamp_out(), timestamp_part_common(), timestamp_pl_interval(), timestamp_recv(), timestamp_time(), timestamp_to_char(), timestamp_trunc(), timestamp_zone(), timestamptz2timestamp(), timestamptz_age(), timestamptz_bin(), timestamptz_date(), timestamptz_in(), timestamptz_izone(), timestamptz_out(), timestamptz_part_common(), timestamptz_pl_interval_internal(), timestamptz_recv(), timestamptz_time(), timestamptz_timetz(), timestamptz_to_char(), timestamptz_trunc_internal(), timestamptz_zone(), timetz_izone(), timetz_mi_interval(), timetz_part_common(), timetz_pl_interval(), timetz_recv(), timetz_zone(), tliSwitchPoint(), to_ascii_enc(), to_ascii_encname(), to_cb(), to_date(), to_json(), to_jsonb(), to_timestamp(), tokenize_auth_file(), tokenize_include_file(), TopologicalSort(), tqueueReceiveSlot(), TransactionIdGetCommitTsData(), TransactionIdInRecentPast(), TransactionIdIsInProgress(), transformAExprNullIf(), transformAggregateCall(), transformAlterTableStmt(), transformArrayExpr(), transformAssignedExpr(), transformAssignmentIndirection(), transformAssignmentSubscripts(), transformCaseExpr(), transformCoalesceExpr(), transformCollateClause(), transformColumnDefinition(), transformColumnNameList(), transformColumnRef(), transformColumnType(), transformConstraintAttrs(), transformContainerSubscripts(), transformCreateStmt(), transformCreateTableAsStmt(), transformDeclareCursorStmt(), transformDistinctClause(), transformDistinctOnClause(), transformExprRecurse(), transformFkeyCheckAttrs(), transformFkeyGetPrimaryKey(), transformFrameOffset(), transformFromClauseItem(), transformGenericOptions(), transformGroupingFunc(), transformGroupingSet(), TransformGUCArray(), transformIndexConstraint(), transformIndexStmt(), transformIndirection(), transformInsertRow(), transformJsonAggConstructor(), transformJsonArrayQueryConstructor(), transformJsonBehavior(), transformJsonFuncExpr(), transformJsonIsPredicate(), transformJsonOutput(), transformJsonParseArg(), transformJsonParseExpr(), transformJsonReturning(), transformJsonSerializeExpr(), transformJsonTable(), transformJsonTableColumns(), transformJsonValueExpr(), transformLimitClause(), transformLockingClause(), transformMergeStmt(), transformMergeSupportFunc(), transformMultiAssignRef(), transformOnConflictArbiter(), transformParamRef(), transformPartitionBound(), transformPartitionBoundValue(), transformPartitionCmd(), transformPartitionCmdForMerge(), transformPartitionCmdForSplit(), transformPartitionRangeBounds(), transformPartitionSpec(), transformPLAssignStmt(), TransformPubWhereClauses(), transformRangeFunction(), transformRangeTableFunc(), transformRangeTableSample(), transformRelOptions(), transformReturningList(), transformRowExpr(), transformRuleStmt(), transformSelectStmt(), transformSetOperationStmt(), transformSetOperationTree(), transformStatsStmt(), transformSubLink(), transformTableConstraint(), transformTableLikeClause(), transformTypeCast(), transformUpdateTargetList(), transformValuesClause(), transformWindowDefinitions(), transformWindowFuncCall(), transformWithClause(), transformXmlExpr(), transformXmlSerialize(), translate(), triggered_change_notification(), trim_array(), truncate_check_activity(), truncate_check_rel(), truncate_identifier(), TruncateMultiXact(), ts_headline_byid_opt(), ts_headline_json_byid_opt(), ts_headline_jsonb_byid_opt(), ts_stat_sql(), tsquery_phrase_distance(), tsquery_rewrite_query(), tsvector_concat(), tsvector_filter(), tsvector_update_trigger(), tsvectorin(), ttdummy(), tts_buffer_heap_getsysattr(), tts_buffer_is_current_xact_tuple(), tts_heap_getsysattr(), tts_heap_is_current_xact_tuple(), tts_minimal_getsysattr(), tts_minimal_is_current_xact_tuple(), tts_virtual_getsysattr(), tts_virtual_is_current_xact_tuple(), tuple_data_split(), tuple_data_split_internal(), tupledesc_match(), tuples_equal(), tuplestore_copy_read_pointer(), tuplestore_gettuple(), tuplestore_puttuple_common(), tuplestore_rescan(), tuplestore_select_read_pointer(), TypeCreate(), TypeGetTupleDesc(), typenameType(), typenameTypeMod(), TypeShellMake(), typeStringToTypeName(), uint32in_subr(), uint64in_subr(), unaccent_dict(), unaccent_init(), unicode_assigned(), unicode_norm_form_from_string(), unique_key_recheck(), uniqueifyJsonbObject(), unistr(), unknown_attribute(), unlink_if_exists_fname(), unlink_initfile(), UnlinkLockFiles(), update_and_persist_local_synced_slot(), update_controlfile(), update_local_synced_slot(), update_metainfo_datafile(), UserAbortTransactionBlock(), utf8_to_iso8859(), utf8_to_win(), UtfToLocal(), uuid_generate_internal(), vac_bulkdel_one_index(), vac_cleanup_one_index(), vac_truncate_clog(), vacuum(), vacuum_get_cutoffs(), vacuum_is_permitted_for_relation(), vacuum_open_relation(), vacuum_rel(), validate_ddl_tags(), validate_option_array_item(), validate_pkattnums(), validate_relation_kind(), validate_remote_info(), validate_string_option(), validate_table_rewrite_tags(), validateConnectbyTupleDesc(), validateDomainCheckConstraint(), validateDomainNotNullConstraint(), validateFkOnDeleteSetColumns(), validateInfiniteBounds(), ValidateInputLSNs(), ValidateJoinEstimator(), ValidateOperatorReference(), ValidatePgVersion(), validateRecoveryParameters(), ValidateRestrictionEstimator(), ValidateSlotSyncParams(), ValidateXLOGDirectoryStructure(), varbit(), varbit_in(), varbit_recv(), varchar(), varchar_input(), variable_coerce_param_hook(), variable_paramref_hook(), varstr_levenshtein(), verify_brin_page(), verify_dictoptions(), verify_gist_page(), verify_hash_page(), verify_heapam(), verify_message(), VirtualXactLock(), wait_for_workers_to_become_ready(), WaitEventCustomNew(), WaitEventSetWaitBlock(), WaitForParallelWorkersToAttach(), WaitForParallelWorkersToExit(), WaitForParallelWorkersToFinish(), WaitForProcSignalBarrier(), WaitReadBuffers(), WaitXLogInsertionsToFinish(), wal_segment_open(), WalRcvFetchTimeLineHistoryFiles(), WALReadFromBuffers(), WALReadRaiseError(), WalReceiverMain(), WalSndCheckTimeOut(), WalSndSegmentOpen(), WalSummarizerMain(), widget_in(), width_bucket_array(), width_bucket_float8(), width_bucket_numeric(), win_to_utf8(), window_nth_value(), window_ntile(), worker_spi_launch(), write_auto_conf_file(), write_relcache_init_file(), write_relmap_file(), WriteControlFile(), writeTimeLineHistory(), writeTimeLineHistoryFile(), WriteWalSummary(), X509_NAME_field_to_text(), X509_NAME_to_cstring(), xlog_decode(), xlog_redo(), XLogArchiveForceDone(), XLogArchiveNotify(), XLogFileClose(), XLogFileCopy(), XLogFileInit(), XLogFileInitInternal(), XLogFileOpen(), XLogFileRead(), XLogFileReadAnyTLI(), XLogInitNewTimeline(), XLogPageRead(), XLogPrefetcherReadRecord(), XlogReadTwoPhaseData(), xlogrecovery_redo(), XLogRestorePoint(), XLogWalRcvClose(), XLogWalRcvWrite(), XLogWrite(), xmlcomment(), xmlpi(), XmlTableGetValue(), XmlTableSetColumnFilter(), XmlTableSetNamespace(), XmlTableSetRowFilter(), xmltotext_with_options(), xmlvalidate(), xpath_table(), and xslt_process().

◆ errmsg_internal()

int errmsg_internal ( const char *  fmt,
  ... 
)

Definition at line 1155 of file elog.c.

1156 {
1158  MemoryContext oldcontext;
1159 
1160  recursion_depth++;
1162  oldcontext = MemoryContextSwitchTo(edata->assoc_context);
1163 
1164  edata->message_id = fmt;
1165  EVALUATE_MESSAGE(edata->domain, message, false, false);
1166 
1167  MemoryContextSwitchTo(oldcontext);
1168  recursion_depth--;
1169  return 0; /* return value does not matter */
1170 }

References ErrorData::assoc_context, CHECK_STACK_DEPTH, ErrorData::domain, errordata, errordata_stack_depth, EVALUATE_MESSAGE, fmt, MemoryContextSwitchTo(), ErrorData::message_id, and recursion_depth.

Referenced by _bt_binsrch_insert(), _bt_get_endpoint(), _bt_insert_parent(), _bt_insertonpg(), _bt_lock_subtree_parent(), _bt_mark_page_halfdead(), _bt_pagedel(), _bt_preprocess_array_keys_final(), _bt_split(), _bt_unlink_halfdead_page(), _dosmaperr(), AlterSubscription_refresh(), apply_handle_begin_prepare(), apply_handle_commit(), apply_handle_origin(), apply_handle_prepare(), apply_handle_stream_abort(), apply_handle_stream_commit(), apply_handle_stream_prepare(), apply_handle_stream_start(), apply_handle_stream_stop(), ApplyLauncherMain(), apw_dump_now(), ATRewriteTable(), AutoVacWorkerMain(), BackendInitialize(), BackendStartup(), BackgroundWorkerStateChange(), before_shmem_exit(), BeginCopyFrom(), brinGetTupleForHeapBlock(), bt_check_every_level(), bt_check_level_from_leftmost(), bt_downlink_missing_check(), bt_leftmost_ignoring_half_dead(), bt_recheck_sibling_links(), bt_right_page_check_scankey(), bt_target_page_check(), BTreeTupleGetHeapTIDCareful(), btvacuumpage(), build_attrmap_by_position(), byteaout(), call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_real_check_hook(), call_string_check_hook(), check_agglevels_and_constraints(), check_default_partition_contents(), check_srf_call_placement(), ClosePostmasterPorts(), CompactCheckpointerRequestQueue(), CopyXLogRecordToWAL(), create_and_test_bloom(), CreateCheckPoint(), CreateRestartPoint(), dblink_res_error(), DefineIndex(), do_analyze_rel(), do_start_bgworker(), elog_node_display(), enforce_generic_type_consistency(), exec_bind_message(), exec_parse_message(), exec_replication_command(), exec_stmt_assert(), exec_stmt_raise(), ExecuteRecoveryCommand(), ExitPostmaster(), ForgetBackgroundWorker(), FreezeMultiXactId(), generateSerialExtraStmts(), get_error_stack_entry(), get_object_property_data(), GetConnection(), GetFileBackupMethod(), GetOldestUnsummarizedLSN(), GetSafeSnapshot(), GetWALBlockInfo(), handle_streamed_transaction(), HandleWalSummarizerInterrupts(), hashagg_batch_read(), heap_fetch_toast_slice(), heap_getnext(), heap_pre_freeze_checks(), heap_prepare_freeze_tuple(), heap_vacuum_rel(), heapam_index_build_range_scan(), heapam_index_validate_scan(), heapam_tuple_lock(), index_build(), index_delete_check_htid(), info_cb(), InitPostmasterChild(), InitPostmasterDeathWatchHandle(), InitWalRecovery(), InsertOneValue(), inv_seek(), inv_truncate(), IpcSemaphoreInitialize(), issue_xlog_fsync(), llvm_compile_module(), load_critical_index(), load_dh_buffer(), load_libraries(), logicalrep_worker_launch(), lz4_decompress_datum(), lz4_decompress_datum_slice(), manifest_report_error(), MemoryContextStatsDetail(), MemoryContextStatsInternal(), MemoryContextStatsPrint(), NotNullImpliedByRelConstraints(), on_proc_exit(), on_shmem_exit(), palloc_btree_page(), PerformAuthentication(), pg_GSS_error(), pg_tzenumerate_next(), pgfdw_report_error(), pglz_decompress_datum(), pglz_decompress_datum_slice(), PGSharedMemoryCreate(), pgstat_discard_stats(), pgwin32_recv(), pgwin32_signal_initialize(), pgwin32_waitforsinglesocket(), PLy_elog_impl(), PLy_output(), PostmasterMain(), PrepareForIncrementalBackup(), process_pm_child_exit(), process_pm_pmsignal(), process_pm_reload_request(), process_pm_shutdown_request(), processCancelRequest(), ProcessInterrupts(), ProcessSyncRequests(), ProcSleep(), QueuePartitionConstraintValidation(), read_backup_label(), ReadRecord(), register_dirty_segment(), RegisterBackgroundWorker(), RelationCacheInitializePhase3(), RemoveWalSummaryIfOlderThan(), RemoveXlogFile(), reportDependentObjects(), ReportWalSummaryError(), RestoreArchivedFile(), run_apply_worker(), secure_open_server(), SetMultiXactIdLimit(), SetOffsetVacuumLimit(), SetTransactionIdLimit(), shell_archive_file(), ShowTransactionStateRec(), ShowUsage(), SignalSomeChildren(), sigquit_child(), SlruInternalDeleteSegment(), SnapBuildFindSnapshot(), SocketBackend(), StartupXLOG(), statistic_proc_security_check(), SummarizeWAL(), synchronize_one_slot(), SyncRepInitConfig(), SysLoggerMain(), transformColumnRef(), transformSubLink(), transformWindowFuncCall(), TranslateSocketError(), TwoPhaseTransactionGid(), update_local_synced_slot(), UpdateMinRecoveryPoint(), vac_update_relstats(), validateForeignKeyConstraint(), verifyBackupPageConsistency(), WalRcvFetchTimeLineHistoryFiles(), WalSndLoop(), WalSummarizerMain(), write_item(), write_relcache_init_file(), XLogPageRead(), XLogReadBufferForRedoExtended(), XLogRecordAssemble(), XLogRegisterBufData(), XLogRegisterData(), XLogWalRcvProcessMsg(), and xml_out_internal().

◆ errmsg_plural()

◆ error_severity()

const char* error_severity ( int  elevel)

Definition at line 3648 of file elog.c.

3649 {
3650  const char *prefix;
3651 
3652  switch (elevel)
3653  {
3654  case DEBUG1:
3655  case DEBUG2:
3656  case DEBUG3:
3657  case DEBUG4:
3658  case DEBUG5:
3659  prefix = gettext_noop("DEBUG");
3660  break;
3661  case LOG:
3662  case LOG_SERVER_ONLY:
3663  prefix = gettext_noop("LOG");
3664  break;
3665  case INFO:
3666  prefix = gettext_noop("INFO");
3667  break;
3668  case NOTICE:
3669  prefix = gettext_noop("NOTICE");
3670  break;
3671  case WARNING:
3672  case WARNING_CLIENT_ONLY:
3673  prefix = gettext_noop("WARNING");
3674  break;
3675  case ERROR:
3676  prefix = gettext_noop("ERROR");
3677  break;
3678  case FATAL:
3679  prefix = gettext_noop("FATAL");
3680  break;
3681  case PANIC:
3682  prefix = gettext_noop("PANIC");
3683  break;
3684  default:
3685  prefix = "???";
3686  break;
3687  }
3688 
3689  return prefix;
3690 }
#define gettext_noop(x)
Definition: c.h:1196
#define LOG
Definition: elog.h:31
#define DEBUG3
Definition: elog.h:28
#define LOG_SERVER_ONLY
Definition: elog.h:32
#define WARNING_CLIENT_ONLY
Definition: elog.h:38
#define WARNING
Definition: elog.h:36
#define DEBUG2
Definition: elog.h:29
#define DEBUG1
Definition: elog.h:30
#define NOTICE
Definition: elog.h:35
#define INFO
Definition: elog.h:34
#define DEBUG5
Definition: elog.h:26
#define DEBUG4
Definition: elog.h:27

References DEBUG1, DEBUG2, DEBUG3, DEBUG4, DEBUG5, ERROR, FATAL, gettext_noop, INFO, LOG, LOG_SERVER_ONLY, NOTICE, PANIC, WARNING, and WARNING_CLIENT_ONLY.

Referenced by send_message_to_frontend(), send_message_to_server_log(), write_csvlog(), and write_jsonlog().

◆ errposition()

int errposition ( int  cursorpos)

Definition at line 1444 of file elog.c.

1445 {
1447 
1448  /* we don't bother incrementing recursion_depth */
1450 
1451  edata->cursorpos = cursorpos;
1452 
1453  return 0; /* return value does not matter */
1454 }
int cursorpos
Definition: elog.h:451

References CHECK_STACK_DEPTH, ErrorData::cursorpos, errordata, and errordata_stack_depth.

Referenced by _SPI_error_callback(), executor_errposition(), function_parse_error_transpose(), import_error_callback(), parser_errposition(), sql_exec_error_callback(), and sql_inline_error_callback().

◆ errsave_finish()

void errsave_finish ( struct Node context,
const char *  filename,
int  lineno,
const char *  funcname 
)

Definition at line 683 of file elog.c.

685 {
686  ErrorSaveContext *escontext = (ErrorSaveContext *) context;
688 
689  /* verify stack depth before accessing *edata */
691 
692  /*
693  * If errsave_start punted to errstart, then elevel will be ERROR or
694  * perhaps even PANIC. Punt likewise to errfinish.
695  */
696  if (edata->elevel >= ERROR)
697  {
698  errfinish(filename, lineno, funcname);
699  pg_unreachable();
700  }
701 
702  /*
703  * Else, we should package up the stack entry contents and deliver them to
704  * the caller.
705  */
706  recursion_depth++;
707 
708  /* Save the last few bits of error state into the stack entry */
709  set_stack_entry_location(edata, filename, lineno, funcname);
710 
711  /* Replace the LOG value that errsave_start inserted */
712  edata->elevel = ERROR;
713 
714  /*
715  * We skip calling backtrace and context functions, which are more likely
716  * to cause trouble than provide useful context; they might act on the
717  * assumption that a transaction abort is about to occur.
718  */
719 
720  /*
721  * Make a copy of the error info for the caller. All the subsidiary
722  * strings are already in the caller's context, so it's sufficient to
723  * flat-copy the stack entry.
724  */
725  escontext->error_data = palloc_object(ErrorData);
726  memcpy(escontext->error_data, edata, sizeof(ErrorData));
727 
728  /* Exit error-handling context */
730  recursion_depth--;
731 }
#define pg_unreachable()
Definition: c.h:296
void errfinish(const char *filename, int lineno, const char *funcname)
Definition: elog.c:475
#define palloc_object(type)
Definition: fe_memutils.h:62
ErrorData * error_data
Definition: miscnodes.h:48

References CHECK_STACK_DEPTH, context, ErrorData::elevel, errfinish(), ERROR, ErrorSaveContext::error_data, errordata, errordata_stack_depth, filename, funcname, palloc_object, pg_unreachable, recursion_depth, and set_stack_entry_location().

◆ errsave_start()

bool errsave_start ( struct Node context,
const char *  domain 
)

Definition at line 631 of file elog.c.

632 {
633  ErrorSaveContext *escontext;
634  ErrorData *edata;
635 
636  /*
637  * Do we have a context for soft error reporting? If not, just punt to
638  * errstart().
639  */
640  if (context == NULL || !IsA(context, ErrorSaveContext))
641  return errstart(ERROR, domain);
642 
643  /* Report that a soft error was detected */
644  escontext = (ErrorSaveContext *) context;
645  escontext->error_occurred = true;
646 
647  /* Nothing else to do if caller wants no further details */
648  if (!escontext->details_wanted)
649  return false;
650 
651  /*
652  * Okay, crank up a stack entry to store the info in.
653  */
654 
655  recursion_depth++;
656 
657  /* Initialize data for this error frame */
658  edata = get_error_stack_entry();
659  edata->elevel = LOG; /* signal all is well to errsave_finish */
660  set_stack_entry_domain(edata, domain);
661  /* Select default errcode based on the assumed elevel of ERROR */
662  edata->sqlerrcode = ERRCODE_INTERNAL_ERROR;
663 
664  /*
665  * Any allocations for this error state level should go into the caller's
666  * context. We don't need to pollute ErrorContext, or even require it to
667  * exist, in this code path.
668  */
670 
671  recursion_depth--;
672  return true;
673 }
bool errstart(int elevel, const char *domain)
Definition: elog.c:344
static ErrorData * get_error_stack_entry(void)
Definition: elog.c:753
static void set_stack_entry_domain(ErrorData *edata, const char *domain)
Definition: elog.c:780
#define IsA(nodeptr, _type_)
Definition: nodes.h:158
bool details_wanted
Definition: miscnodes.h:47
bool error_occurred
Definition: miscnodes.h:46

References ErrorData::assoc_context, context, CurrentMemoryContext, ErrorSaveContext::details_wanted, ErrorData::elevel, ERROR, ErrorSaveContext::error_occurred, errstart(), get_error_stack_entry(), IsA, LOG, recursion_depth, set_stack_entry_domain(), and ErrorData::sqlerrcode.

◆ errstart()

bool errstart ( int  elevel,
const char *  domain 
)

Definition at line 344 of file elog.c.

345 {
346  ErrorData *edata;
347  bool output_to_server;
348  bool output_to_client = false;
349  int i;
350 
351  /*
352  * Check some cases in which we want to promote an error into a more
353  * severe error. None of this logic applies for non-error messages.
354  */
355  if (elevel >= ERROR)
356  {
357  /*
358  * If we are inside a critical section, all errors become PANIC
359  * errors. See miscadmin.h.
360  */
361  if (CritSectionCount > 0)
362  elevel = PANIC;
363 
364  /*
365  * Check reasons for treating ERROR as FATAL:
366  *
367  * 1. we have no handler to pass the error to (implies we are in the
368  * postmaster or in backend startup).
369  *
370  * 2. ExitOnAnyError mode switch is set (initdb uses this).
371  *
372  * 3. the error occurred after proc_exit has begun to run. (It's
373  * proc_exit's responsibility to see that this doesn't turn into
374  * infinite recursion!)
375  */
376  if (elevel == ERROR)
377  {
378  if (PG_exception_stack == NULL ||
379  ExitOnAnyError ||
381  elevel = FATAL;
382  }
383 
384  /*
385  * If the error level is ERROR or more, errfinish is not going to
386  * return to caller; therefore, if there is any stacked error already
387  * in progress it will be lost. This is more or less okay, except we
388  * do not want to have a FATAL or PANIC error downgraded because the
389  * reporting process was interrupted by a lower-grade error. So check
390  * the stack and make sure we panic if panic is warranted.
391  */
392  for (i = 0; i <= errordata_stack_depth; i++)
393  elevel = Max(elevel, errordata[i].elevel);
394  }
395 
396  /*
397  * Now decide whether we need to process this report at all; if it's
398  * warning or less and not enabled for logging, just return false without
399  * starting up any error logging machinery.
400  */
401  output_to_server = should_output_to_server(elevel);
402  output_to_client = should_output_to_client(elevel);
403  if (elevel < ERROR && !output_to_server && !output_to_client)
404  return false;
405 
406  /*
407  * We need to do some actual work. Make sure that memory context
408  * initialization has finished, else we can't do anything useful.
409  */
410  if (ErrorContext == NULL)
411  {
412  /* Oops, hard crash time; very little we can do safely here */
413  write_stderr("error occurred before error message processing is available\n");
414  exit(2);
415  }
416 
417  /*
418  * Okay, crank up a stack entry to store the info in.
419  */
420 
421  if (recursion_depth++ > 0 && elevel >= ERROR)
422  {
423  /*
424  * Oops, error during error processing. Clear ErrorContext as
425  * discussed at top of file. We will not return to the original
426  * error's reporter or handler, so we don't need it.
427  */
429 
430  /*
431  * Infinite error recursion might be due to something broken in a
432  * context traceback routine. Abandon them too. We also abandon
433  * attempting to print the error statement (which, if long, could
434  * itself be the source of the recursive failure).
435  */
437  {
438  error_context_stack = NULL;
439  debug_query_string = NULL;
440  }
441  }
442 
443  /* Initialize data for this error frame */
444  edata = get_error_stack_entry();
445  edata->elevel = elevel;
446  edata->output_to_server = output_to_server;
447  edata->output_to_client = output_to_client;
448  set_stack_entry_domain(edata, domain);
449  /* Select default errcode based on elevel */
450  if (elevel >= ERROR)
451  edata->sqlerrcode = ERRCODE_INTERNAL_ERROR;
452  else if (elevel >= WARNING)
453  edata->sqlerrcode = ERRCODE_WARNING;
454  else
455  edata->sqlerrcode = ERRCODE_SUCCESSFUL_COMPLETION;
456 
457  /*
458  * Any allocations for this error state level should go into ErrorContext
459  */
460  edata->assoc_context = ErrorContext;
461 
462  recursion_depth--;
463  return true;
464 }
#define Max(x, y)
Definition: c.h:998
static bool should_output_to_client(int elevel)
Definition: elog.c:246
static bool should_output_to_server(int elevel)
Definition: elog.c:237
void write_stderr(const char *fmt,...)
Definition: elog.c:3719
bool ExitOnAnyError
Definition: globals.c:121
bool proc_exit_inprogress
Definition: ipc.c:40
exit(1)
void MemoryContextReset(MemoryContext context)
Definition: mcxt.c:383

References ErrorData::assoc_context, CritSectionCount, debug_query_string, ErrorData::elevel, ERROR, error_context_stack, ErrorContext, errordata, errordata_stack_depth, exit(), ExitOnAnyError, FATAL, get_error_stack_entry(), i, in_error_recursion_trouble(), Max, MemoryContextReset(), ErrorData::output_to_client, ErrorData::output_to_server, PANIC, PG_exception_stack, proc_exit_inprogress, recursion_depth, set_stack_entry_domain(), should_output_to_client(), should_output_to_server(), ErrorData::sqlerrcode, WARNING, and write_stderr().

Referenced by errsave_start(), errstart_cold(), and ThrowErrorData().

◆ errstart_cold()

pg_attribute_cold bool errstart_cold ( int  elevel,
const char *  domain 
)

Definition at line 328 of file elog.c.

329 {
330  return errstart(elevel, domain);
331 }

References errstart().

◆ FlushErrorState()

◆ format_elog_string()

char* format_elog_string ( const char *  fmt,
  ... 
)

Definition at line 1635 of file elog.c.

1636 {
1637  ErrorData errdata;
1638  ErrorData *edata;
1639  MemoryContext oldcontext;
1640 
1641  /* Initialize a mostly-dummy error frame */
1642  edata = &errdata;
1643  MemSet(edata, 0, sizeof(ErrorData));
1644  /* the default text domain is the backend's */
1645  edata->domain = save_format_domain ? save_format_domain : PG_TEXTDOMAIN("postgres");
1646  /* set the errno to be used to interpret %m */
1648 
1649  oldcontext = MemoryContextSwitchTo(ErrorContext);
1650 
1651  edata->message_id = fmt;
1652  EVALUATE_MESSAGE(edata->domain, message, false, true);
1653 
1654  MemoryContextSwitchTo(oldcontext);
1655 
1656  return edata->message;
1657 }
#define PG_TEXTDOMAIN(domain)
Definition: c.h:1214
#define MemSet(start, val, len)
Definition: c.h:1020
static int save_format_errnumber
Definition: elog.c:1622
static const char * save_format_domain
Definition: elog.c:1623

References ErrorData::domain, ErrorContext, EVALUATE_MESSAGE, fmt, MemoryContextSwitchTo(), MemSet, ErrorData::message, ErrorData::message_id, PG_TEXTDOMAIN, save_format_domain, save_format_errnumber, and ErrorData::saved_errno.

◆ FreeErrorData()

void FreeErrorData ( ErrorData edata)

◆ FreeErrorDataContents()

static void FreeErrorDataContents ( ErrorData edata)
static

Definition at line 1811 of file elog.c.

1812 {
1813  if (edata->message)
1814  pfree(edata->message);
1815  if (edata->detail)
1816  pfree(edata->detail);
1817  if (edata->detail_log)
1818  pfree(edata->detail_log);
1819  if (edata->hint)
1820  pfree(edata->hint);
1821  if (edata->context)
1822  pfree(edata->context);
1823  if (edata->backtrace)
1824  pfree(edata->backtrace);
1825  if (edata->schema_name)
1826  pfree(edata->schema_name);
1827  if (edata->table_name)
1828  pfree(edata->table_name);
1829  if (edata->column_name)
1830  pfree(edata->column_name);
1831  if (edata->datatype_name)
1832  pfree(edata->datatype_name);
1833  if (edata->constraint_name)
1834  pfree(edata->constraint_name);
1835  if (edata->internalquery)
1836  pfree(edata->internalquery);
1837 }

References ErrorData::backtrace, ErrorData::column_name, ErrorData::constraint_name, ErrorData::context, ErrorData::datatype_name, ErrorData::detail, ErrorData::detail_log, ErrorData::hint, ErrorData::internalquery, ErrorData::message, pfree(), ErrorData::schema_name, and ErrorData::table_name.

Referenced by errfinish(), and FreeErrorData().

◆ get_backend_type_for_log()

const char* get_backend_type_for_log ( void  )

Definition at line 2732 of file elog.c.

2733 {
2734  const char *backend_type_str;
2735 
2736  if (MyProcPid == PostmasterPid)
2737  backend_type_str = "postmaster";
2738  else if (MyBackendType == B_BG_WORKER)
2739  backend_type_str = MyBgworkerEntry->bgw_type;
2740  else
2741  backend_type_str = GetBackendTypeDesc(MyBackendType);
2742 
2743  return backend_type_str;
2744 }
pid_t PostmasterPid
Definition: globals.c:104
int MyProcPid
Definition: globals.c:46
@ B_BG_WORKER
Definition: miscadmin.h:341
const char * GetBackendTypeDesc(BackendType backendType)
Definition: miscinit.c:263
BackendType MyBackendType
Definition: miscinit.c:63
BackgroundWorker * MyBgworkerEntry
Definition: postmaster.c:185
char bgw_type[BGW_MAXLEN]
Definition: bgworker.h:92

References B_BG_WORKER, BackgroundWorker::bgw_type, GetBackendTypeDesc(), MyBackendType, MyBgworkerEntry, MyProcPid, and PostmasterPid.

Referenced by log_status_format(), write_csvlog(), and write_jsonlog().

◆ get_error_stack_entry()

static ErrorData * get_error_stack_entry ( void  )
static

Definition at line 753 of file elog.c.

754 {
755  ErrorData *edata;
756 
757  /* Allocate error frame */
760  {
761  /* Wups, stack not big enough */
762  errordata_stack_depth = -1; /* make room on stack */
763  ereport(PANIC, (errmsg_internal("ERRORDATA_STACK_SIZE exceeded")));
764  }
765 
766  /* Initialize error frame to all zeroes/NULLs */
768  memset(edata, 0, sizeof(ErrorData));
769 
770  /* Save errno immediately to ensure error parameter eval can't change it */
771  edata->saved_errno = errno;
772 
773  return edata;
774 }
#define unlikely(x)
Definition: c.h:311
#define ERRORDATA_STACK_SIZE
Definition: elog.c:145

References ereport, errmsg_internal(), errordata, errordata_stack_depth, ERRORDATA_STACK_SIZE, PANIC, ErrorData::saved_errno, and unlikely.

Referenced by errsave_start(), errstart(), GetErrorContextStack(), and ReThrowError().

◆ get_formatted_log_time()

char* get_formatted_log_time ( void  )

Definition at line 2635 of file elog.c.

2636 {
2637  pg_time_t stamp_time;
2638  char msbuf[13];
2639 
2640  /* leave if already computed */
2641  if (formatted_log_time[0] != '\0')
2642  return formatted_log_time;
2643 
2644  if (!saved_timeval_set)
2645  {
2646  gettimeofday(&saved_timeval, NULL);
2647  saved_timeval_set = true;
2648  }
2649 
2650  stamp_time = (pg_time_t) saved_timeval.tv_sec;
2651 
2652  /*
2653  * Note: we expect that guc.c will ensure that log_timezone is set up (at
2654  * least with a minimal GMT value) before Log_line_prefix can become
2655  * nonempty or CSV/JSON mode can be selected.
2656  */
2658  /* leave room for milliseconds... */
2659  "%Y-%m-%d %H:%M:%S %Z",
2660  pg_localtime(&stamp_time, log_timezone));
2661 
2662  /* 'paste' milliseconds into place... */
2663  sprintf(msbuf, ".%03d", (int) (saved_timeval.tv_usec / 1000));
2664  memcpy(formatted_log_time + 19, msbuf, 4);
2665 
2666  return formatted_log_time;
2667 }
#define FORMATTED_TS_LEN
Definition: elog.c:160
static struct timeval saved_timeval
Definition: elog.c:157
int64 pg_time_t
Definition: pgtime.h:23
struct pg_tm * pg_localtime(const pg_time_t *timep, const pg_tz *tz)
Definition: localtime.c:1344
size_t pg_strftime(char *s, size_t maxsize, const char *format, const struct pg_tm *t)
Definition: strftime.c:128
PGDLLIMPORT pg_tz * log_timezone
Definition: pgtz.c:31
#define sprintf
Definition: port.h:240
int gettimeofday(struct timeval *tp, void *tzp)

References formatted_log_time, FORMATTED_TS_LEN, gettimeofday(), log_timezone, pg_localtime(), pg_strftime(), saved_timeval, saved_timeval_set, and sprintf.

Referenced by log_status_format(), write_csvlog(), and write_jsonlog().

◆ get_formatted_start_time()

char* get_formatted_start_time ( void  )

Definition at line 2685 of file elog.c.

2686 {
2687  pg_time_t stamp_time = (pg_time_t) MyStartTime;
2688 
2689  /* leave if already computed */
2690  if (formatted_start_time[0] != '\0')
2691  return formatted_start_time;
2692 
2693  /*
2694  * Note: we expect that guc.c will ensure that log_timezone is set up (at
2695  * least with a minimal GMT value) before Log_line_prefix can become
2696  * nonempty or CSV/JSON mode can be selected.
2697  */
2699  "%Y-%m-%d %H:%M:%S %Z",
2700  pg_localtime(&stamp_time, log_timezone));
2701 
2702  return formatted_start_time;
2703 }
static char formatted_start_time[FORMATTED_TS_LEN]
Definition: elog.c:161
pg_time_t MyStartTime
Definition: globals.c:47

References formatted_start_time, FORMATTED_TS_LEN, log_timezone, MyStartTime, pg_localtime(), and pg_strftime().

Referenced by log_status_format(), write_csvlog(), and write_jsonlog().

◆ geterrcode()

int geterrcode ( void  )

Definition at line 1559 of file elog.c.

1560 {
1562 
1563  /* we don't bother incrementing recursion_depth */
1565 
1566  return edata->sqlerrcode;
1567 }

References CHECK_STACK_DEPTH, errordata, errordata_stack_depth, and ErrorData::sqlerrcode.

Referenced by pcb_error_callback().

◆ GetErrorContextStack()

char* GetErrorContextStack ( void  )

Definition at line 2037 of file elog.c.

2038 {
2039  ErrorData *edata;
2040  ErrorContextCallback *econtext;
2041 
2042  /*
2043  * Crank up a stack entry to store the info in.
2044  */
2045  recursion_depth++;
2046 
2047  edata = get_error_stack_entry();
2048 
2049  /*
2050  * Set up assoc_context to be the caller's context, so any allocations
2051  * done (which will include edata->context) will use their context.
2052  */
2054 
2055  /*
2056  * Call any context callback functions to collect the context information
2057  * into edata->context.
2058  *
2059  * Errors occurring in callback functions should go through the regular
2060  * error handling code which should handle any recursive errors, though we
2061  * double-check above, just in case.
2062  */
2063  for (econtext = error_context_stack;
2064  econtext != NULL;
2065  econtext = econtext->previous)
2066  econtext->callback(econtext->arg);
2067 
2068  /*
2069  * Clean ourselves off the stack, any allocations done should have been
2070  * using edata->assoc_context, which we set up earlier to be the caller's
2071  * context, so we're free to just remove our entry off the stack and
2072  * decrement recursion depth and exit.
2073  */
2075  recursion_depth--;
2076 
2077  /*
2078  * Return a pointer to the string the caller asked for, which should have
2079  * been allocated in their context.
2080  */
2081  return edata->context;
2082 }

References ErrorContextCallback::arg, ErrorData::assoc_context, ErrorContextCallback::callback, ErrorData::context, CurrentMemoryContext, error_context_stack, errordata_stack_depth, get_error_stack_entry(), ErrorContextCallback::previous, and recursion_depth.

Referenced by exec_stmt_getdiag().

◆ geterrposition()

int geterrposition ( void  )

Definition at line 1576 of file elog.c.

1577 {
1579 
1580  /* we don't bother incrementing recursion_depth */
1582 
1583  return edata->cursorpos;
1584 }

References CHECK_STACK_DEPTH, ErrorData::cursorpos, errordata, and errordata_stack_depth.

Referenced by _SPI_error_callback(), function_parse_error_transpose(), import_error_callback(), sql_exec_error_callback(), and sql_inline_error_callback().

◆ getinternalerrposition()

int getinternalerrposition ( void  )

Definition at line 1593 of file elog.c.

1594 {
1596 
1597  /* we don't bother incrementing recursion_depth */
1599 
1600  return edata->internalpos;
1601 }
int internalpos
Definition: elog.h:452

References CHECK_STACK_DEPTH, errordata, errordata_stack_depth, and ErrorData::internalpos.

Referenced by function_parse_error_transpose().

◆ in_error_recursion_trouble()

bool in_error_recursion_trouble ( void  )

Definition at line 295 of file elog.c.

296 {
297  /* Pull the plug if recurse more than once */
298  return (recursion_depth > 2);
299 }

References recursion_depth.

Referenced by err_gettext(), err_sendstring(), errstart(), pgfdw_abort_cleanup(), pgfdw_abort_cleanup_begin(), and write_console().

◆ internalerrposition()

int internalerrposition ( int  cursorpos)

Definition at line 1460 of file elog.c.

1461 {
1463 
1464  /* we don't bother incrementing recursion_depth */
1466 
1467  edata->internalpos = cursorpos;
1468 
1469  return 0; /* return value does not matter */
1470 }

References CHECK_STACK_DEPTH, errordata, errordata_stack_depth, and ErrorData::internalpos.

Referenced by _SPI_error_callback(), function_parse_error_transpose(), import_error_callback(), plpgsql_scanner_errposition(), PLy_elog_impl(), sql_exec_error_callback(), and sql_inline_error_callback().

◆ internalerrquery()

int internalerrquery ( const char *  query)

Definition at line 1480 of file elog.c.

1481 {
1483 
1484  /* we don't bother incrementing recursion_depth */
1486 
1487  if (edata->internalquery)
1488  {
1489  pfree(edata->internalquery);
1490  edata->internalquery = NULL;
1491  }
1492 
1493  if (query)
1494  edata->internalquery = MemoryContextStrdup(edata->assoc_context, query);
1495 
1496  return 0; /* return value does not matter */
1497 }
char * MemoryContextStrdup(MemoryContext context, const char *string)
Definition: mcxt.c:1683

References ErrorData::assoc_context, CHECK_STACK_DEPTH, errordata, errordata_stack_depth, ErrorData::internalquery, MemoryContextStrdup(), and pfree().

Referenced by _SPI_error_callback(), function_parse_error_transpose(), import_error_callback(), plpgsql_scanner_errposition(), PLy_elog_impl(), sql_exec_error_callback(), and sql_inline_error_callback().

◆ is_log_level_output()

static bool is_log_level_output ( int  elevel,
int  log_min_level 
)
inlinestatic

Definition at line 203 of file elog.c.

204 {
205  if (elevel == LOG || elevel == LOG_SERVER_ONLY)
206  {
207  if (log_min_level == LOG || log_min_level <= ERROR)
208  return true;
209  }
210  else if (elevel == WARNING_CLIENT_ONLY)
211  {
212  /* never sent to log, regardless of log_min_level */
213  return false;
214  }
215  else if (log_min_level == LOG)
216  {
217  /* elevel != LOG */
218  if (elevel >= FATAL)
219  return true;
220  }
221  /* Neither is LOG */
222  else if (elevel >= log_min_level)
223  return true;
224 
225  return false;
226 }

References ERROR, FATAL, LOG, LOG_SERVER_ONLY, and WARNING_CLIENT_ONLY.

Referenced by check_log_of_query(), and should_output_to_server().

◆ log_line_prefix()

static void log_line_prefix ( StringInfo  buf,
ErrorData edata 
)
static

Definition at line 2785 of file elog.c.

2786 {
2788 }
void log_status_format(StringInfo buf, const char *format, ErrorData *edata)
Definition: elog.c:2794
char * Log_line_prefix
Definition: elog.c:109

References buf, Log_line_prefix, and log_status_format().

Referenced by send_message_to_server_log().

◆ log_status_format()

void log_status_format ( StringInfo  buf,
const char *  format,
ErrorData edata 
)

Definition at line 2794 of file elog.c.

2795 {
2796  /* static counter for line numbers */
2797  static long log_line_number = 0;
2798 
2799  /* has counter been reset in current process? */
2800  static int log_my_pid = 0;
2801  int padding;
2802  const char *p;
2803 
2804  /*
2805  * This is one of the few places where we'd rather not inherit a static
2806  * variable's value from the postmaster. But since we will, reset it when
2807  * MyProcPid changes. MyStartTime also changes when MyProcPid does, so
2808  * reset the formatted start timestamp too.
2809  */
2810  if (log_my_pid != MyProcPid)
2811  {
2812  log_line_number = 0;
2813  log_my_pid = MyProcPid;
2815  }
2816  log_line_number++;
2817 
2818  if (format == NULL)
2819  return; /* in case guc hasn't run yet */
2820 
2821  for (p = format; *p != '\0'; p++)
2822  {
2823  if (*p != '%')
2824  {
2825  /* literal char, just copy */
2827  continue;
2828  }
2829 
2830  /* must be a '%', so skip to the next char */
2831  p++;
2832  if (*p == '\0')
2833  break; /* format error - ignore it */
2834  else if (*p == '%')
2835  {
2836  /* string contains %% */
2837  appendStringInfoChar(buf, '%');
2838  continue;
2839  }
2840 
2841 
2842  /*
2843  * Process any formatting which may exist after the '%'. Note that
2844  * process_log_prefix_padding moves p past the padding number if it
2845  * exists.
2846  *
2847  * Note: Since only '-', '0' to '9' are valid formatting characters we
2848  * can do a quick check here to pre-check for formatting. If the char
2849  * is not formatting then we can skip a useless function call.
2850  *
2851  * Further note: At least on some platforms, passing %*s rather than
2852  * %s to appendStringInfo() is substantially slower, so many of the
2853  * cases below avoid doing that unless non-zero padding is in fact
2854  * specified.
2855  */
2856  if (*p > '9')
2857  padding = 0;
2858  else if ((p = process_log_prefix_padding(p, &padding)) == NULL)
2859  break;
2860 
2861  /* process the option */
2862  switch (*p)
2863  {
2864  case 'a':
2865  if (MyProcPort)
2866  {
2867  const char *appname = application_name;
2868 
2869  if (appname == NULL || *appname == '\0')
2870  appname = _("[unknown]");
2871  if (padding != 0)
2872  appendStringInfo(buf, "%*s", padding, appname);
2873  else
2874  appendStringInfoString(buf, appname);
2875  }
2876  else if (padding != 0)
2878  padding > 0 ? padding : -padding);
2879 
2880  break;
2881  case 'b':
2882  {
2883  const char *backend_type_str = get_backend_type_for_log();
2884 
2885  if (padding != 0)
2886  appendStringInfo(buf, "%*s", padding, backend_type_str);
2887  else
2888  appendStringInfoString(buf, backend_type_str);
2889  break;
2890  }
2891  case 'u':
2892  if (MyProcPort)
2893  {
2894  const char *username = MyProcPort->user_name;
2895 
2896  if (username == NULL || *username == '\0')
2897  username = _("[unknown]");
2898  if (padding != 0)
2899  appendStringInfo(buf, "%*s", padding, username);
2900  else
2902  }
2903  else if (padding != 0)
2905  padding > 0 ? padding : -padding);
2906  break;
2907  case 'd':
2908  if (MyProcPort)
2909  {
2910  const char *dbname = MyProcPort->database_name;
2911 
2912  if (dbname == NULL || *dbname == '\0')
2913  dbname = _("[unknown]");
2914  if (padding != 0)
2915  appendStringInfo(buf, "%*s", padding, dbname);
2916  else
2918  }
2919  else if (padding != 0)
2921  padding > 0 ? padding : -padding);
2922  break;
2923  case 'c':
2924  if (padding != 0)
2925  {
2926  char strfbuf[128];
2927 
2928  snprintf(strfbuf, sizeof(strfbuf) - 1, "%lx.%x",
2929  (long) (MyStartTime), MyProcPid);
2930  appendStringInfo(buf, "%*s", padding, strfbuf);
2931  }
2932  else
2933  appendStringInfo(buf, "%lx.%x", (long) (MyStartTime), MyProcPid);
2934  break;
2935  case 'p':
2936  if (padding != 0)
2937  appendStringInfo(buf, "%*d", padding, MyProcPid);
2938  else
2939  appendStringInfo(buf, "%d", MyProcPid);
2940  break;
2941 
2942  case 'P':
2943  if (MyProc)
2944  {
2945  PGPROC *leader = MyProc->lockGroupLeader;
2946 
2947  /*
2948  * Show the leader only for active parallel workers. This
2949  * leaves out the leader of a parallel group.
2950  */
2951  if (leader == NULL || leader->pid == MyProcPid)
2953  padding > 0 ? padding : -padding);
2954  else if (padding != 0)
2955  appendStringInfo(buf, "%*d", padding, leader->pid);
2956  else
2957  appendStringInfo(buf, "%d", leader->pid);
2958  }
2959  else if (padding != 0)
2961  padding > 0 ? padding : -padding);
2962  break;
2963 
2964  case 'l':
2965  if (padding != 0)
2966  appendStringInfo(buf, "%*ld", padding, log_line_number);