mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
pg_verifybackup: Verify tar-format backups.
This also works for compressed tar-format backups. However, -n must be used, because we use pg_waldump to verify WAL, and it doesn't yet know how to verify WAL that is stored inside of a tarfile. Amul Sul, reviewed by Sravan Kumar and by me, and revised by me.
This commit is contained in:
@@ -173,3 +173,22 @@ simple_ptr_list_append(SimplePtrList *list, void *ptr)
|
||||
list->head = cell;
|
||||
list->tail = cell;
|
||||
}
|
||||
|
||||
/*
|
||||
* Destroy only pointer list and not the pointed-to element
|
||||
*/
|
||||
void
|
||||
simple_ptr_list_destroy(SimplePtrList *list)
|
||||
{
|
||||
SimplePtrListCell *cell;
|
||||
|
||||
cell = list->head;
|
||||
while (cell != NULL)
|
||||
{
|
||||
SimplePtrListCell *next;
|
||||
|
||||
next = cell->next;
|
||||
pg_free(cell);
|
||||
cell = next;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user