mirror of
https://github.com/postgres/postgres.git
synced 2026-03-20 09:36:10 -04:00
Older gcc versions don't like duplicate typedefs, so get rid of that in favor of doing it like we do it elsewhere, ie just use a "struct" declaration when trying to avoid importing a whole header file. Also, there seems no reason to include stringinfo.h here at all, so get rid of that addition too. Discussion: https://postgr.es/m/27239.1587415696@sss.pgh.pa.us
39 lines
952 B
C
39 lines
952 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* basebackup.h
|
|
* Exports from replication/basebackup.c.
|
|
*
|
|
* Portions Copyright (c) 2010-2020, PostgreSQL Global Development Group
|
|
*
|
|
* src/include/replication/basebackup.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef _BASEBACKUP_H
|
|
#define _BASEBACKUP_H
|
|
|
|
#include "nodes/replnodes.h"
|
|
|
|
struct manifest_info; /* avoid including backup_manifest.h */
|
|
|
|
|
|
/*
|
|
* Minimum and maximum values of MAX_RATE option in BASE_BACKUP command.
|
|
*/
|
|
#define MAX_RATE_LOWER 32
|
|
#define MAX_RATE_UPPER 1048576
|
|
|
|
typedef struct
|
|
{
|
|
char *oid;
|
|
char *path;
|
|
char *rpath; /* relative path within PGDATA, or NULL */
|
|
int64 size;
|
|
} tablespaceinfo;
|
|
|
|
extern void SendBaseBackup(BaseBackupCmd *cmd);
|
|
|
|
extern int64 sendTablespace(char *path, char *oid, bool sizeonly,
|
|
struct manifest_info *manifest);
|
|
|
|
#endif /* _BASEBACKUP_H */
|