batching commands with libpq

From: yamt(at)mwd(dot)biglobe(dot)ne(dot)jp (YAMAMOTO Takashi)
To: pgsql-novice(at)postgresql(dot)org
Subject: batching commands with libpq
Date: 2010-12-28 05:08:05
Message-ID: 20101228050805.5FFC219CFB3@mail.netbsd.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Aarni 2010-12-28 13:51:35 Re: Send parameters using Shell script to PostgreSQL
Previous Message wolfang 2010-12-27 19:41:48 Send parameters using Shell script to PostgreSQL