PostgreSQL Source Code git master
|
#include "pg_backup.h"
Go to the source code of this file.
Functions | |
int | ExecuteSqlCommandBuf (Archive *AHX, const char *buf, size_t bufLen) |
void | ExecuteSqlStatement (Archive *AHX, const char *query) |
PGresult * | ExecuteSqlQuery (Archive *AHX, const char *query, ExecStatusType status) |
PGresult * | ExecuteSqlQueryForSingleRow (Archive *fout, const char *query) |
void | EndDBCopyMode (Archive *AHX, const char *tocEntryTag) |
void | StartTransaction (Archive *AHX) |
void | CommitTransaction (Archive *AHX) |
void CommitTransaction | ( | Archive * | AHX | ) |
Definition at line 476 of file pg_backup_db.c.
References ExecuteSqlCommand().
Referenced by IssueCommandPerBlob().
void EndDBCopyMode | ( | Archive * | AHX, |
const char * | tocEntryTag | ||
) |
Definition at line 439 of file pg_backup_db.c.
References _archiveHandle::connection, pg_fatal, pg_log_warning, _archiveHandle::pgCopyIn, PGRES_COMMAND_OK, PQclear(), PQerrorMessage(), PQgetResult(), PQputCopyEnd(), PQresultStatus(), and warn_or_exit_horribly().
Referenced by restore_toc_entry().
int ExecuteSqlCommandBuf | ( | Archive * | AHX, |
const char * | buf, | ||
size_t | bufLen | ||
) |
Definition at line 384 of file pg_backup_db.c.
References buf, _archiveHandle::connection, ExecuteSimpleCommands(), ExecuteSqlCommand(), free, OUTPUT_COPYDATA, OUTPUT_OTHERDATA, _archiveHandle::outputKind, pg_fatal, pg_malloc(), _archiveHandle::pgCopyIn, PQerrorMessage(), PQputCopyData(), and str.
Referenced by ahwrite().
PGresult * ExecuteSqlQuery | ( | Archive * | AHX, |
const char * | query, | ||
ExecStatusType | status | ||
) |
Definition at line 229 of file pg_backup_db.c.
References _archiveHandle::connection, die_on_query_failure(), PQexec(), and PQresultStatus().
Referenced by append_depends_on_extension(), buildMatViewRefreshDependencies(), collectBinaryUpgradeClassOids(), collectComments(), collectRoleNames(), collectSecLabels(), collectSequences(), createViewAsClause(), dumpCompositeType(), dumpDatabase(), dumpDatabaseConfig(), dumpEnumType(), dumpOpclass(), dumpOpfamily(), dumpRule(), dumpSequence(), dumpSequenceData(), dumpTable(), dumpTableData_copy(), dumpTableData_insert(), dumpTSConfig(), dumpUserMappings(), ExecuteSqlQueryForSingleRow(), expand_extension_name_patterns(), expand_foreign_server_name_patterns(), expand_schema_name_patterns(), expand_table_name_patterns(), fetchAttributeStats(), getAccessMethods(), getAdditionalACLs(), getAggregates(), getCasts(), getCollations(), getConstraints(), getConversions(), getDefaultACLs(), getDependencies(), getDomainConstraints(), getEventTriggers(), getExtendedStatistics(), getExtensionMembership(), getExtensions(), getForeignDataWrappers(), getForeignServers(), getFuncs(), getIndexes(), getInherits(), getLOs(), getNamespaces(), getOpclasses(), getOperators(), getOpfamilies(), getPartitioningInfo(), getPolicies(), getProcLangs(), getPublicationNamespaces(), getPublications(), getPublicationTables(), getRules(), getSubscriptions(), getSubscriptionTables(), getTableAttrs(), getTables(), getTransforms(), getTriggers(), getTSConfigurations(), getTSDictionaries(), getTSParsers(), getTSTemplates(), getTypes(), processExtensionTables(), and set_restrict_relation_kind().
Definition at line 244 of file pg_backup_db.c.
References ExecuteSqlQuery(), ngettext, pg_fatal, PGRES_TUPLES_OK, and PQntuples().
Referenced by _check_database_version(), binary_upgrade_set_type_oids_by_type_oid(), ConnectDatabaseAhx(), convertTSFunction(), dumpAgg(), dumpBaseType(), dumpCollation(), dumpConversion(), dumpDatabase(), dumpDomain(), dumpForeignServer(), dumpFunc(), dumpOpclass(), dumpOpfamily(), dumpOpr(), dumpRangeType(), dumpSearchPath(), dumpStatisticsExt(), dumpTableAttach(), dumpTableSchema(), dumpTSConfig(), dumpTSDictionary(), expand_table_name_patterns(), get_language_name(), get_next_possible_free_pg_type_oid(), get_synchronized_snapshot(), getFormattedTypeName(), and setup_connection().
void ExecuteSqlStatement | ( | Archive * | AHX, |
const char * | query | ||
) |
Definition at line 217 of file pg_backup_db.c.
References _archiveHandle::connection, die_on_query_failure(), PGRES_COMMAND_OK, PQclear(), PQexec(), and PQresultStatus().
Referenced by dumpAgg(), dumpBaseType(), dumpCompositeType(), dumpDomain(), dumpEnumType(), dumpFunc(), dumpOpr(), dumpRangeType(), dumpRelationStats_dumper(), dumpTable(), dumpTableAttach(), dumpTableData_insert(), expand_table_name_patterns(), getDomainConstraints(), getTables(), and setup_connection().
void StartTransaction | ( | Archive * | AHX | ) |
Definition at line 468 of file pg_backup_db.c.
References ExecuteSqlCommand().
Referenced by IssueCommandPerBlob().