Re: check_recovery_target_lsn() does a PG_CATCH without a throw

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: check_recovery_target_lsn() does a PG_CATCH without a throw
Дата
Msg-id 0f1d0395-cfcd-5f4a-a5ff-38aa17cb63ac@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: check_recovery_target_lsn() does a PG_CATCH without a throw  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 2019-06-13 08:55, Michael Paquier wrote:
> Speaking about pg_lsn.  We have introduced it to reduce the amount of
> duplication when mapping an LSN to text, so I am not much a fan of
> this patch which adds again a duplication.  You also lose some error
> context as you get the same type of error when parsing the first or
> the second part of the LSN.  Couldn't you refactor the whole so as an
> error string is present as in GUC_check_errdetail()?

There isn't really much more detail to be had.  pg_lsn_in() just reports
"invalid input syntax for type pg_lsn", and with the current patch the
GUC system would report something like 'invalid value for parameter
"recovery_target_time"'.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: check_recovery_target_lsn() does a PG_CATCH without a throw
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Update list of combining characters