On Thu, Jul 11, 2002 at 06:30:48PM +0900, Tatsuo Ishii wrote: > > > No, it's not a libpq problem, but more common "client/server" problem > > > IMO. It's very hard to share dynamically created object (info) > > > effectively between client and server. > > > > IMHO dynamic object will keep server and client must ask for wanted > > information to server. > > I agree with you. However real problem is how fast it could be. For > example, pg_mblen() is called for each word processed by libpq to know > the byte length of the word. If each call to pg_mblen() accesses > backend, the performance might be unacceptably slow.
It must load all relevant information about actual encoding(s) and cache it in libpq. IMHO basic encoding information like name and id are not problem. The PQmblen() is big problem. Strange question: is PQmblen() really needful? I see it's used for result printing, but why backend not mark size of field (word) to result? If backend good knows size of data why not send this information to client togeter with data? Karel -- Karel Zak <[EMAIL PROTECTED]> http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster