Skip to content

Live message view for PostgreSQL LISTEN/NOTIFY, Redis pub/sub and Kafka topics #3614

Closed

Description

@datlechin

Problem

TablePro reads data that is already stored. Messages that flow past cannot be watched:

  • PostgreSQL: LISTEN runs in a query tab, but nothing reads the notifications that arrive afterwards. The driver never collects them; there is no PQnotifies call in the PostgreSQL plugin.
  • Redis: Pub/Sub has no grid support, PUBLISH runs in the CLI, and there is no subscriber view (databases/redis.mdx:168).
  • Kafka: opening a topic shows its latest hundred messages, and CONSUME "orders" FROM NEWEST LIMIT 100 reads once and stops (databases/kafka.mdx:60-79). To see new messages the user re-runs it.

Debugging a trigger that calls pg_notify, a cache invalidation channel, or a producer means keeping a terminal open beside TablePro.

Proposed solution

  • A Live tab: a table that appends rows as they arrive, with the time, the channel or topic and the payload, plus partition, offset and key on Kafka. Pause and Resume, Clear, a filter field, a cap that keeps the newest 10,000 rows, and Copy and Export like any result.
  • PostgreSQL: Listen… on a connection takes one or more channel names, opens a session of its own, runs LISTEN and shows each notification as it arrives. A field at the bottom sends NOTIFY to test the channel.
  • Redis: Subscribe… takes channels and patterns (SUBSCRIBE, PSUBSCRIBE) on a connection of its own, since a subscribed connection cannot run other commands. A field at the bottom runs PUBLISH.
  • Kafka: Follow on a topic starts at the end offset of each partition and keeps fetching. It reads without a consumer group, so it never moves a group's committed offsets.
  • Closing the tab closes its connection. A dropped connection shows a gap marker and reconnects, and re-subscribes, on its own.

Done when: a NOTIFY from psql, a PUBLISH from redis-cli and a message produced to a topic each appear in the Live tab within a second, and pausing for a minute then resuming loses nothing up to the cap.

Alternatives considered

Keep psql, redis-cli SUBSCRIBE or kafka-console-consumer running in a terminal beside TablePro.

Platform

macOS

Related database type

N/A / General

Activity

  1. added
    enhancement
    platform-macos
    on Oct 19, 2026
  2. J2TeamNNL commented on Nov 1, 2026

    @J2TeamNNL
    Contributor

    I'm working on this for the macOS app. Plan:

    1. Add a small optional PluginLiveMessaging capability to TableProPluginKit: a driver opens a subscription on a connection of its own and returns a stream of messages (time, channel, payload, plus partition, offset and key for Kafka), and can publish a test message.
    2. Add one shared Live tab: live list, Pause and Resume, Clear, a filter field, Copy, and a cap of the newest 10,000 messages. Closing the tab closes its connection. A dropped connection shows a gap row and reconnects.
    3. PostgreSQL: Listen... runs LISTEN and reads notifications, with a NOTIFY field. Redis: Subscribe... with channels and patterns, with a PUBLISH field.
    4. Kafka: Follow on a topic, starting at each partition's end offset, with no consumer group. If the PR gets too large, Kafka follows in a second PR.
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

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions