Re: Refactor xlog.c #1 - startup.c

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Refactor xlog.c #1 - startup.c
Дата
Msg-id CABUevEz7DadjXyfUnF23Tq5XG_RivkBv7S507mjJ81HUnmi4hA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Refactor xlog.c #1 - startup.c  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: Refactor xlog.c #1 - startup.c  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
On Wed, Nov 2, 2011 at 14:33, Simon Riggs <simon@2ndquadrant.com> wrote:
> On Wed, Nov 2, 2011 at 1:14 PM, Robert Haas <robertmhaas@gmail.com> wrote:
>> On Wed, Nov 2, 2011 at 4:44 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
>>> Patch removes stuff related to "startup process" and creates files
>>> under src/$DIR/postmaster for this code.
>>>
>>> This makes startup process look more like bgwriter, walwriter etc..
>>
>> In general, +1.
>
> Thanks for the review.
>
>> But I don't think we want duplicate function prototypes for the same
>> functions, so -1 for this hunk:
>>
>> + /* in xlog.c */
>> + extern void WakeupRecovery(void);
>> + extern void StartupXLOG(void);
>>
>> The existing prototypes in xlog.h seem like they should be just fine.
>
> That was to avoid having startup.c include xlog.h, which it doesn't
> really need to see.

Double prototypes seems to me like it's a cure worse than the disease to me...

> Not worried either way, so I'll do as you suggest.

+1.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Refactor xlog.c #1 - startup.c
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Thoughts on "SELECT * EXCLUDING (...) FROM ..."?