On Wed, Aug 19, 2009 at 11:08 AM, Jaime
Casanova<jcasa...@systemguards.com.ec> wrote:
> On Tue, Aug 18, 2009 at 6:49 AM, Heikki
> Linnakangas<heikki.linnakan...@enterprisedb.com> wrote:
>>
>> Hmm, are you sure you the right version of libpq is being loaded at
>> runtime? What does "ldd ./test-libpq" say?
>>
>

attached the results of ldd and the result of the test script for
"client_encoding=auto" and "client_encoding=latin1", seems like it's
trying to use auto as an encoding and when it fails takes SQL_ASCII

the same results for windows (i used dependency walker to be sure i
was using the right libpq.dll)

-- 
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157
postg...@casanova1:~/pg_releases/pgtests$ ldd ./test-libpq
        linux-vdso.so.1 =>  (0x00007fffad1ff000)
        libpq.so.5 => /usr/local/pgsql/head.client_encoding/lib/libpq.so.5 
(0x00007fdea4c48000)
        libc.so.6 => /lib/libc.so.6 (0x00007fdea48f5000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007fdea46bd000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fdea4e6a000)

postg...@casanova1:~/pg_releases/pgtests$ ./test-libpq "dbname=postgres 
user=postgres  client_encoding=auto"
PostgreSQL version(): PostgreSQL 8.5devel on x86_64-unknown-linux-gnu, compiled 
by GCC gcc (Debian 4.3.2-1.1) 4.3.2, 64-bit
client_encoding: SQL_ASCII

postg...@casanova1:~/pg_releases/pgtests$ ./test-libpq "dbname=postgres 
user=postgres  client_encoding=latin1"
PostgreSQL version(): PostgreSQL 8.5devel on x86_64-unknown-linux-gnu, compiled 
by GCC gcc (Debian 4.3.2-1.1) 4.3.2, 64-bit
client_encoding: latin1


administra...@casanova11 ~$ ./test-libpq.exe "dbname=postgres user=postgres 
host=192.168.0.196 port=54323"
PostgreSQL version: PostgreSQL 8.5devel on x86_64-unknown-linux-gnu, compiled 
by GCC gcc (Debian 4.3.2-1.1) 4.3.2, 64-bit
client_encoding: UTF8

administra...@casanova11 ~$ ./test-libpq.exe "dbname=postgres user=postgres 
host=192.168.0.196 port=54323 client_encoding=latin1"
PostgreSQL version: PostgreSQL 8.5devel on x86_64-unknown-linux-gnu, compiled 
by GCC gcc (Debian 4.3.2-1.1) 4.3.2, 64-bit
client_encoding: latin1

administra...@casanova11 ~$ ./test-libpq.exe "dbname=postgres user=postgres 
host=192.168.0.196 port=54323 client_encoding=auto"
PostgreSQL version: PostgreSQL 8.5devel on x86_64-unknown-linux-gnu, compiled 
by GCC gcc (Debian 4.3.2-1.1) 4.3.2, 64-bit
client_encoding: SQL_ASCII

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to