Re: [BUGS] error message "psql: expected authentication request from server, but received " when using psql to connect remote database

2008-05-22 Thread TIAN Justin
Tom Lane, Thanks for your response, Actually, we don't directly use postgre server,we open TCP connection to support postgre wire protocol, so psql client can connect to our application, I found the problem is in the StartupMessage, when psql client version is 8.1.4, the major and minor version in

Re: [BUGS] BUG #4186: set lc_messages does not work

2008-05-22 Thread Euler Taveira de Oliveira
Thomas H. wrote: please observe the (previously already submitted) test queries. i've removed the date/time testqueries to no further distract from the problem. the bogus query "select x;" always results in a german error messages no matter what LC_MESSAGES is set: OK, that's another problem

Re: [BUGS] BUG #4186: set lc_messages does not work

2008-05-22 Thread Thomas H.
euler taveira de olivieira wrote: the patch discussed here [1] that supposedly made the win32 msvc builds use lc_locale properly has flaws. I think you misunderstood the feature [1] added recently. This new actually no. the problem is as i intended to point out with the system generated er

Re: [BUGS] BUG #4186: set lc_messages does not work

2008-05-22 Thread Euler Taveira de Oliveira
Thomas H wrote: the patch discussed here [1] that supposedly made the win32 msvc builds use lc_locale properly has flaws. I think you misunderstood the feature [1] added recently. This new feature doesn't rely on lc_messages to localize the day and month names; it uses lc_time. Look at the ar

Re: [BUGS] error message "psql: expected authentication request from server, but received " when using psql to connect remote database

2008-05-22 Thread Tom Lane
"TIAN Justin" <[EMAIL PROTECTED]> writes: > Thanks for your quick response; the server we used is 8.1.4, > The error when using client 8.1.4, >> psql -U or -p -d testdb -h localhost > Output: > psql: expected authentication request from server, but received What is in the server's pg_hba.con