Обсуждение: [DOCS] complete 'C' trigger example needs fmgr.h

Поиск
Список
Период
Сортировка

[DOCS] complete 'C' trigger example needs fmgr.h

От
mthrockmorton@hme.com
Дата:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.6/static/trigger-example.html
Description:

seems like the complete 'C' trigger example is missing #include <fmgr.h>

Re: [DOCS] complete 'C' trigger example needs fmgr.h

От
Euler Taveira
Дата:
On 11-01-2017 22:05, mthrockmorton@hme.com wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.6/static/trigger-example.html
> Description:
>
> seems like the complete 'C' trigger example is missing #include <fmgr.h>
>
No, it is not. utils/rel.h includes it.


--
   Euler Taveira                   Timbira - http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento


Re: [DOCS] complete 'C' trigger example needs fmgr.h

От
Peter Eisentraut
Дата:
On 1/12/17 12:59 PM, Euler Taveira wrote:
> On 11-01-2017 22:05, mthrockmorton@hme.com wrote:
>> The following documentation comment has been logged on the website:
>>
>> Page: https://www.postgresql.org/docs/9.6/static/trigger-example.html
>> Description:
>>
>> seems like the complete 'C' trigger example is missing #include <fmgr.h>
>>
> No, it is not. utils/rel.h includes it.

Still better to do it explicitly, so I have committed a patch to add it.

--
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services