PostgreSQL Source Code git master
|
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "libpq-fe.h"
#include "libpq/libpq-fs.h"
Go to the source code of this file.
Macros | |
#define | BUFSIZE 1024 |
Functions | |
static Oid | importFile (PGconn *conn, char *filename) |
static void | pickout (PGconn *conn, Oid lobjId, int start, int len) |
static void | overwrite (PGconn *conn, Oid lobjId, int start, int len) |
static void | exportFile (PGconn *conn, Oid lobjId, char *filename) |
static void | exit_nicely (PGconn *conn) |
int | main (int argc, char **argv) |
|
static |
Definition at line 150 of file testlo.c.
References buf, BUFSIZE, close, conn, fd(), filename, fprintf, INV_READ, lo_close(), lo_open(), lo_read(), and write.
Definition at line 34 of file testlo.c.
References buf, BUFSIZE, close, conn, fd(), filename, fprintf, INV_READ, INV_WRITE, lo_close(), lo_creat(), lo_open(), lo_write(), and read.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 200 of file testlo.c.
References conn, CONNECTION_OK, exit(), exit_nicely(), fprintf, lo_export(), lo_import(), overwrite(), PGRES_TUPLES_OK, pickout(), PQclear(), PQerrorMessage(), PQexec(), PQfinish(), PQresultStatus(), PQsetdb, PQstatus(), printf, and res.
Definition at line 108 of file testlo.c.
References buf, conn, fprintf, free, i, INV_WRITE, len, lo_close(), lo_lseek(), lo_open(), lo_write(), malloc, and start.
Referenced by main(), and pgwin32_setenv().
Definition at line 78 of file testlo.c.
References buf, conn, fprintf, free, INV_READ, len, lo_close(), lo_lseek(), lo_open(), lo_read(), malloc, and start.
Referenced by main().