70 pg_fatal(
"this format cannot be read");
99 (
const unsigned char *)
data,
103 ahprintf(AH,
"SELECT pg_catalog.lowrite(0, %s);\n",
buf->data);
143 pg_fatal(
"invalid OID for large object");
150 ahprintf(AH,
"SELECT pg_catalog.lo_open(pg_catalog.lo_create('%u'), %d);\n",
153 ahprintf(AH,
"SELECT pg_catalog.lo_open('%u', %d);\n",
169 ahprintf(AH,
"SELECT pg_catalog.lo_close(0);\n\n");
195 if (strcmp(te->
desc,
"BLOBS") == 0)
200 if (strcmp(te->
desc,
"BLOBS") == 0)
void ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH)
int ahprintf(ArchiveHandle *AH, const char *fmt,...)
#define appendByteaLiteralAHX(buf, str, len, AH)
void DropLOIfExists(ArchiveHandle *AH, Oid oid)
static void _PrintTocData(ArchiveHandle *AH, TocEntry *te)
void InitArchiveFmt_Null(ArchiveHandle *AH)
static void _WriteData(ArchiveHandle *AH, const void *data, size_t dLen)
static void _CloseArchive(ArchiveHandle *AH)
static void _StartLOs(ArchiveHandle *AH, TocEntry *te)
static void _EndLO(ArchiveHandle *AH, TocEntry *te, Oid oid)
static void _EndLOs(ArchiveHandle *AH, TocEntry *te)
static int _WriteByte(ArchiveHandle *AH, const int i)
static void _StartLO(ArchiveHandle *AH, TocEntry *te, Oid oid)
static void _WriteLOData(ArchiveHandle *AH, const void *data, size_t dLen)
static void _EndData(ArchiveHandle *AH, TocEntry *te)
static void _WriteBuf(ArchiveHandle *AH, const void *buf, size_t len)
PQExpBuffer createPQExpBuffer(void)
void destroyPQExpBuffer(PQExpBuffer str)
DeClonePtrType DeClonePtr
StartLOsPtrType StartLOsPtr
WriteDataPtrType WriteDataPtr
StartLOPtrType StartLOPtr
WriteBufPtrType WriteBufPtr
PrintTocDataPtrType PrintTocDataPtr
struct _tocEntry * currToc
WriteBytePtrType WriteBytePtr
EndDataPtrType EndDataPtr
const void * dataDumperArg