45 int save_errno = errno;
113 elog(
ERROR,
"vsnprintf failed: %m with format string \"%s\"",
fmt);
115 fprintf(stderr,
"vsnprintf failed: %m with format string \"%s\"\n",
121 if ((
size_t) nprinted <
len)
124 return (
size_t) nprinted;
139 (
errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
140 errmsg(
"out of memory")));
142 fprintf(stderr,
_(
"out of memory\n"));
#define fprintf(file, fmt, msg)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
static void const char * fmt
void pfree(void *pointer)
size_t pvsnprintf(char *buf, size_t len, const char *fmt, va_list args)
char * psprintf(const char *fmt,...)