]> git.ipfire.org Git - thirdparty/postgresql.git/commit
psql: Disable %P (pipeline status) for non-active connection
authorMichael Paquier <michael@paquier.xyz>
Thu, 29 Jan 2026 07:20:45 +0000 (16:20 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 29 Jan 2026 07:20:45 +0000 (16:20 +0900)
commit4b77282f250103f2ecd54b9f45421c742006317b
tree7bb35f6426c2edc85c42e920f8ddf5ea8c258a75
parent740a1494f4bfb470b16e5b70c79fae473b1a655d
psql: Disable %P (pipeline status) for non-active connection

In the psql prompt, %P prompt shows the current pipeline status.  Unlike
most of the other options, its status was showing up in the output
generated even if psql was not connected to a database.  This was
confusing, because without a connection a pipeline status makes no
sense.

Like the other options, %P is updated so as its data is now hidden
without an active connection.

Author: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/86EF76B5-6E62-404D-B9EC-66F4714D7D5F@gmail.com
Backpatch-through: 18
src/bin/psql/prompt.c