]> granicus.if.org Git - postgresql/commit
Fix behavior of psql's \p to agree with \g, \w, etc.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 2 Apr 2017 20:50:25 +0000 (16:50 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 2 Apr 2017 20:50:25 +0000 (16:50 -0400)
commit5dbc5da1187c1ddb6e091047194d364337ebf232
treeb3c0c9ab9d7b567b65379789009734fc2f5da64d
parent130ae4a5478b3b3965779ece1436fa3611aa957f
Fix behavior of psql's \p to agree with \g, \w, etc.

In commit e984ef586 I (tgl) simplified the behavior of \p to just print
the current query buffer; but Daniel Vérité points out that this made it
inconsistent with the behavior of \g and \w.  It should print the same
thing \g would execute.  Fix that, and improve related comments.

Daniel Vérité

Discussion: https://postgr.es/m/9b4ea968-753f-4b5f-b46c-d7d3bf7c8f90@manitou-mail.org
src/bin/psql/command.c
src/test/regress/expected/psql.out
src/test/regress/sql/psql.sql