42 #define LO_BUFSIZE 8192
110 &retval, &result_len, 1, argv, 1);
158 if (
len > (
size_t) INT_MAX)
173 &retval, &result_len, 1, argv, 2);
222 &retval, &result_len, 1, argv, 2);
260 if (
len > (
size_t) INT_MAX)
275 (
void *)
buf, &result_len, 0, argv, 2);
311 if (
len > (
size_t) INT_MAX)
326 &retval, &result_len, 1, argv, 2);
367 &retval, &result_len, 1, argv, 3);
409 argv[1].
u.
ptr = (
int *) &offset;
416 (
void *) &retval, &result_len, 0, argv, 3);
452 &retval, &result_len, 1, argv, 1);
496 &retval, &result_len, 1, argv, 1);
530 &retval, &result_len, 1, argv, 1);
570 (
void *) &retval, &result_len, 0, argv, 1);
604 &retval, &result_len, 1, argv, 1);
719 int save_errno = errno;
727 strerror_r(save_errno, sebuf,
sizeof(sebuf)));
775 int save_errno = errno;
782 strerror_r(save_errno, sebuf,
sizeof(sebuf)));
795 int save_errno = errno;
803 strerror_r(save_errno, sebuf,
sizeof(sebuf)));
822 if (
close(
fd) != 0 && result >= 0)
868 if (lobjfuncs == NULL)
879 query =
"select proname, oid from pg_catalog.pg_proc "
894 "and pronamespace = (select oid from pg_catalog.pg_namespace "
895 "where nspname = 'pg_catalog')";
919 if (strcmp(fname,
"lo_open") == 0)
921 else if (strcmp(fname,
"lo_close") == 0)
923 else if (strcmp(fname,
"lo_creat") == 0)
925 else if (strcmp(fname,
"lo_create") == 0)
927 else if (strcmp(fname,
"lo_unlink") == 0)
929 else if (strcmp(fname,
"lo_lseek") == 0)
931 else if (strcmp(fname,
"lo_lseek64") == 0)
933 else if (strcmp(fname,
"lo_tell") == 0)
935 else if (strcmp(fname,
"lo_tell64") == 0)
937 else if (strcmp(fname,
"lo_truncate") == 0)
939 else if (strcmp(fname,
"lo_truncate64") == 0)
941 else if (strcmp(fname,
"loread") == 0)
943 else if (strcmp(fname,
"lowrite") == 0)
1033 t = (
uint32) (host64 >> 32);
#define unconstify(underlying_type, expr)
#define MemSet(start, val, len)
static void PGresult * res
PGresult * PQfn(PGconn *conn, int fnid, int *result_buf, int *result_len, int result_is_int, const PQArgBlock *args, int nargs)
ExecStatusType PQresultStatus(const PGresult *res)
int PQntuples(const PGresult *res)
PGresult * PQexec(PGconn *conn, const char *query)
char * PQgetvalue(const PGresult *res, int tup_num, int field_num)
static Oid lo_import_internal(PGconn *conn, const char *filename, Oid oid)
int lo_tell(PGconn *conn, int fd)
static pg_int64 lo_ntoh64(pg_int64 net64)
int lo_close(PGconn *conn, int fd)
pg_int64 lo_tell64(PGconn *conn, int fd)
static int lo_initialize(PGconn *conn)
Oid lo_creat(PGconn *conn, int mode)
int lo_read(PGconn *conn, int fd, char *buf, size_t len)
int lo_lseek(PGconn *conn, int fd, int offset, int whence)
pg_int64 lo_lseek64(PGconn *conn, int fd, pg_int64 offset, int whence)
int lo_open(PGconn *conn, Oid lobjId, int mode)
int lo_write(PGconn *conn, int fd, const char *buf, size_t len)
int lo_truncate(PGconn *conn, int fd, size_t len)
Oid lo_create(PGconn *conn, Oid lobjId)
int lo_unlink(PGconn *conn, Oid lobjId)
Oid lo_import(PGconn *conn, const char *filename)
static pg_int64 lo_hton64(pg_int64 host64)
int lo_export(PGconn *conn, Oid lobjId, const char *filename)
Oid lo_import_with_oid(PGconn *conn, const char *filename, Oid lobjId)
int lo_truncate64(PGconn *conn, int fd, pg_int64 len)
void libpq_append_conn_error(PGconn *conn, const char *fmt,...)
if(TABLE==NULL||TABLE_index==NULL)
#define pqClearConnErrorState(conn)
static PgChecksumMode mode
#define PG_STRERROR_R_BUFLEN
static int fd(const char *x, int i)
ExecStatusType resultStatus