Re: libpq PGresult object and encoding - Mailing list pgsql-hackers

From Jeroen Vermeulen
Subject Re: libpq PGresult object and encoding
Date
Msg-id 4B7C6E9B.705@xs4all.nl
Whole thread Raw
In response to libpq PGresult object and encoding  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
Jeff Davis wrote:
> 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
> be provided?

That'd certainly save libpqxx the trouble of lugging a copy around.


Jeroen



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: scheduler in core
Next
From: Jeroen Vermeulen
Date:
Subject: Re: Avoiding bad prepared-statement plans.