Re: pg_basebackup creates a corrupt file for pg_stat_tmp and pg_replslot on a backup location
От
Alvaro Herrera
Тема
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location
Дата
Msg-id
20160414184459.GA231755@alvherre.pgsql
Ответ на
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location (Magnus Hagander)
Список
Дерево обсуждения
pg_basebackup creates a corrupt file for pg_stat_tmp and pg_replslot
on a backup location Ashutosh Sharma <ashu.coek88@gmail.com>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location Andres Freund <andres@anarazel.de>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location Robert Haas <robertmhaas@gmail.com>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location Andres Freund <andres@anarazel.de>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location David Steele <david@pgmasters.net>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location David Steele <david@pgmasters.net>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location Ashutosh Sharma <ashu.coek88@gmail.com>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location Magnus Hagander <magnus@hagander.net>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location Alvaro Herrera <alvherre@2ndquadrant.com>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location Magnus Hagander <magnus@hagander.net>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location Ashutosh Sharma <ashu.coek88@gmail.com>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location David Steele <david@pgmasters.net>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location Ashutosh Sharma <ashu.coek88@gmail.com>
Re: pg_basebackup creates a corrupt file for pg_stat_tmp
and pg_replslot on a backup location Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Magnus Hagander wrote: > On Thu, Apr 14, 2016 at 8:20 PM, Ashutosh Sharma > wrote: > > > I was just curious to know how would "*pg_basebackup*" behave if we do > > create a symbolic link for directories other than pg_xlog/pg_tblspc. > > However it is clearly mentioned in the documentation of pg_basebackup that > > if a Symbolic link for the directories other than pg_tblspc and pg_xlog is > > created then it would be skipped. But, that is not the case for pg_replslot > > and pg_stat_tmp. Is this not an issue. Should these directories not be > > skipped. Please let me know your thoughts on this. Thanks. > > I agree that actually generating a corrupt tarfile is not good. But I think > the correct fix is to actually generate an empty placeholder directory > rather than skipping it - thereby making the backup look the same as it > would if it was a correct directory where we just skipped the contents. Hmm, if your server has replication slots and pg_basebackup doesn't copy them, is the copy okay? It may be a waste to try to create all the decoded data if there was any spillage, but perhaps it should at least backup the state? If this is excessive datadir knowledge in pg_basebackup, perhaps it should throw an error if some of the critical subdirs aren't copied? -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления
От: Magnus Hagander
Дата: