Re: [HACKERS] Error trying to compile a simple C trigger

2012-03-25 Thread Marco Nenciarini
Il giorno mar, 20/03/2012 alle 11.16 +, Peter Geoghegan ha scritto: On 20 March 2012 10:53, Marco Nenciarini marco.nenciar...@2ndquadrant.it wrote: alert.c: In function ‘dbms_alert_defered_signal’: alert.c:839:33: error: dereferencing pointer to incomplete type make: *** [alert.o]

[HACKERS] Error trying to compile a simple C trigger

2012-03-20 Thread Marco Nenciarini
I was trying to compile orafce on the current master and it yield an error at line tupdesc = trigdata-tg_relation-rd_att; 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

Re: [HACKERS] Error trying to compile a simple C trigger

2012-03-20 Thread Peter Geoghegan
On 20 March 2012 10:53, Marco Nenciarini marco.nenciar...@2ndquadrant.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

Re: [HACKERS] Error trying to compile a simple C trigger

2012-03-20 Thread Marco Nenciarini
Il giorno mar, 20/03/2012 alle 11.16 +, Peter Geoghegan ha scritto: On 20 March 2012 10:53, Marco Nenciarini marco.nenciar...@2ndquadrant.it wrote: alert.c: In function ‘dbms_alert_defered_signal’: alert.c:839:33: error: dereferencing pointer to incomplete type make: *** [alert.o]

Re: [HACKERS] Error trying to compile a simple C trigger

2012-03-20 Thread Asif Naeem
It seems that compiler is complain about Relation structure, can you please try adding the following in trigtest.c i.e. #include utils/rel.h Best Regards, Asif Naeem On Tue, Mar 20, 2012 at 3:53 PM, Marco Nenciarini marco.nenciar...@2ndquadrant.it wrote: I was trying to compile orafce on the

Re: [HACKERS] Error trying to compile a simple C trigger

2012-03-20 Thread Marco Nenciarini
Il giorno mar, 20/03/2012 alle 16.46 +0500, Asif Naeem ha scritto: It seems that compiler is complain about Relation structure, can you please try adding the following in trigtest.c i.e. #include utils/rel.h It does the trick. Regards, Marco -- Marco Nenciarini - 2ndQuadrant Italy

Re: [HACKERS] Error trying to compile a simple C trigger

2012-03-20 Thread Alvaro Herrera
Excerpts from Marco Nenciarini's message of mar mar 20 07:53:06 -0300 2012: I was trying to compile orafce on the current master and it yield an error at line tupdesc = trigdata-tg_relation-rd_att; alert.c: In function ‘dbms_alert_defered_signal’: alert.c:839:33: error: dereferencing

Re: [HACKERS] Error trying to compile a simple C trigger

2012-03-20 Thread Alvaro Herrera
Excerpts from Marco Nenciarini's message of mar mar 20 07:53:06 -0300 2012: I was trying to compile orafce on the current master and it yield an error at line tupdesc = trigdata-tg_relation-rd_att; alert.c: In function ‘dbms_alert_defered_signal’: alert.c:839:33: error: dereferencing