summaryrefslogtreecommitdiff
path: root/src/include/pgxc/copyops.h
blob: 4ddf1597959fce21e34d00776cf44a3b02dd7f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*--------------------------------------------------------------------------
 *
 * copyops.h
 *		Routines for manipulation of remote COPY data
 *
 *
 * Copyright (c) 2010-2012 Postgres-XC Development Group
 *
 *
 * IDENTIFICATION
 *		src/include/pgxc/copyops.h
 *
 *-------------------------------------------------------------------------
 */

#ifndef COPYOPS_H
#define COPYOPS_H

#include "access/tupdesc.h"

/* Type of data delimiter used for data redistribution using remote COPY */
#define COPYOPS_DELIMITER	'\t'

extern char **CopyOps_RawDataToArrayField(TupleDesc tupdesc, char *message,
		int len, char **tmpbuf);
extern char *CopyOps_BuildOneRowTo(TupleDesc tupdesc, Datum *values, bool *nulls, int *len);

#endif