PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include "common.h"
#include "common/logging.h"
#include "fe_utils/cancel.h"
#include "large_obj.h"
#include "settings.h"
Go to the source code of this file.
Functions | |
static void | print_lo_result (const char *fmt,...) pg_attribute_printf(1 |
static bool | start_lo_xact (const char *operation, bool *own_transaction) |
static bool | finish_lo_xact (const char *operation, bool own_transaction) |
static bool | fail_lo_xact (const char *operation, bool own_transaction) |
bool | do_lo_export (const char *loid_arg, const char *filename_arg) |
bool | do_lo_import (const char *filename_arg, const char *comment_arg) |
bool | do_lo_unlink (const char *loid_arg) |
bool do_lo_export | ( | const char * | loid_arg, |
const char * | filename_arg | ||
) |
Definition at line 142 of file large_obj.c.
References atooid, _psqlSettings::db, fail_lo_xact(), finish_lo_xact(), lo_export(), pg_log_info, PQerrorMessage(), print_lo_result(), pset, ResetCancelConn(), SetCancelConn(), and start_lo_xact().
Referenced by exec_command_lo().
bool do_lo_import | ( | const char * | filename_arg, |
const char * | comment_arg | ||
) |
Definition at line 176 of file large_obj.c.
References _psqlSettings::db, fail_lo_xact(), finish_lo_xact(), free, InvalidOid, lo_import(), MCXT_ALLOC_NO_OOM, pg_log_info, pg_malloc_extended(), PQclear(), PQerrorMessage(), PQescapeStringConn(), print_lo_result(), pset, PSQLexec(), res, ResetCancelConn(), SetCancelConn(), SetVariable(), sprintf, start_lo_xact(), and _psqlSettings::vars.
Referenced by exec_command_lo().
bool do_lo_unlink | ( | const char * | loid_arg | ) |
Definition at line 239 of file large_obj.c.
References atooid, _psqlSettings::db, fail_lo_xact(), finish_lo_xact(), lo_unlink(), pg_log_info, PQerrorMessage(), print_lo_result(), pset, ResetCancelConn(), SetCancelConn(), and start_lo_xact().
Referenced by exec_command_lo().
Definition at line 121 of file large_obj.c.
References _psqlSettings::autocommit, PQclear(), pset, PSQLexec(), and res.
Referenced by do_lo_export(), do_lo_import(), and do_lo_unlink().
Definition at line 98 of file large_obj.c.
References _psqlSettings::autocommit, PQclear(), pset, PSQLexec(), and res.
Referenced by do_lo_export(), do_lo_import(), and do_lo_unlink().
|
static |
Definition at line 19 of file large_obj.c.
References fmt, printTableOpt::format, _psqlSettings::logfile, _psqlSettings::popt, PRINT_HTML, pset, _psqlSettings::queryFout, _psqlSettings::quiet, printQueryOpt::topt, va_end(), va_start(), and vfprintf().
Referenced by do_lo_export(), do_lo_import(), and do_lo_unlink().
Definition at line 56 of file large_obj.c.
References _psqlSettings::db, pg_log_error, PQclear(), PQTRANS_IDLE, PQTRANS_INERROR, PQTRANS_INTRANS, PQtransactionStatus(), pset, PSQLexec(), and res.
Referenced by do_lo_export(), do_lo_import(), and do_lo_unlink().