async fast-path calls?

From: yamt(at)mwd(dot)biglobe(dot)ne(dot)jp (YAMAMOTO Takashi)
To: pgsql-novice(at)postgresql(dot)org
Subject: async fast-path calls?
Date: 2011-01-13 00:21:45
Message-ID: 20110113002145.51F8F19CEC5@mail.netbsd.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

hi,

is there any easy way to issue large object operations like lo_write,
or more generally fast-path calls, asynchronously? (async in the sense
of PQsendQuery so that i can poll to wait a result)

background: i want to use multiple connections to the server in a single
application for performance reasons. the application is single-threaded.
(multi threading is not possible because i need to use a
pthread-incompatible library.)
using synchronous api when another asynchronous command is in-progress is
deadlock-prone as i can't receive the result of asynchronous one until
the synchronous one finishes.

YAMAMOTO Takashi

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2011-01-13 00:36:15 Re: batching commands with libpq
Previous Message YAMAMOTO Takashi 2011-01-13 00:08:59 Re: batching commands with libpq