libpq has a PQclientEncoding() function that takes a connection object.
However, the client encoding is, in some cases, a property of the result
object. For instance, if your client_encoding changes, but you keep the
result object around, you have no way to determine later what encoding
the results are in.
The result object already saves the client_encoding. Should an accessor
pgsql-hackers by date
|Next:||From: KaiGai Kohei||Date: 2010-02-16 05:10:00|
|Subject: Re: CommitFest Status Summary - 2010-02-14|
|Previous:||From: Jeff Davis||Date: 2010-02-16 03:48:32|
|Subject: Re: Confusion over Python drivers|