Re: [NOVICE] Executing prepared statements in the multithreaded envs
От | Ruslan R. Laishev |
---|---|
Тема | Re: [NOVICE] Executing prepared statements in the multithreaded envs |
Дата | |
Msg-id | 980091508252568@web37g.yandex.ru обсуждение исходный текст |
Ответ на | Re: [NOVICE] Executing prepared statements in the multithreaded envs ("David G. Johnston" <david.g.johnston@gmail.com>) |
Ответы |
Re: [NOVICE] Executing prepared statements in the multithreaded envs
|
Список | pgsql-novice |
Ho to check the PQprepare result ?
NULL or noNULL ?
17.10.2017, 17:09, "David G. Johnston" <david.g.johnston@gmail.com>:
Hi All!I'd like to use a pool of connections in multi-threaded environment, so:1. I created a pool of N-connection by calling PQconnectdb().2. Do I'm need to calling PQprepare() for the every sql_query for the every connection from the pool ?Named prepared statements are session-local information. When you first start a new session there are none. The ones you create remain until you either disconnect the session or "RESET" the session.David J.
--
С уважением,
Ruslan R. Laishev
Ruslan R. Laishev
OpenVMS bigot, natural born system/network progger, C contractor.
+79013163222
+79910009922
В списке pgsql-novice по дате отправления: