|
PostgreSQL Source Code git master
|
#include <stdint.h>#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, int64_t start, int len) |
| static void | overwrite (PGconn *conn, Oid lobjId, int64_t start, int len) |
| static void | my_truncate (PGconn *conn, Oid lobjId, int64_t 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 27 of file testlo64.c.
|
static |
Definition at line 216 of file testlo64.c.
References conn, and PQfinish().
Referenced by main().
Definition at line 173 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 35 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 223 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 152 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 114 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 79 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().