Allow LISTEN on patterns
Quan Zongliang <quanzongliang@yeah.net>
From: Quan Zongliang <quanzongliang@yeah.net>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-03-04T04:39:45Z
Lists: pgsql-hackers
Attachments
- listen-pattern.patch (text/plain) patch
I implemented a LISTEN command that supports matching names in the LIKE format. Just like LISTEN 'c%'; NOTIFY c1;NOTIFY c2; Notifications are received for c1 and c2. For grammatical reasons, LISTEN 'v_'; with LISTEN v_; It's weird. Should it be defined in a way that makes it easier to distinguish? And support for more matching patterns. For example LISTEN [LIKE] 'like_pattern'; LISTEN SIMILAR 'regex_pattern'; -- Zongliang Quan