Skip to content

Enable threading for dispatching non-DB jobs #9

Description

@jwp

In some more curious situations, it may be desirable to run some threads in the backend for managing multiple I/O jobs.

Current gating aspects:

  • Threads cannot have access to the database (should be easy with existing protections)
  • Parts of pg-python rely on global state, Py_ALLOCATE_OWNER()
  • Thread finalization on_proc_exit?
  • Other lower level problems/threads in the backend are frickin' scary?

Another option is to just use event driven async systems.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions