136 else if (
token[0] ==
')')
192 result->
from =
false;
383 pg_log_error(
"could not close pipe to external command: %m");
389 reason ? reason :
"");
508#define COPYBUFSIZ 8192
528 _(
"canceled by user"));
539 puts(
_(
"Enter data to be copied followed by a newline.\n"
540 "End with a backslash and a period on a line by itself, or an EOF signal."));
621 if (
buf[buflen - 1] ==
'\n')
693 _(
"aborted because of read failure")) <= 0)
727 _(
"trying to exit copy mode"));
void expand_tilde(char **filename)
volatile sig_atomic_t sigint_interrupt_enabled
sigjmp_buf sigint_interrupt_jmp
void SetShellResultVariables(int wait_result)
bool standard_strings(void)
bool SendQuery(const char *query)
bool handleCopyOut(PGconn *conn, FILE *copystream, PGresult **res)
bool do_copy(const char *args)
static void xstrcat(char **var, const char *more)
static struct copy_options * parse_slash_copy(const char *args)
bool handleCopyIn(PGconn *conn, FILE *copystream, bool isbinary, PGresult **res)
static void free_copy_options(struct copy_options *ptr)
int PQprotocolVersion(const PGconn *conn)
char * PQerrorMessage(const PGconn *conn)
void PQfreemem(void *ptr)
int PQputCopyEnd(PGconn *conn, const char *errormsg)
int PQputCopyData(PGconn *conn, const char *buffer, int nbytes)
int PQgetCopyData(PGconn *conn, char **buffer, int async)
char * pg_strdup(const char *in)
void * pg_malloc0(size_t size)
void restore_sigpipe_trap(void)
void disable_sigpipe_trap(void)
#define pg_log_error(...)
static char buf[DEFAULT_XLOG_SEG_SIZE]
int pg_strcasecmp(const char *s1, const char *s2)
void canonicalize_path_enc(char *path, int encoding)
void printfPQExpBuffer(PQExpBuffer str, const char *fmt,...)
void initPQExpBuffer(PQExpBuffer str)
void appendPQExpBufferStr(PQExpBuffer str, const char *data)
void termPQExpBuffer(PQExpBuffer str)
char * get_prompt(promptStatus_t status, ConditionalStack cstack)
char * psprintf(const char *fmt,...)
char * strtokx(const char *s, const char *whitespace, const char *delim, const char *quote, char escape, bool e_strings, bool del_quotes, int encoding)
void strip_quotes(char *source, char quote, char escape, int encoding)
char * wait_result_to_str(int exitstatus)