Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 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
/***********************************************************************************************************************************
Check Command Common
***********************************************************************************************************************************/
#ifndef COMMAND_CHECK_COMMON_H
#define COMMAND_CHECK_COMMON_H
 
#include "common/type/string.h"
#include "db/db.h"
#include "info/infoPg.h"
 
/***********************************************************************************************************************************
Functions
***********************************************************************************************************************************/
// Check the database path and version are configured correctly
FN_EXTERN void checkDbConfig(const unsigned int pgVersion, const unsigned int pgIdx, const Db *dbObject, bool isStandby);
 
// Validate that the archive and backup info files are at the same repository format
FN_EXTERN void checkStanzaInfoFormat(unsigned int repoIdx, const InfoPg *archiveInfoPg, const InfoPg *backupInfoPg);
 
// Validate the archive and backup info files
FN_EXTERN void checkStanzaInfo(unsigned int repoIdx, const InfoPg *archiveInfoPg, const InfoPg *backupInfoPg);
 
// Load and validate the database data of the info files against each other and the current database
FN_EXTERN void checkStanzaInfoPg(unsigned int repoIdx, const unsigned int pgVersion, const uint64_t pgSystemId);
 
#endif