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

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [NOVICE] Executing prepared statements in the multithreaded envs
Дата
Msg-id CAKFQuwZ+G5+9sX=f4mMNi8Rh1mOWYc3RHK4Jw2zfppHG_CzD-Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [NOVICE] Executing prepared statements in the multithreaded envs  (Ruslan R. Laishev <zator@yandex.ru>)
Список pgsql-novice
On Tue, Oct 17, 2017 at 8:16 AM, Ruslan R. Laishev <zator@yandex.ru> wrote:
A quotation from the docs "for me" :
 
PQprepare
Submits a request to create a prepared statement with the given parameters, and waits for com-
pletion.
PGresult
* PQprepare(PGconn * conn,
const char
* stmtName,
const char
* query,
int nParams,
const Oid
* paramTypes);


​The function returns a PGresult so I'd assume you'd handle PQprepare ​just like any other result-returning function.

Specifically, "ExecStatusType PQresultStatus(const PGresult *res);" seems useful.

David J.

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

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