26 #define QUERY_ALLOC 8192
28 #define MESSAGE_WIDTH 60
37 vsnprintf(message,
sizeof(message), fmt, ap);
43 printf(
"%s",
_(message));
48 printf(
"%s",
_(message));
52 printf(
"%s",
_(message));
56 printf(
"\n%s",
_(message));
57 printf(
"%s",
_(
"Failure, exiting\n"));
105 char fetch_done_str[32];
106 char fetch_size_str[32];
141 (
int) strlen(fetch_size_str), fetch_done_str, fetch_size_str,
static void pg_log_v(eLogType type, const char *fmt, va_list ap) pg_attribute_printf(2
int snprintf(char *str, size_t count, const char *fmt,...) pg_attribute_printf(3
void pg_fatal(const char *fmt,...)
int int vsnprintf(char *str, size_t count, const char *fmt, va_list args)
void pg_log(eLogType type, const char *fmt,...)
static pg_time_t last_progress_report
static pg_attribute_printf(2, 0)
void progress_report(bool force)
Datum now(PG_FUNCTION_ARGS)