avoid including rel.h in execnodes.h

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема avoid including rel.h in execnodes.h
Дата
Msg-id 1309389154-sup-4246@alvh.no-ip.org
обсуждение исходный текст
Ответы Re: avoid including rel.h in execnodes.h  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
This simple patch moves two struct declarations (Trigger and
TriggerDesc) from rel.h into a new file, reltrigger.h.  The benefit is
that execnodes.h only needs to include the latter.  Since execnodes.h is
very widely included, this change means there are less files that
indirectly include rel.h now, which is a good thing because rel.h
includes a ton of other files.  (Of course, rel.h itself needs to
include the new header).

I also included rel.h in spi.h, because it was previously indirectly
included via execnodes.h and with this patch it would no longer be,
which is a problem because it'd cause external code to fail to compile.

--
Álvaro Herrera <alvherre@alvh.no-ip.org>

Вложения

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

Предыдущее
От: Joe Conway
Дата:
Сообщение: SECURITY LABEL on shared database object
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Adding Japanese README