Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6k8H-0002mx-MO for pgsql-bugs@arkaria.postgresql.org; Fri, 05 May 2017 20:47:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d6k8H-0002an-99 for pgsql-bugs@arkaria.postgresql.org; Fri, 05 May 2017 20:47:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d6k8G-0002ZU-1T for pgsql-bugs@postgresql.org; Fri, 05 May 2017 20:47:20 +0000 Received: from mail.aegee.org ([144.76.142.78]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d6k8C-0004ea-JN for pgsql-bugs@postgresql.org; Fri, 05 May 2017 20:47:19 +0000 Received: from mail.your-server.de (localhost [127.0.0.1]) by mail.aegee.org (8.15.2/8.15.2) with ESMTP id v45KmWWK026970; Fri, 5 May 2017 20:48:32 GMT DKIM-Filter: OpenDKIM Filter v2.10.3 mail.aegee.org v45KmWWK026970 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aegee.org; s=k4096; t=1494017313; i=dkim+sm-localhost@aegee.org; r=y; bh=AWhJ+NmbyFs7XDKyjK8M/7cG7qi2ufXD96H/sLqCT5k=; h=From:To:Subject:Date; b=Un+PRSIyaE2yvOG0g0wGyfFsUF8BbZ6BeLQ1N7s/pN0BAE5/P84/tRr/gCv9uwzCm kqvblZHbHIDvdKwE6PP2b8HKe0I9YSW1DXvh9EscWr3ZuIbxr4/CpwUFn2CAiN6G64 cMu7ZlEjCFElOxwfj92++BAK2q8lc41yWI5/88nFzIuhrNnu+SbmfWzb53jyKwF4iR 89QVEudTTxhMv5R29mbroMEcYyRxA33jcccD+BA8xPlty6vMFYVuKd+ITFZuYt+QSW UnjysKet34AaJk9w06gVqCrKdE6mz6A7u6haiYUHg1TXtAKIckeZmyoEp80b4qQUBk w2rISvvn+0icVp63ccpq4i4U4rLm4z+jNr/E8sj+Kwlzqe2i9HeKM0sox81pV8RsRK 5f6CISe7CIPSDXlP7nIA06sprG6juw9FEyAWNm5KcIJ+qAUGlUJ88hx2Ay6AI01Jk8 tulZwa9VyBlWOCU+stTHTe6QLegTkY26xC5OgnFvOIdRaOZjHW98qdHRk3Gfoouo+n pK8wYIpqZSBOTYNGLVWPxIK+pBPNHch4++RQ4Exqo3AtUr80zNrnPlM2Pp78qVMW6I fzsKWiiwlXbnuPz77kJuNo2fGhqw5ftI/x9KjCzv4/hg1/hWKLbrxgA1cCLtp2MFaD JpI9PZE5SWHdj0K5saPCj2xQ= Authentication-Results: mail.aegee.org; dkim=none From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0=D1=83=D0=B7=D0=BE=D0=B2?= To: pgsql-bugs@postgresql.org Subject: [PATCH] Refresh documentation for psql Date: Fri, 5 May 2017 20:48:32 +0000 Message-Id: <20170505204832.26930-1-dpa-postgres@aegee.org> X-Mailer: git-send-email 2.12.2.89.g49800c940 X-Virus-Scanned: clamav-milter 0.99.2 at mail.aegee.org X-Virus-Status: Clean X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org in src/bin/psql/help.c: on \? ensure the output is alphabetically ordered in regards to \d; update the documenation for \pset to mention columns|linestyle|pager_min_lines --- doc/src/sgml/ref/psql-ref.sgml | 30 +++++++++++++++++------------- src/bin/psql/help.c | 11 ++++++----- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 0c846e1452..d16b359f74 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -68,7 +68,8 @@ PostgreSQL documentation Switches to unaligned output mode. (The default output mode is - otherwise aligned.) + otherwise aligned.) This is equivalent to \pset format + unaligned. @@ -371,8 +372,8 @@ EOF Use separator as the - record separator for unaligned output. This is equivalent to the - \pset recordsep command. + record separator for unaligned output. This is equivalent to + \pset recordsep. @@ -415,7 +416,8 @@ EOF Turn off printing of column names and result row count footers, - etc. This is equivalent to the \t command. + etc. This is equivalent to \t or + \pset tuples-only. @@ -427,7 +429,7 @@ EOF Specifies options to be placed within the HTML table tag. See - \pset for details. + \pset tableattr for details. @@ -522,8 +524,8 @@ EOF - Turn on the expanded table formatting mode. This is equivalent to the - \x command. + Turn on the expanded table formatting mode. This is equivalent to + \x or \pset expanded. @@ -545,7 +547,8 @@ EOF - Set the field separator for unaligned output to a zero byte. + Set the field separator for unaligned output to a zero byte. This is + equvalent to \pset fieldsep_zero. @@ -557,6 +560,7 @@ EOF Set the record separator for unaligned output to a zero byte. This is useful for interfacing, for example, with xargs -0. + This is equivalent to \pset recordsep_zero. @@ -1832,9 +1836,8 @@ Tue Oct 26 21:40:57 CEST 1999 Sets the field separator for unaligned query output. The default - is the vertical bar (|). See also - \pset for a generic way of setting output - options. + is the vertical bar (|). It is equivalent to + \pset fieldsep. @@ -2597,8 +2600,9 @@ lo_import 152801 There are various shortcut commands for \pset. See - \a, \C, \H, - \t, \T, and \x. + \a, \f, \C, + \H, \t, \T, + and \x. diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c index a69c4dd8cf..92e7f308fd 100644 --- a/src/bin/psql/help.c +++ b/src/bin/psql/help.c @@ -226,7 +226,8 @@ slashUsage(unsigned short int pager) fprintf(output, _(" \\des[+] [PATTERN] list foreign servers\n")); fprintf(output, _(" \\deu[+] [PATTERN] list user mappings\n")); fprintf(output, _(" \\dew[+] [PATTERN] list foreign-data wrappers\n")); - fprintf(output, _(" \\df[antw][S+] [PATRN] list [only agg/normal/trigger/window] functions\n")); + fprintf(output, _(" \\dE[S+] [PATTERN] list foreign tables\n")); + fprintf(output, _(" \\df[antwS+] [PATRN] list [only agg/normal/trigger/window] functions\n")); fprintf(output, _(" \\dF[+] [PATTERN] list text search configurations\n")); fprintf(output, _(" \\dFd[+] [PATTERN] list text search dictionaries\n")); fprintf(output, _(" \\dFp[+] [PATTERN] list text search parsers\n")); @@ -246,7 +247,6 @@ slashUsage(unsigned short int pager) fprintf(output, _(" \\dT[S+] [PATTERN] list data types\n")); fprintf(output, _(" \\du[S+] [PATTERN] list roles\n")); fprintf(output, _(" \\dv[S+] [PATTERN] list views\n")); - fprintf(output, _(" \\dE[S+] [PATTERN] list foreign tables\n")); fprintf(output, _(" \\dx[+] [PATTERN] list extensions\n")); fprintf(output, _(" \\dy [PATTERN] list event triggers\n")); fprintf(output, _(" \\l[+] [PATTERN] list databases\n")); @@ -262,9 +262,10 @@ slashUsage(unsigned short int pager) fprintf(output, _(" \\H toggle HTML output mode (currently %s)\n"), ON(pset.popt.topt.format == PRINT_HTML)); fprintf(output, _(" \\pset [NAME [VALUE]] set table output option\n" - " (NAME := {format|border|expanded|fieldsep|fieldsep_zero|footer|null|\n" - " numericlocale|recordsep|recordsep_zero|tuples_only|title|tableattr|pager|\n" - " unicode_border_linestyle|unicode_column_linestyle|unicode_header_linestyle})\n")); + " (NAME := {border|columns|expanded|fieldsep|fieldsep_zero|footer|format|\n" + " linestyle|null|numericlocale|pager|pager_min_lines|recordsep|recordsep_zero|\n" + " tableattr|title|tuples_only|unicode_border_linestyle|\n" + " unicode_column_linestyle|unicode_header_linestyle})\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")); -- 2.12.2.89.g49800c940 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs