Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28223

Re: Async client for PostgreSQL?

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <james.pye@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'frameworks': 0.05; 'postgresql': 0.07; 'python': 0.09; 'blocking': 0.09; 'currently,': 0.09; 'frameworks.': 0.09; 'friday,': 0.09; 'modes': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'extension': 0.13; 'async': 0.16; 'low-level': 0.16; 'threads': 0.16; 'twisted': 0.16; 'wrote:': 0.17; '31,': 0.22; 'effort.': 0.22; 'operations.': 0.22; 'cheers,': 0.23; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'easiest': 0.27; 'integrate': 0.27; 'mind.': 0.27; 'i/o': 0.29; 'code': 0.31; 'point': 0.31; 'could': 0.32; 'received:google.com': 0.34; 'protocol': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'next': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:( 30': 0.38; 'easier': 0.38; 'some': 0.38; 'received:209.85.214': 0.39; 'august': 0.66; 'drivers': 0.71; 'nagy': 0.84; 'received:209.85.214.184': 0.84; 'received :mail-ob0-f184.google.com': 0.84; 'route': 0.84
Newsgroups comp.lang.python
Date Sat, 1 Sep 2012 16:57:13 -0700 (PDT)
In-Reply-To <mailman.24.1346476638.27098.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=67.180.20.82; posting-account=lYNdCAoAAACR7-wN54pFEFLqzIpaqRgA
References <mailman.24.1346476638.27098.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 67.180.20.82
MIME-Version 1.0
Subject Re: Async client for PostgreSQL?
From jwp <james.pye@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.40.1346543837.27098.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346543837 news.xs4all.nl 6945 [2001:888:2000:d::a6]:40660
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28223

Show key headers only | View raw


On Friday, August 31, 2012 10:17:18 PM UTC-7, Laszlo Nagy wrote:
> Is there any extension for Python that can do async I/O for PostgreSQL 

As others point out, the easiest route is using one of the blocking drivers with threads and "emulate" async operations.

However, the low-level parts of py-postgresql (python.projects.postgresql.org) were designed with arbitrary modes in mind. That is, the protocol code is independent of the transport so that it could be used with frameworks like twisted given some effort. Much of the work that will go into py-postgresql over the next couple years will be to make it easier to integrate into arbitrary frameworks. Currently, I suspect it would require some "heavy lifting".. =\

cheers,

github.com/jwp

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Async client for PostgreSQL? Laszlo Nagy <gandalf@shopzeus.com> - 2012-09-01 07:17 +0200
  Re: Async client for PostgreSQL? jwp <james.pye@gmail.com> - 2012-09-01 16:57 -0700
  Re: Async client for PostgreSQL? jwp <james.pye@gmail.com> - 2012-09-01 16:57 -0700

csiph-web