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, pg_int64 start, int len) |
static void | overwrite (PGconn *conn, Oid lobjId, pg_int64 start, int len) |
static void | my_truncate (PGconn *conn, Oid lobjId, pg_int64 len) |
static void | exportFile (PGconn *conn, Oid lobjId, char *filename) |
static void | exit_nicely (PGconn *conn) |
int | main (int argc, char **argv) |
#define BUFSIZE 1024 |
Definition at line 26 of file testlo64.c.
|
static |
Definition at line 215 of file testlo64.c.
References conn, and PQfinish().
Referenced by main().
Definition at line 172 of file testlo64.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 testlo64.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 222 of file testlo64.c.
References conn, CONNECTION_OK, exit_nicely(), fprintf, lo_export(), lo_import(), my_truncate(), overwrite(), PGRES_TUPLES_OK, pickout(), PQclear(), PQerrorMessage(), PQexec(), PQfinish(), PQresultStatus(), PQsetdb, PQstatus(), and printf.
Definition at line 151 of file testlo64.c.
References conn, fprintf, INV_READ, INV_WRITE, len, lo_close(), lo_open(), lo_truncate64(), and PQerrorMessage().
Referenced by main().
Definition at line 113 of file testlo64.c.
References buf, conn, fprintf, free, i, INV_WRITE, len, lo_close(), lo_lseek64(), lo_open(), lo_write(), malloc, PQerrorMessage(), and start.
Referenced by main().
Definition at line 78 of file testlo64.c.
References buf, conn, fprintf, free, INV_READ, len, lo_close(), lo_lseek64(), lo_open(), lo_read(), lo_tell64(), malloc, PQerrorMessage(), and start.
Referenced by main().