Re: question

From: Sandeep Joshi <sjoshi(at)Zambeel(dot)com>
To: Alfred Perlstein <bright(at)wintelcom(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: question
Date: 2000-12-15 22:49:16
Message-ID: 3A3A9FEC.9802F3C0@zambeel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

ld -shared -o db1trig.so db1trig.o -L/work/posgresql/lib -static -lpq

Using above link line I was able to link and load the library but I get
following error
ERROR: conneciton bad.

Sandeep

> I have attached my program which I am trying to load as a trigger
> function.
> I was unsuccessful.
>
> I cannot link due to "elog" and "SPI_*" functions. which library are
> they
> defined in?
>
> I am linking "-lpq" on the command line.
>
> Sandeep
>
> > * Sandeep Joshi <sjoshi(at)Zambeel(dot)com> [001215 12:43] wrote:
> > >
> > > I need to update a second database through a trigger function
> written
> > > 'C'.
> > >
> > > Is that possible ? how?
> > >
> > > Do I need to go to commercial product for this?
> >
> > No, just reading the documentation should help. :)
> >
> > I imagine you should be able to link to libpq and do the updates
> > using that.
> >
> > --
> > -Alfred Perlstein - [bright(at)wintelcom(dot)net|alfred(at)freebsd(dot)org]
> > "I have the heart of a child; I keep it in a jar on my desk."
>
> ------------------------------------------------------------------------
>
> db1trig.c.errName: db1trig.c.err
> Type: Plain Text (text/plain)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alfred Perlstein 2000-12-15 22:57:41 Re: question
Previous Message Sandeep Joshi 2000-12-15 22:35:53 Re: question