Re: Is it really such a great idea for spi.h to include the world?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Is it really such a great idea for spi.h to include the world?
Дата
Msg-id 200901061856.n06IuII13823@momjian.us
обсуждение исходный текст
Ответ на Is it really such a great idea for spi.h to include the world?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Is it really such a great idea for spi.h to include the world?  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Tom Lane wrote:
> executor/spi.h includes far more than it needs, starting with postgres.h
> which as a general rule we don't expect any other header file to
> include.  I think the argument for this was to keep things simple for
> SPI-using loadable modules, but I doubt that it's really improving their
> lives much.  A quick look through the existing files that include spi.h
> shows that most of them have to include a pile of other stuff anyway.
> 
> I propose changing spi.h to follow the same include-only-what-you-must
> rule as every other backend header file.  Thoughts?

I don't think we ever cleaned out spi.h in the past because we were
worried about 3rd party code using it (I am fine with a cleanup).

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


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

Предыдущее
От: Martin Pihlak
Дата:
Сообщение: Re: dblink vs SQL/MED - security and implementation details
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: PostgreSQL 8.3.4 reproducible crash