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
|
| Список | 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 по дате отправления: