Skip to content

WIP sql: implement LISTEN/NOTIFY/UNLISTEN#48308

Draft
jordanlewis wants to merge 1 commit intocockroachdb:masterfrom
jordanlewis:listen-notify
Draft

WIP sql: implement LISTEN/NOTIFY/UNLISTEN#48308
jordanlewis wants to merge 1 commit intocockroachdb:masterfrom
jordanlewis:listen-notify

Conversation

@jordanlewis
Copy link
Copy Markdown
Member

@jordanlewis jordanlewis commented May 2, 2020

Closes #41522.

One problem is that the 32 bit session ID is back to bite us
from #34520. We don't have a 32 bit identifier that's unique across all
sessions of the cluster. Currently, we report 0 for the PID of the
notifying process, which probably isn't going to fly.

Release note (sql change): implement the LISTEN/NOTIFY Postgres
protocol and statement suite

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@kalman5
Copy link
Copy Markdown

kalman5 commented May 18, 2020

Wonderful

@jordanlewis jordanlewis force-pushed the listen-notify branch 2 times, most recently from 58786ea to 4e985c8 Compare May 29, 2020 06:22
@enumag
Copy link
Copy Markdown

enumag commented Feb 4, 2021

@jordanlewis What's the current state of this PR? I'd like to use this feature.

@jordanlewis
Copy link
Copy Markdown
Member Author

@enumag Unfortunately, it's completely out of date and unfinished. I'd like to resurrect it at some point, but I don't have a timeline to offer you for that.

@enumag
Copy link
Copy Markdown

enumag commented Feb 4, 2021

I see. Thanks for replying. 🙂

@jordanlewis jordanlewis force-pushed the listen-notify branch 3 times, most recently from fdf5788 to 7282965 Compare March 28, 2021 14:43
@tbg tbg added the X-noremind Bots won't notify about PRs with X-noremind label May 6, 2021
@sandstrom
Copy link
Copy Markdown

Just wanted to check in and mention that this would be very useful for async job handling in Rails, where several of the popular adapters use LISTEN/NOTIFY (for example https://github.com/bensheldon/good_job)

Closes cockroachdb#41522.

This commit enables LISTEN/NOTIFY.

One problem is that the 32 bit session ID is back to bite us
from cockroachdb#34520. We don't have a 32 bit identifier that's unique across all
sessions of the cluster. Currently, we report the NodeID for the PID of
the notifying process instead.

Release note (sql change): implement the LISTEN/NOTIFY Postgres
protocol; LISTEN, NOTIFY, UNLISTEN, and pg_notify.
@cockroachdb cockroachdb deleted a comment from blathers-crl bot Jun 13, 2022
@cockroachdb cockroachdb deleted a comment from blathers-crl bot Jun 13, 2022
@cockroachdb cockroachdb deleted a comment from blathers-crl bot Jun 13, 2022
@cockroachdb cockroachdb deleted a comment from blathers-crl bot Jun 13, 2022
@cockroachdb cockroachdb deleted a comment from blathers-crl bot Jun 13, 2022
@cockroachdb cockroachdb deleted a comment from blathers-crl bot Jun 13, 2022
@cockroachdb cockroachdb deleted a comment from blathers-crl bot Jun 13, 2022
@cockroachdb cockroachdb deleted a comment from blathers-crl bot Jun 13, 2022
@cockroachdb cockroachdb deleted a comment from blathers-crl bot Jun 13, 2022
@corporatepiyush
Copy link
Copy Markdown

Quite a good feature to implement. Why its not being shown some love ?
Distributed version of this PG in CockroachDB would be very helpful as it helps get rid of Redis/Kafka from infrastructure to implement most common cases.

Are you guys considering this somewhere in near future or its off the roadmap forever ?

@Paillat-dev
Copy link
Copy Markdown

Is this still planned/being worked on? Last commit is from 2 years ago

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

Labels

X-noremind Bots won't notify about PRs with X-noremind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sql: support NOTIFY, LISTEN, and UNLISTEN commands of postgresql

8 participants