Re: Error loading trigger in C

From: Juan Jose Costello Levien <jcostello(at)datafull(dot)com>
To: Doug McNaught <doug(at)mcnaught(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Error loading trigger in C
Date: 2004-07-01 20:02:39
Message-ID: 40E46DDF.5020507@datafull.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Doug,

You were right, psql let me insert the trigger.
But when I insert a new row in the table 'visita' (the one that has the
trigger), the result must be an audit new row on 'visita_log' because of
the trigger, and pgAccess reports that the connection was lost. Maybe is
something wrong with the trigger... I don't know what it is... (this is
the first time I program a trigger with PgSQL...)

Thanks in advance.

Juan

Doug McNaught wrote:

>Juan Jose Costello Levien <jcostello(at)datafull(dot)com> writes:
>
>
>
>>Hello,
>>I am trying to use a trigger function I wrote in C. Basically what I
>>want to do is to audit a table when a row is inserted into another
>>table by copying the row to the new table. It compiles Ok and I
>>created a shared library trigger.so. But when I load it into pgAdmin
>>it tells me 'An error had occured'.
>>
>>
>
>Does it work if you take pgAdmin out of the loop? E.g. in psql:
>
>CREATE FUNCTION trigf ...
>CREATE TRIGGER ...
>
>-Doug
>
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Matthew T. O'Connor 2004-07-01 20:19:21 Re: max_fsm_pages
Previous Message Sheeraz Fazal 2004-07-01 19:25:25 Full Text Index Info