psql command setting

Started by Simon Riggsabout 18 years ago4 messagespatches
Jump to latest
#1Simon Riggs
simon@2ndQuadrant.com

Recent patch allowed \timing [on|off]

This patch allows same option on all remaining toggles, so every option
works in the same way. We now have the ability to do
\a [on|off]
\H [on|off]

Patch also corrects help, which didn't show that \x and \t could already
be directly set, even though help said they were toggles.

--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support

Attachments:

psql_toggle_or_set.v1.patchtext/x-patch; charset=UTF-8; name=psql_toggle_or_set.v1.patchDownload+46-46
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Simon Riggs (#1)
Re: psql command setting

Simon Riggs <simon@2ndquadrant.com> writes:

Recent patch allowed \timing [on|off]
This patch allows same option on all remaining toggles, so every option
works in the same way.

We already discussed that and rejected it, because the remaining toggles
aren't really toggles.

regards, tom lane

#3Simon Riggs
simon@2ndQuadrant.com
In reply to: Tom Lane (#2)
Re: psql command setting

On Sat, 2008-07-05 at 11:24 -0400, Tom Lane wrote:

the remaining toggles aren't really toggles.

If it *acts* like a toggle and the help *says* its a toggle, then its
"actual toggleness" seems moot.

At the very least we should document the two toggles that are already
settable, with the attached patch.

--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support

Attachments:

psql_help_doc.v1.patchtext/x-patch; charset=utf-8; name=psql_help_doc.v1.patchDownload+4-4
#4Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Simon Riggs (#3)
Re: psql command setting

Simon Riggs wrote:

At the very least we should document the two toggles that are already
settable, with the attached patch.

Applied.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.