mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-13 17:39:36 +02:00
1631598ea2
This is another round of refactoring to make things simpler for parallel pg_dump. pg_dump.c now issues SQL queries through the relevant Archive object, rather than relying on the global variable g_conn. This commit isn't quite enough to get rid of g_conn entirely, but it makes a big dent in its utilization and, along the way, manages to be slightly less code than before.
25 lines
601 B
C
25 lines
601 B
C
/*
|
|
* Definitions for pg_backup_db.c
|
|
*
|
|
* IDENTIFICATION
|
|
* src/bin/pg_dump/pg_backup_db.h
|
|
*/
|
|
|
|
#ifndef PG_BACKUP_DB_H
|
|
#define PG_BACKUP_DB_H
|
|
|
|
#include "pg_backup_archiver.h"
|
|
|
|
extern int ExecuteSqlCommandBuf(ArchiveHandle *AH, const char *buf, size_t bufLen);
|
|
|
|
extern void ExecuteSqlStatement(Archive *AHX, const char *query);
|
|
extern PGresult *ExecuteSqlQuery(Archive *AHX, const char *query,
|
|
ExecStatusType status);
|
|
|
|
extern void EndDBCopyMode(ArchiveHandle *AH, struct _tocEntry * te);
|
|
|
|
extern void StartTransaction(ArchiveHandle *AH);
|
|
extern void CommitTransaction(ArchiveHandle *AH);
|
|
|
|
#endif
|