dbTalk Databases Forums  

[BUGS] PQconndefaults() error, don't show PGCLIENTENCODING

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] PQconndefaults() error, don't show PGCLIENTENCODING in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pavel Stehule
 
Posts: n/a

Default [BUGS] PQconndefaults() error, don't show PGCLIENTENCODING - 01-12-2004 , 07:25 AM






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


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.