PostgreSQL Source Code: src/backend/access/transam/xlogbackup.c Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

15

19

20

21

22

23

24

25

26

27

28char *

30{

31 char startstrbuf[128];

32 char startxlogfile[MAXFNAMELEN];

36

38

39

40 pg_strftime(startstrbuf, sizeof(startstrbuf), "%Y-%m-%d %H:%M:%S %Z",

42

45 appendStringInfo(result, "START WAL LOCATION: %X/%X (file %s)\n",

47

48 if (ishistoryfile)

49 {

50 char stopxlogfile[MAXFNAMELEN];

52

55 appendStringInfo(result, "STOP WAL LOCATION: %X/%X (file %s)\n",

57 }

58

63 state->started_in_recovery ? "standby" : "primary");

67

68 if (ishistoryfile)

69 {

70 char stopstrfbuf[128];

71

72

73 pg_strftime(stopstrfbuf, sizeof(stopstrfbuf), "%Y-%m-%d %H:%M:%S %Z",

75

78 }

79

80

83 {

87 state->istarttli);

88 }

89

92

94}

Assert(PointerIsAligned(start, uint64))

void pfree(void *pointer)

size_t pg_strftime(char *s, size_t maxsize, const char *format, const struct pg_tm *t)

struct pg_tm * pg_localtime(const pg_time_t *timep, const pg_tz *tz)

PGDLLIMPORT pg_tz * log_timezone

StringInfo makeStringInfo(void)

void appendStringInfo(StringInfo str, const char *fmt,...)

void appendStringInfoString(StringInfo str, const char *s)

#define XLByteToSeg(xlrp, logSegNo, wal_segsz_bytes)

static void XLogFileName(char *fname, TimeLineID tli, XLogSegNo logSegNo, int wal_segsz_bytes)

char * build_backup_content(BackupState *state, bool ishistoryfile)

#define LSN_FORMAT_ARGS(lsn)

#define XLogRecPtrIsInvalid(r)