From: | Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | PQconndefaults() error, don't show PGCLIENTENCODING |
Date: | 2004-01-12 13:23:48 |
Message-ID: | Pine.LNX.4.44.0401121359090.11203-100000@kix.fsv.cvut.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hello
I work on small patch for pg_dump, which adds information about
used encoding into dump file. I can get current encoding via SQL "SHOW
client_encoding", but I can (propably) PQconndefaults too? Is it true?
I wrote small program which show env vars from PQconninfoOption struct.
But env PGCLIENTENCODING didn't showed? Maybe its error?
[stehule(at)stehule public_html]$ set|grep PG
PGCLIENTENCODING=windows1250
PGDATABASE=testdb011
[stehule(at)stehule public_html]$ ./testcninfo
[stehule(at)stehule public_html]$ ./testcninfo
PGAUTHTYPE=
PGSERVICE=(null)
PGUSER=stehule
PGPASSWORD=(null)
PGCONNECT_TIMEOUT=(null)
PGDATABASE=testdb011
PGHOST=(null)
PGHOSTADDR=(null)
PGPORT=5432
PGTTY=
PGOPTIONS=
PGSSLMODE=disable
Next questions? I don't think so I can use PQconndefaults for getting
informations about current connection now. Can I get this informations
by different way than sql?
Regards
Pavel Stehule
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2004-01-12 17:55:26 | Assertion failure in current cvs |
Previous Message | Stephen Quinney | 2004-01-12 10:15:33 | Bug in functions returning setof where table has dropped column |