1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-07 00:35:37 +02:00
Files
pgbackrest/src/postgres/info.h

29 lines
1.2 KiB
C
Raw Normal View History

/***********************************************************************************************************************************
PostgreSQL Info
***********************************************************************************************************************************/
#ifndef POSTGRES_INFO_H
#define POSTGRES_INFO_H
#include <stdint.h>
#include <sys/types.h>
/***********************************************************************************************************************************
PostgreSQL Control File Info
***********************************************************************************************************************************/
typedef struct PgControlInfo
{
uint64_t systemId;
uint32_t controlVersion;
uint32_t catalogVersion;
uint version;
} PgControlInfo;
#include "common/type/string.h"
/***********************************************************************************************************************************
Functions
***********************************************************************************************************************************/
PgControlInfo pgControlInfo(const String *pgPath);
#endif