Re: Srf function : missing library on PostgreSQL 8.3.6 on Windows?

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Ben Ali Rachid <souliman239(at)yahoo(dot)fr>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: Srf function : missing library on PostgreSQL 8.3.6 on Windows?
Date: 2009-03-22 03:05:58
Message-ID: 49C5AB16.2030505@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ben Ali Rachid wrote:
> Thanks for your help. I try "extern C" for the inclusions and everything is OK. But now I have execution error (server crash), but it's another problem that I will try to solve.

If you're using C++ you must also:

- Ensure that no exceptions propagate outside your code
- Declare all hook functions that might be dlopen()ed as extern "C"

As Tom Lane pointed out in an earlier thread about this you'll also have
problems with Pg's longjmp based error handling skipping past
exception-driven cleanup, so you can't rely on RAII and scoped objects.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2009-03-22 04:12:04 Re: DBD::Pg's $dbh->func( "/path/to/file", 'lo_import' ) fails silently
Previous Message Sergey Burladyan 2009-03-22 02:31:44 Re: Defer a functional index calculation?