Re: Determining client_encoding from client locale

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: Determining client_encoding from client locale
Дата
Msg-id 3073cc9b0907231016p6949a77bk10e65cd737da343c@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Determining client_encoding from client locale  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Determining client_encoding from client locale  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On Thu, Jul 23, 2009 at 11:02 AM, Tom Lane<tgl@sss.pgh.pa.us> wrote:
>
> On most Linux systems, -L doesn't have any effect on what happens at
> runtime --- the dynamic linker's search path will determine that.
> Try "ldd" on the executable to see which shlibs really get picked up.
>

yeah! it's using the one that ships with 8.4.0

postgres@casanova1:~/pg_releases/pgtests$ ldd test-libpq           [...other no related libraries...]libpq.so.5 =>
/opt/PostgreSQL/8.4/lib/libpq.so.5(0x00007f7ef6db2000) 

The only way i can compile with the patched version of libpq is with this
gcc -o test-libpq test-libpq.o -L../pgsql/src/port -lpgport
-L../pgsql/src/interfaces/libpq -lpq -L../pgsql/src/port
-Wl,--as-needed -Wl,-rpath,'/usr/local/pgsql/head/lib' -lpgport

BTW, i can compile with the unpatched version if i add -lpgport (seems
like this patch is adding a dependency)
gcc -o test-libpq test-libpq.o -L/usr/local/pgsql/head/lib -lpq -lpgport

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157


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

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Extension Facility
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Extensions User Design