Re: [PATCH] Remove redundant if clause in standbydesc.c

Поиск
Список
Период
Сортировка
Искать
От
Aleksander Alekseev
Тема
Re: [PATCH] Remove redundant if clause in standbydesc.c
Дата
Msg-id
20160923095431.GD1238@e733
Ответ на
Список
Дерево обсуждения
[PATCH] Remove redundant if clause in standbydesc.c Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [PATCH] Remove redundant if clause in standbydesc.c Michael Paquier <michael.paquier@gmail.com>
Re: [PATCH] Remove redundant if clause in standbydesc.c Aleksander Alekseev <a.alekseev@postgrespro.ru>
Re: [PATCH] Remove redundant if clause in standbydesc.c Michael Paquier <michael.paquier@gmail.com>
Re: [PATCH] Remove redundant if clause in standbydesc.c Tom Lane <tgl@sss.pgh.pa.us>
> > Very simple small patch - see attachment.
> 
>          /* not expected, but print something anyway */
>          else if (msg->id == SHAREDINVALRELMAP_ID)
> -            appendStringInfoString(buf, " relmap");
> -        else if (msg->id == SHAREDINVALRELMAP_ID)
>              appendStringInfo(buf, " relmap db %u", msg->rm.dbId);
> 
> Looking at inval.c, dbId can be InvalidOid.

Frankly I'm not very familiar with this part of code. InvalidOid is just
zero. Does it create some problem in this case?

-- 
Best regards,
Aleksander Alekseev


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