batching commands with libpq

Поиск
Список
Период
Сортировка
От yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
Тема batching commands with libpq
Дата
Msg-id 20101228050805.5FFC219CFB3@mail.netbsd.org
обсуждение исходный текст
Ответы Re: batching commands with libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
hi,

is there any way to send multiple commands together (ideally in a single
network packet), and then wait for their results, using libpq?  i want to
save extra round-trips.  while postgresql's fe-be on-wire protocol seems
to allow it (is it right?), i couldn't find a way with libpq.

PQsendQuery(conn, "select timeofday();select timeofday();select timeofday();");
seems to work, but i want to use extended protocol.

YAMAMOTO Takashi

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

Предыдущее
От: wolfang
Дата:
Сообщение: Send parameters using Shell script to PostgreSQL
Следующее
От: Aarni
Дата:
Сообщение: Re: Send parameters using Shell script to PostgreSQL