Skip to content

feat: Async PostgreSQL LISTEN connector #231

@mcavaciocchi

Description

@mcavaciocchi

First, I'd like to say that Orion is a fantastic project !

Feature Request

Add an asynchronous PostgreSQL LISTEN connector to Orion, enabling event-driven pipelines triggered by Postgres NOTIFY signals.

Motivation

Currently, Orion lacks a native way to react to database events in real time. A LISTEN connector would allow pipelines to be driven by Postgres notifications without polling.

Proposed Behavior

  • Connect to a Postgres instance and issue LISTEN <channel>
  • Emit a message into the Orion pipeline whenever a NOTIFY is received on the configured channel
  • Support configuring one or more channels
  • Handle reconnection automatically on connection loss

Example config_json

{"type":"db_listen","connection_string":"******","driver":"postgres","channels":["my_channel"],"listen_channel":"my_channel","max_connections":10}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions