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?

[EMAIL PROTECTED] public_html]$ set|grep PG
PGCLIENTENCODING=windows1250
PGDATABASE=testdb011
[EMAIL PROTECTED] public_html]$ ./testcninfo
[EMAIL PROTECTED] 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


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to