28 (
errmsg(
"COPY TO callback called with data \"%s\" and length %d",
46 (
long long) processed)));
uint64 DoCopyTo(CopyToState cstate)
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 EndCopyTo(CopyToState cstate)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define RelationGetRelid(relation)
void table_close(Relation relation, LOCKMODE lockmode)
Relation table_open(Oid relationId, LOCKMODE lockmode)
Datum test_copy_to_callback(PG_FUNCTION_ARGS)
static void to_cb(void *data, int len)
PG_FUNCTION_INFO_V1(test_copy_to_callback)