Re: Error trying to compile a simple C trigger

Поиск
Список
Период
Сортировка
От Asif Naeem
Тема Re: Error trying to compile a simple C trigger
Дата
Msg-id CACDUQd-bDCo8==CykySM_aO3KM+ShpTqpLJvLcp-bdx4VP=ocQ@mail.gmail.com
обсуждение исходный текст
Ответ на Error trying to compile a simple C trigger  (Marco Nenciarini <marco.nenciarini@2ndQuadrant.it>)
Ответы Re: Error trying to compile a simple C trigger
Список pgsql-hackers
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.nenciarini@2ndquadrant.it> wrote:
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

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

Regards,
Marco

--
Marco Nenciarini - 2ndQuadrant Italy
PostgreSQL Training, Services and Support
marco.nenciarini@2ndQuadrant.it | www.2ndQuadrant.it



--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Memory usage during sorting
Следующее
От: Marco Nenciarini
Дата:
Сообщение: Re: Error trying to compile a simple C trigger