38 bool lastline =
false;
54 while (*bufptr && *bufptr !=
'\n')
62 for (ptr = fline; *ptr; ptr++)
64 if (!isspace((
unsigned char) *ptr))
67 if (*ptr ==
'\0' || *ptr ==
'#')
70 nfields = sscanf(fline,
"%u\t%X/%X", &tli, &switchpoint_hi, &switchpoint_lo);
85 if (entries && tli <= lasttli)
97 entry = &entries[nlines - 1];
99 entry->
begin = prevend;
100 entry->
end = ((uint64) (switchpoint_hi)) << 32 | (uint64) switchpoint_lo;
101 prevend = entry->
end;
106 if (entries && targetTLI <= lasttli)
123 entry = &entries[nlines - 1];
124 entry->
tli = targetTLI;
125 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