Re: Badly designed error reporting code in controldata_utils.c

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Badly designed error reporting code in controldata_utils.c
Дата
Msg-id 56DCA08A.3050807@joeconway.com
обсуждение исходный текст
Ответ на Badly designed error reporting code in controldata_utils.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Badly designed error reporting code in controldata_utils.c  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
On 03/06/2016 01:24 PM, Tom Lane wrote:
> * It's randomly unlike every single other place we've addressed the
> same problem.  Everywhere else in src/common does it like this:
>
> #ifndef FRONTEND
>         ereport(ERROR,
>                 (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
>                  errmsg("out of memory")));
> #else
>         fprintf(stderr, _("out of memory\n"));
>         exit(EXIT_FAILURE);
> #endif
>
> and I think that's what this needs to do too, especially in view of the
> fact that there are only two places that would have to be fixed anyway.

Ok, will fix.

Joe

--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Badly designed error reporting code in controldata_utils.c
Следующее
От: Thom Brown
Дата:
Сообщение: Re: The plan for FDW-based sharding