complete 'C' trigger example needs fmgr.h

Lists: pgsql-docs
From: mthrockmorton(at)hme(dot)com
To: pgsql-docs(at)postgresql(dot)org
Subject: complete 'C' trigger example needs fmgr.h
Date: 2017-01-12 01:05:25
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-docs

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>


From: Euler Taveira <euler(at)timbira(dot)com(dot)br>
To: mthrockmorton(at)hme(dot)com, pgsql-docs(at)postgresql(dot)org
Subject: Re: complete 'C' trigger example needs fmgr.h
Date: 2017-01-12 17:59:12
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-docs

On 11-01-2017 22:05, mthrockmorton(at)hme(dot)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 &#39;C&#39; trigger example is missing #include &lt;fmgr.h&gt;
>
No, it is not. utils/rel.h includes it.

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


From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Euler Taveira <euler(at)timbira(dot)com(dot)br>, mthrockmorton(at)hme(dot)com, pgsql-docs(at)postgresql(dot)org
Subject: Re: complete 'C' trigger example needs fmgr.h
Date: 2017-02-02 21:51:12
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-docs

On 1/12/17 12:59 PM, Euler Taveira wrote:
> On 11-01-2017 22:05, mthrockmorton(at)hme(dot)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 &#39;C&#39; trigger example is missing #include &lt;fmgr.h&gt;
>>
> 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