Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

Next:From: Tom LaneDate: 2011-01-13 00:36:15
Subject: Re: batching commands with libpq
Previous:From: YAMAMOTO TakashiDate: 2011-01-13 00:08:59
Subject: Re: batching commands with libpq

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group