Re: [INTERFACES] more on undefined reference to 'pg_detoast_datum'

Поиск
Список
Период
Сортировка
От D. Stimits
Тема Re: [INTERFACES] more on undefined reference to 'pg_detoast_datum'
Дата
Msg-id 3F8B55F6.2070102@comcast.net
обсуждение исходный текст
Список pgsql-general
Tom Lane wrote:

 > "D. Stimits"  writes:
 >
 > >... My question is, where the heck is
 > >CurrentMemoryContext and MemoryContextAlloc provided as an
 > >implementation which I can link with?
 >
 >
 > They're inside the backend, and you don't --- you are not trying to
 > build a standalone executable with no unresolved symbols, but a shared
 > library that can be successfully loaded into the backend.  It's okay
 > for such a library to have unresolved references to symbols that will be
 > resolved at load time.
 >
 >             regards, tom lane



Thanks to all that answered this. I found the problem, and it was
totally unexpected. There were some leftover Makefile lines that were
used to build a standalone module loader test unit, that test unit does
not implement palloc. The actual dynamic loadable module was in fact
working right, but the make was dying early when it so much as
referenced the old module loader code (a loader used to test/regress
functions before trying it on a server). I couldn't believe my eyes when
I saw those old lines in there.

D. Stimits


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

Предыдущее
От: Edmund Dengler
Дата:
Сообщение: SET within a function?
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Index on timestamp to date field