Re: [NOVICE] Executing prepared statements in the multithreaded envs

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [NOVICE] Executing prepared statements in the multithreaded envs
Дата
Msg-id CAKFQuwaxNLYndO6Wcppj-3pNuHSeCuJf8WjRMLWNqruq52DqPA@mail.gmail.com
обсуждение исходный текст
Ответ на [NOVICE] Executing prepared statements in the multithreaded envs  (Ruslan R. Laishev <zator@yandex.ru>)
Ответы Re: [NOVICE] Executing prepared statements in the multithreaded envs
Список pgsql-novice
On Tue, Oct 17, 2017 at 7:00 AM, Ruslan R. Laishev <zator@yandex.ru> wrote:
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.

В списке pgsql-novice по дате отправления:

Предыдущее
От: Ruslan R. Laishev
Дата:
Сообщение: [NOVICE] Executing prepared statements in the multithreaded envs
Следующее
От: Ruslan R. Laishev
Дата:
Сообщение: Re: [NOVICE] Executing prepared statements in the multithreaded envs