Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*-------------------------------------------------------------------------
 *
 * basebackup.h
 *    Exports from replication/basebackup.c.
 *
 * Portions Copyright (c) 2010-2026, PostgreSQL Global Development Group
 *
 * src/include/backup/basebackup.h
 *
 *-------------------------------------------------------------------------
 */
#ifndef _BASEBACKUP_H
#define _BASEBACKUP_H
 
#include "nodes/replnodes.h"
 
/*
 * Minimum and maximum values of MAX_RATE option in BASE_BACKUP command.
 */
#define MAX_RATE_LOWER  32
#define MAX_RATE_UPPER  1048576
 
/*
 * Information about a tablespace
 *
 * In some usages, "path" can be NULL to denote the PGDATA directory itself.
 */
typedef struct
{
    Oid         oid;            /* tablespace's OID */
    char       *path;           /* full path to tablespace's directory */
    char       *rpath;          /* relative path if it's within PGDATA, else
                                 * NULL */
    int64       size;           /* total size as sent; -1 if not known */
} tablespaceinfo;
 
struct IncrementalBackupInfo;
 
extern void SendBaseBackup(BaseBackupCmd *cmd,
                           struct IncrementalBackupInfo *ib);
 
#endif                          /* _BASEBACKUP_H */