Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
xlogbackup.h42 linesDownload Raw Back to access
1/*-------------------------------------------------------------------------2 *3 * xlogbackup.h4 *		Definitions for internals of base backups.5 *6 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group7 * Portions Copyright (c) 1994, Regents of the University of California8 *9 * IDENTIFICATION10 *		src/include/access/xlogbackup.h11 *-------------------------------------------------------------------------12 */13 14#ifndef XLOG_BACKUP_H15#define XLOG_BACKUP_H16 17#include "access/xlogdefs.h"18#include "pgtime.h"19 20/* Structure to hold backup state. */21typedef struct BackupState22{23	/* Fields saved at backup start */24	/* Backup label name one extra byte for null-termination */25	char		name[MAXPGPATH + 1];26	XLogRecPtr	startpoint;		/* backup start WAL location */27	TimeLineID	starttli;		/* backup start TLI */28	XLogRecPtr	checkpointloc;	/* last checkpoint location */29	pg_time_t	starttime;		/* backup start time */30	bool		started_in_recovery;	/* backup started in recovery? */31 32	/* Fields saved at the end of backup */33	XLogRecPtr	stoppoint;		/* backup stop WAL location */34	TimeLineID	stoptli;		/* backup stop TLI */35	pg_time_t	stoptime;		/* backup stop time */36} BackupState;37 38extern char *build_backup_content(BackupState *state,39								  bool ishistoryfile);40 41#endif							/* XLOG_BACKUP_H */42 
codekingpro/portable-devtools · Team Ai