Re: CurrentMemoryContext

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CurrentMemoryContext
Дата
Msg-id 5919.973609407@sss.pgh.pa.us
обсуждение исходный текст
Ответ на CurrentMemoryContext  (Bob Parkinson <rwp@biome.ac.uk>)
Ответы Re: CurrentMemoryContext  (Bob Parkinson <rwp@biome.ac.uk>)
Список pgsql-general
Bob Parkinson <rwp@biome.ac.uk> writes:
> Is CurrentMemoryContext a postgres symbol that I can link against?

Yes, it should be accessible to shared libs that are loaded into a
backend.

> accessable to postgres, as a .so, and perl. The .so bit works, but I'm
> trying to now build the Perl module calling the C code. I'm getting

> Undefined symbol "CurrentMemoryContext"

If I'm visualizing your setup correctly, you are trying to load this
code into a Perl executable?  It's not going to work to load backend
code into Perl, because none of the backend support routines are going
to be accessible.  Probably CurrentMemoryContext is just by chance the
first unresolvable symbol the linker found --- there'll be more if you
get past that one.

Code that's supposed to go into non-backend contexts shouldn't be using
any Postgres-specific include files...

            regards, tom lane

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

Предыдущее
От: Ned Lilly
Дата:
Сообщение: announce list?
Следующее
От: Bob Parkinson
Дата:
Сообщение: Re: CurrentMemoryContext