Re: split builtins.h to quote.h

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: split builtins.h to quote.h
Дата
Msg-id 31728.1413209460@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: split builtins.h to quote.h  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> Michael Paquier <michael.paquier@gmail.com> writes:
>> Are you referring to the Datum quote_*(PG_FUNCTION_ARGS) that are
>> still let in builtins.h? That was let on purpose to let all the SQL
>> functions within builtins.h but I'd be happy to move everything to
>> quote.h to make the separation clearer.

> I agree with Robert on this one.  builtins.h is really just a refuge
> for declaring SQL-level functions that have no other natural home.

Actually, on second thought I'm not so sure.  What we've done in other
modules is to put SQL function declarations into builtins.h rather than
a module-specific header, because otherwise we'd have had to #include
fmgr.h in the module-specific header, and that did not seem like a win.

If there is some independent reason why quote.h needs to include fmgr.h
then we may as well move the SQL functions there too; but if not, I'd
just as soon keep down the amount of header inclusion needed.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: split builtins.h to quote.h
Следующее
От: Robert Haas
Дата:
Сообщение: Re: split builtins.h to quote.h