Re: Deleting old WAL-files
От | Jan Lentfer |
---|---|
Тема | Re: Deleting old WAL-files |
Дата | |
Msg-id | 12819ff9dc22928bdb69e5de36b62338@imap.lan.net обсуждение исходный текст |
Ответ на | Deleting old WAL-files (Gustav Karlsson <Gustav.Karlsson@BEKK.no>) |
Список | pgsql-admin |
Am 2015-05-19 13:43, schrieb Gustav Karlsson: > Is there a good way of finding the oldest WAL-segment needed for a > given basebackup? (If not, what is the typical method for deleting > old > WAL-segments?) > > > (We are aware that Barman is offering this functionality, and might > migrate to using it, but would still like to know the method used) In short terms you need all the WAL segments created during and after the base backup. It's also explained in the manual: To make use of the backup, you will need to keep all the WAL segment files generated during and after the file system backup. To aid you in doing this, the base backup process creates a backup history file that is immediately stored into the WAL archive area. This file is named after the first WAL segment file that you need for the file system backup. For example, if the starting WAL file is 0000000100001234000055CD the backup history file will be named something like 0000000100001234000055CD.007C9330.backup From: http://www.postgresql.org/docs/9.4/interactive/continuous-archiving.html#BACKUP-BASE-BACKUP hth Jan
В списке pgsql-admin по дате отправления: