You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: show transaction status in pgcli prompt (%x, like psql) #1552
pgcli currently shows transaction status in the bottom bar but doesn't support displaying it in the prompt. psql supports this via the %x escape sequence in prompt configuration.
psql behavior:
In psql, you can include transaction status directly in your prompt like:
While the bottom status bar does show this info, having it in the prompt is useful when reviewing scrollback or terminal recordings, and it's what many users are accustomed to from psql. Transactions are core to database work, so prompt-level visibility helps catch mistakes like forgetting you're in a transaction block.
changed the title [-]Feature request: show transaction status in pgcli prompt (`\x`, like psql)[/-][+]Feature request: show transaction status in pgcli prompt (`%x`, like psql)[/+]on Jan 18, 2026
Activity
[-]Feature request: show transaction status in pgcli prompt (`\x`, like psql)[/-][+]Feature request: show transaction status in pgcli prompt (`%x`, like psql)[/+]j-bennet commentedon Jan 21, 2026
@devadathanmb Sure, we'll accept a PR. Thank you!
devadathanmb commentedon Jan 24, 2026
Thanks. I've added support for this on #1553