Re: pgsql: Move Assert() definitions to c.h

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Move Assert() definitions to c.h
Дата
Msg-id 27041.1359992197@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Move Assert() definitions to c.h  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: pgsql: Move Assert() definitions to c.h  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-committers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Tom Lane wrote:
>> This seems a bit odd.  Why didn't you move all of postgres.h's section 3
>> into the new section in c.h?  The couple of declarations you left there
>> are neither useful nor intelligible on their own.

> One slight problem in this line:

> extern PGDLLIMPORT bool assert_enabled;

> This appears in line 622 in c.h, but PGDLLIMPORT is not defined till
> line 965.  So we would have to put that declaration below section 9
> "system specific hacks".  Having a separate
> #if defined(USE_ASSERT_CHECKING) && !defined(FRONTEND)
> section seems weird.

Ah.  Okay, let's leave it alone then.  It might be worth adding a
comment though that says these declarations are support for the
Assert-related macros in c.h.

            regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgsql: Move Assert() definitions to c.h
Следующее
От: Simon Riggs
Дата:
Сообщение: pgsql: Reset vacuum_defer_cleanup_age to PGC_SIGHUP.