Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux