Re: Remove utils/acl.h from catalog/objectaddress.h

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Remove utils/acl.h from catalog/objectaddress.h
Дата
Msg-id 20200309160707.GA3597@alvherre.pgsql
обсуждение исходный текст
Ответ на Remove utils/acl.h from catalog/objectaddress.h  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: Remove utils/acl.h from catalog/objectaddress.h  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
On 2020-Mar-07, Peter Eisentraut wrote:

> I noticed that catalog/objectaddress.h includes utils/acl.h for no apparent
> reason.  It turns out this used to be needed but not anymore. So removed it
> and cleaned up the fallout.  Patch attached.

parser/parse_nodes.h already includes nodes/parsenodes.h, so the seeming
redundancy in places such as 

> diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h
> index c27d255d8d..be63e043c6 100644
> --- a/src/include/commands/vacuum.h
> +++ b/src/include/commands/vacuum.h
> @@ -19,6 +19,7 @@
>  #include "catalog/pg_statistic.h"
>  #include "catalog/pg_type.h"
>  #include "nodes/parsenodes.h"
> +#include "parser/parse_node.h"

(and others) is not just apparent; it's also redundant in practice.  And
it's not like parse_node.h is ever going to be able not to depend on
parsenodes.h, so I would vote to remove nodes/parsenodes.h from the
headers where you're adding parser/parse_node.h.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: recovery_target_action=pause with confusing hint
Следующее
От: Tom Lane
Дата:
Сообщение: Re: shared-memory based stats collector