postgresql/src/bin/pg_dump/pg_backup_db.h
Tom Lane f4fa4a8213 Revert "pg_dump: Lock all relations, not just plain tables".
Revert 403a3d91c, as well as the followup fix 7f4235032, in all
branches.  We need to think a bit harder about what the behavior
of LOCK TABLE on views should be, and there's no time for that
before next week's releases.  We'll take another crack at this
later.

Discussion: https://postgr.es/m/16703-e348f58aab3cf6cc@postgresql.org
2020-11-06 15:48:21 -05:00

26 lines
660 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.h"
extern int ExecuteSqlCommandBuf(Archive *AHX, 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 PGresult *ExecuteSqlQueryForSingleRow(Archive *fout, const char *query);
extern void EndDBCopyMode(Archive *AHX, const char *tocEntryTag);
extern void StartTransaction(Archive *AHX);
extern void CommitTransaction(Archive *AHX);
#endif