Re: silence compiler warning in brin.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: silence compiler warning in brin.c
Дата
Msg-id 635071.1654106152@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: silence compiler warning in brin.c  (Zhihong Yu <zyu@yugabyte.com>)
Список pgsql-hackers
Zhihong Yu <zyu@yugabyte.com> writes:
> Hi,

>     if (heapRel == NULL || heapoid != IndexGetRelation(indexoid, false))
>         ereport(ERROR,

> I wonder why the above check is not placed in the else block:

>     else
>         heapRel = NULL;

Because we don't want to throw that error until we've exhausted the
possibilities for throwing other errors.

            regards, tom lane



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

Предыдущее
От: vignesh C
Дата:
Сообщение: Re: Handle infinite recursion in logical replication setup
Следующее
От: vignesh C
Дата:
Сообщение: Re: Handle infinite recursion in logical replication setup