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

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Srf function : missing library on PostgreSQL 8.3.6 on Windows?
Дата
Msg-id 49C5AB16.2030505@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: Srf function : missing library on PostgreSQL 8.3.6 on Windows?  (Ben Ali Rachid <souliman239@yahoo.fr>)
Список 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
(servercrash), 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

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

Предыдущее
От: Sergey Burladyan
Дата:
Сообщение: Re: Defer a functional index calculation?
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: DBD::Pg's $dbh->func( "/path/to/file", 'lo_import' ) fails silently