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

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

From
mthrockmorton@hme.com
Date:
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

From
Euler Taveira
Date:
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

From
Peter Eisentraut
Date:
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