100 int stmt_location,
int stmt_len,
111 char ***fields,
int *nfields);
static Datum values[MAXATTR]
struct CopyFormatOptions CopyFormatOptions
List * CopyGetAttnums(TupleDesc tupDesc, Relation rel, List *attnamelist)
char * CopyLimitPrintoutLength(const char *str)
@ COPY_LOG_VERBOSITY_SILENT
@ COPY_LOG_VERBOSITY_VERBOSE
@ COPY_LOG_VERBOSITY_DEFAULT
uint64 DoCopyTo(CopyToState cstate)
void DoCopy(ParseState *pstate, const CopyStmt *stmt, int stmt_location, int stmt_len, uint64 *processed)
CopyFromState BeginCopyFrom(ParseState *pstate, Relation rel, Node *whereClause, const char *filename, bool is_program, copy_data_source_cb data_source_cb, List *attnamelist, List *options)
struct CopyFromStateData * CopyFromState
CopyToState BeginCopyTo(ParseState *pstate, Relation rel, RawStmt *raw_query, Oid queryRelId, const char *filename, bool is_program, copy_data_dest_cb data_dest_cb, List *attnamelist, List *options)
void(* copy_data_dest_cb)(void *data, int len)
uint64 CopyFrom(CopyFromState cstate)
int(* copy_data_source_cb)(void *outbuf, int minread, int maxread)
void ProcessCopyOptions(ParseState *pstate, CopyFormatOptions *opts_out, bool is_from, List *options)
void EndCopyFrom(CopyFromState cstate)
struct CopyToStateData * CopyToState
void EndCopyTo(CopyToState cstate)
DestReceiver * CreateCopyDestReceiver(void)
void CopyFromErrorCallback(void *arg)
bool NextCopyFrom(CopyFromState cstate, ExprContext *econtext, Datum *values, bool *nulls)
bool NextCopyFromRawFields(CopyFromState cstate, char ***fields, int *nfields)
copy_data_dest_cb data_dest_cb