37 bool lastline =
false;
53 while (*bufptr && *bufptr !=
'\n')
61 for (ptr = fline; *ptr; ptr++)
63 if (!isspace((
unsigned char) *ptr))
66 if (*ptr ==
'\0' || *ptr ==
'#')
69 nfields = sscanf(fline,
"%u\t%X/%X", &tli, &switchpoint_hi, &switchpoint_lo);
84 if (entries && tli <= lasttli)
96 entry = &entries[nlines - 1];
98 entry->
begin = prevend;
99 entry->
end = ((uint64) (switchpoint_hi)) << 32 | (uint64) switchpoint_lo;
100 prevend = entry->
end;
105 if (entries && targetTLI <= lasttli)
122 entry = &entries[nlines - 1];
123 entry->
tli = targetTLI;
124 entry->
begin = prevend;
TimeLineHistoryEntry * rewind_parseTimeLineHistory(char *buffer, TimeLineID targetTLI, int *nentries)
void * pg_realloc(void *ptr, size_t size)
void * pg_malloc(size_t size)
#define pg_log_error(...)
#define pg_log_error_detail(...)
#define InvalidXLogRecPtr