|
Re: COPY support in pgsql-jdbc driver: msg#00172db.postgresql.jdbc
Sam Varshavchik wrote: Barry Lind writes: This is not correct. The data coming from the server is a stream of characters in the character encoding of the server. This character encoding may be different than the client character encoding, and therefore character set conversions are necessary. Lets say for example the database is running with UTF-8 as it's character set, thus the output of the copy will be UTF-8 encoded. If the client is running Latin1 then there will be a missmatch and all 8bit characters will be interpreted incorrectly by the client. Character set conversion is necessary in this case.
It will still be more effiecient to do the buffering in the code than to rely on a BufferedInputStream. Performing a method call to get each new byte is much more overhead than iterating through a byte[]. thanks, --Barry ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@xxxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: COPY support in pgsql-jdbc driver: 00172, Sam Varshavchik |
|---|---|
| Next by Date: | Re: COPY support in pgsql-jdbc driver: 00172, Sam Varshavchik |
| Previous by Thread: | Re: COPY support in pgsql-jdbc driveri: 00172, Sam Varshavchik |
| Next by Thread: | Re: COPY support in pgsql-jdbc driver: 00172, Sam Varshavchik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |