Skip to content

fix(compat): postgres_dba menu (:dba) cannot be exited in interactive mode #741

@NikolayS

Description

@NikolayS

Problem

postgres_dba works correctly inside psql. When run inside rpg in interactive mode (e.g. via tmux command injection), the :dba menu can be entered but cannot be exited — the user is stuck.

Steps to reproduce

  1. Connect to Postgres with rpg in interactive mode
  2. Trigger the postgres_dba menu (e.g. send \i path/to/postgres_dba/start.psql or :dba)
  3. Try to exit the menu

Expected

Behaves identically to psql — menu navigation and exit work correctly.

Actual

Exit does not work; user cannot leave the postgres_dba menu.

Notes

  • postgres_dba uses psql meta-commands and \prompt for interactive menus
  • Likely a gap in rpg's \prompt or interactive input handling
  • Blocking for users who rely on postgres_dba as part of their workflow
  • Should be fixed as part of the v0.9.0 psql compatibility push

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions