Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D0607650044 for ; Sat, 5 Jul 2008 13:12:25 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 53012-05 for ; Sat, 5 Jul 2008 13:12:22 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail136041.authsmtp.com (outmail136041.authsmtp.com [62.13.136.41]) by postgresql.org (Postfix) with ESMTP id 86FB464FD34 for ; Sat, 5 Jul 2008 13:12:21 -0300 (ADT) Received: from mail-c188.authsmtp.com (mail-c188.authsmtp.com [62.13.128.25]) by punt3.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m65GCJER065132; Sat, 5 Jul 2008 17:12:19 +0100 (BST) Received: from [192.168.0.3] (85-211-229-155.dyn.gotadsl.co.uk [85.211.229.155]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m65GCI4P090127; Sat, 5 Jul 2008 17:12:18 +0100 (BST) Subject: Re: psql command setting From: Simon Riggs To: Tom Lane Cc: List pgsql-patches In-Reply-To: <9850.1215271452@sss.pgh.pa.us> References: <1215261367.4051.286.camel@ebony.site> <9850.1215271452@sss.pgh.pa.us> Content-Type: multipart/mixed; boundary="=-3sJ6AVSyqPpTSveyR1y9" Date: Sat, 05 Jul 2008 17:17:29 +0100 Message-Id: <1215274649.4051.319.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 X-Server-Quench: 245401ac-4aad-11dd-aecc-001871e930f4 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFaABbZ0xd HGQLW1xEUVp7WGF/ agMfZQBDYEtPQQdo WVZIR1dNFgBqBAMB SEMYV24BDgEmeHdw ZERlEHJcVUQ0d0J4 Rk5VRD4bYTYxPH0e URQMalIBI1BXfh9E Yld+AXoOYTMDKBg1 TUcABxkNFhVyExEd WhoUKRoZRkMOFzgw DwsPASkuG0Jt X-Authentic-SMTP: 61633235383639.cat.dmpriest.net.uk:1078/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/89 X-Sequence-Number: 6783 --=-3sJ6AVSyqPpTSveyR1y9 Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 --=-3sJ6AVSyqPpTSveyR1y9 Content-Disposition: attachment; filename=psql_help_doc.v1.patch Content-Type: text/x-patch; name=psql_help_doc.v1.patch; charset=utf-8 Content-Transfer-Encoding: 7bit Index: src/bin/psql/help.c =================================================================== RCS file: /home/sriggs/pg/REPOSITORY/pgsql/src/bin/psql/help.c,v retrieving revision 1.129 diff -c -r1.129 help.c *** src/bin/psql/help.c 11 Jun 2008 10:55:43 -0000 1.129 --- src/bin/psql/help.c 5 Jul 2008 12:19:00 -0000 *************** *** 228,237 **** fprintf(output, _(" \\pset NAME [VALUE] set table output option\n" " (NAME := {format|border|expanded|fieldsep|footer|null|\n" " numericlocale|recordsep|tuples_only|title|tableattr|pager})\n")); ! fprintf(output, _(" \\t show only rows (currently %s)\n"), ON(pset.popt.topt.tuples_only)); fprintf(output, _(" \\T [STRING] set HTML tag attributes, or unset if none\n")); ! fprintf(output, _(" \\x toggle expanded output (currently %s)\n"), ON(pset.popt.topt.expanded)); fprintf(output, "\n"); --- 228,237 ---- fprintf(output, _(" \\pset NAME [VALUE] set table output option\n" " (NAME := {format|border|expanded|fieldsep|footer|null|\n" " numericlocale|recordsep|tuples_only|title|tableattr|pager})\n")); ! fprintf(output, _(" \\t [on|off] show only rows (currently %s)\n"), ON(pset.popt.topt.tuples_only)); fprintf(output, _(" \\T [STRING] set HTML
tag attributes, or unset if none\n")); ! fprintf(output, _(" \\x [on|off] toggle expanded output (currently %s)\n"), ON(pset.popt.topt.expanded)); fprintf(output, "\n"); --=-3sJ6AVSyqPpTSveyR1y9--