Re: backup manifests

Поиск
Список
Период
Сортировка
От tushar
Тема Re: backup manifests
Дата
Msg-id 22efd17f-e647-2b23-c5d4-350a24e4625b@enterprisedb.com
обсуждение исходный текст
Ответ на Re: backup manifests  (tushar <tushar.ahuja@enterprisedb.com>)
Ответы Re: backup manifests  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 3/12/20 8:16 PM, tushar wrote:
Seems like expected behavior to me. We could consider providing a more
descriptive error message, but there's now way for it to work.

Right , Error message need to be more user friendly .

One scenario which i feel - should error out  even if  -s option is specified.
create  base  backup directory ( ./pg_basebackup data1)
Connect to root user and take out  the permission from pg_hba.conf file ( chmod 004 pg_hba.conf)

run pg_validatebackup - [centos@tushar-ldap-docker bin]$ ./pg_validatebackup data1
pg_validatebackup: error: could not open file "pg_hba.conf": Permission denied

run pg_validatebackup  with switch -s [centos@tushar-ldap-docker bin]$ ./pg_validatebackup data1 -s
pg_validatebackup: backup successfully verified

here file is not accessible so i think - it should throw you an error ( the same above one) instead of   blindly skipping it. 

-- 
regards,tushar
EnterpriseDB  https://www.enterprisedb.com/
The Enterprise PostgreSQL Company

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dilip Kumar
Дата:
Сообщение: Re: [HACKERS] Moving relation extension locks out of heavyweight lock manager
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: bitmaps and correlation