Re: Error trying to compile a simple C trigger

From: Marco Nenciarini <marco(dot)nenciarini(at)2ndQuadrant(dot)it>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Error trying to compile a simple C trigger
Date: 2012-03-20 11:44:39
Message-ID: 1332243879.3020.14.camel@greygoo.devise-it.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Il giorno mar, 20/03/2012 alle 11.16 +0000, Peter Geoghegan ha scritto:
> On 20 March 2012 10:53, Marco Nenciarini
> <marco(dot)nenciarini(at)2ndquadrant(dot)it> wrote:
> > alert.c: In function ‘dbms_alert_defered_signal’:
> > alert.c:839:33: error: dereferencing pointer to incomplete type
> > make: *** [alert.o] Error 1
> >
> > I've also tried the example at
> >
> > http://www.postgresql.org/docs/devel/static/trigger-example.html
> >
> > and the result is exactly the same.
> >
> > trigtest.c: In function ‘trigf’:
> > trigtest.c:44:36: error: dereferencing pointer to incomplete type
> > make: *** [trigtest.o] Error 1
>
> I'd say this is an unintended consequence of a pgrminclude run. Try adding this:
>
> #include "access/tupdesc.h"

It doesn't work. The error is stil the same.

Regards,
Marco

--
Marco Nenciarini - 2ndQuadrant Italy
PostgreSQL Training, Services and Support
marco(dot)nenciarini(at)2ndQuadrant(dot)it | www.2ndQuadrant.it

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2012-03-20 11:44:55 Re: Memory usage during sorting
Previous Message Joachim Wieland 2012-03-20 11:26:52 Re: patch for parallel pg_dump