Code Monkey home page Code Monkey logo

Comments (8)

asvetlov avatar asvetlov commented on August 21, 2024

Got it.

from aiopg.

kashifrazzaqui avatar kashifrazzaqui commented on August 21, 2024

We are also facing this issue, can you please patch this. We don't specify a timeout value though.

Specifically for us it occurs when we pass a 'sub-query' to cursor.execute

from aiopg.

asvetlov avatar asvetlov commented on August 21, 2024

What do you mean by sub-query?
cusor object is intended to execute only one query in the same time.

from aiopg.

kashifrazzaqui avatar kashifrazzaqui commented on August 21, 2024

http://www.postgresql.org/docs/8.2/static/functions-subquery.html

from aiopg.

bitdancer avatar bitdancer commented on August 21, 2024

Changing this from a ProgrammingError to a TimeoutError seems to have been done in 8ca948e, which also makes sure the connection and cursor are closed when it happens. Can this issue be closed?

from aiopg.

asvetlov avatar asvetlov commented on August 21, 2024

Not yet. I should fix closing cursor with pending query first.
Will do it next week -- just after making new aiohttp release.

from aiopg.

sumerc avatar sumerc commented on August 21, 2024

Do we have any estimate for the fix? If sub-query is hard to implement, I think we should include the initial problem as soonn as possible. Because currently this blocks one from implementing a retry policy on specific DB errors. e.g: retry query on TimeOut Error 2 times.

from aiopg.

asvetlov avatar asvetlov commented on August 21, 2024

Fixed, d0e5f86 has explicit test for the issue

from aiopg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.