Re: Have better wording for snapshot file reading failure

Поиск
Список
Период
Сортировка
От Yogesh Sharma
Тема Re: Have better wording for snapshot file reading failure
Дата
Msg-id 193b15a6-c63d-574b-4b26-8f53dfec3083@catprosystems.com
обсуждение исходный текст
Ответ на Have better wording for snapshot file reading failure  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Ответы Re: Have better wording for snapshot file reading failure  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Список pgsql-hackers
On 9/13/23 02:10, Bharath Rupireddy wrote:
> Hi,
>
> When a snapshot file reading fails in ImportSnapshot(), it errors out
> with "invalid snapshot identifier". This message better suits for
> snapshot identifier parsing errors which is being done just before the
> file reading. The attached patch adds a generic file reading error
> message with path to help distinguish if the issue is with snapshot
> identifier parsing or file reading.
>
I suggest error message to include "snapshot" keyword in message, like this:

errmsg("could not open snapshot file \"%s\" for reading: %m",

and also tweak other messages accordingly.


-- 
Kind Regards,
Yogesh Sharma
PostgreSQL, Linux, and Networking Expert
Open Source Enthusiast and Advocate




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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: [PoC] pg_upgrade: allow to upgrade publisher node
Следующее
От: Ashutosh Bapat
Дата:
Сообщение: Re: Infinite Interval