using libjansson in postgres extension

Поиск
Список
Период
Сортировка
От mahendrakar s
Тема using libjansson in postgres extension
Дата
Msg-id CABkiuWpifg0tA_odWOXMXcJEQ8ghk3n+amEFB_0Dg33fEmR6TA@mail.gmail.com
обсуждение исходный текст
Ответы Re: using libjansson in postgres extension  (mahendrakar s <mahendrakarforpg@gmail.com>)
Re: using libjansson in postgres extension  (Gurjeet Singh <gurjeet@singh.im>)
Список pgsql-novice
Hello Hackers,

I'm developing an extension where in it indirectly references (libjansson) and libjansson has a symbol json_object which conflicts with postgres  symbol 'json_object'.

I see below:
PostgreSQL: Documentation: 11: 38.10. C-Language Functions
"Symbol names defined within object files must not conflict with each other or with symbols defined in the PostgreSQL server executable. You will have to rename your functions or variables if you get error messages to this effect."

But this requires to maintain libjansson with customizations(have a different symbol) to meet the needs.

Do you have any suggestions to use the libjansson 'as it is' without using the different symbol.

Thanks,
Mahendrakar.


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

Предыдущее
От: Bzzzz
Дата:
Сообщение: Re: hstore or jsonb ?
Следующее
От: mahendrakar s
Дата:
Сообщение: Re: using libjansson in postgres extension