how to insure libpq(dll/so) for thread-safety?
how to insure libpq(dll/so) for thread-safety?
От:
"wjzeng" <zwjing_hot@hotmail.com>
Дата:
Hi, In pgsql/src/interfaces/libpq/fe-exec.c, there are two variables: --------- static int static_client_encoding = PG_SQL_ASCII; static bool static_std_strings = false; If enable_thread_safety is "no", how to insure libpq(dll/so) for thread-safety? thanks wjzeng
Re: how to insure libpq(dll/so) for thread-safety?
От:
Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Дата:
"wjzeng" wrote: > In pgsql/src/interfaces/libpq/fe-exec.c, there are two variables: > --------- > static int static_client_encoding = PG_SQL_ASCII; > static bool static_std_strings = false; > > If enable_thread_safety is "no", how to insure libpq(dll/so) for > thread-safety? Use PQescape[String|Bytea]Conn() instead of PQescape[String|Bytea](). The static variables are used only in those deprecated functions. Regards, --- ITAGAKI Takahiro NTT Open Source Software Center