plruby: rb_iterate symbol clash with libruby.so

Поиск
Список
Период
Сортировка
От Pavel Raiskup
Тема plruby: rb_iterate symbol clash with libruby.so
Дата
Msg-id 4738198.8KVIIDhgEB@nb.usersys.redhat.com
обсуждение исходный текст
Ответы Re: plruby: rb_iterate symbol clash with libruby.so  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi, I'm curious how it worked before (seems like the function is defined
in both PostgreSQL and Ruby projects for quite some time) - but I recently
came across this situation:

    - /bin/postgres is build-time linked with 'ld -E'
    - /bin/postgres dlopen()s plruby.so
    - plruby.so calls rb_iterate, but linker prefers rb_iterate defined in
      /bin/postgres, instead of (the wanted one) rb_iterate from libruby.so

This means an ugly PG server crash.  I'm curious what to do with this;
ideally it would be solvable from plruby.so itself, but there doesn't seem
to be nice solution (one could do some hacks with dlopen('libruby.so')).

Is it realistic we could rename red-black tree methods from 'rb_*' to e.g.
'rbt_*' to avoid this clash?

Pavel





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

Предыдущее
От: Phil Florent
Дата:
Сообщение: RE: Internal error XX000 with enable_partition_pruning=on, pg 11beta1 on Debian
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Special role for subscriptions