Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
719a1158
Commit
719a1158
authored
16 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Reorgnize psql \? help output, to reduce the size of the "General"
heading at the top; broken into more sections now.
parent
210faf2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bin/psql/help.c
+27
-24
27 additions, 24 deletions
src/bin/psql/help.c
with
27 additions
and
24 deletions
src/bin/psql/help.c
+
27
−
24
View file @
719a1158
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.12
6
2008/0
4/04 18:0
0:2
5
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.12
7
2008/0
5/14 15:3
0:2
2
momjian Exp $
*/
*/
#include
"postgres_fe.h"
#include
"postgres_fe.h"
...
@@ -160,7 +160,7 @@ slashUsage(unsigned short int pager)
...
@@ -160,7 +160,7 @@ slashUsage(unsigned short int pager)
{
{
FILE
*
output
;
FILE
*
output
;
output
=
PageOutput
(
69
,
pager
);
output
=
PageOutput
(
78
,
pager
);
/* if you add/remove a line here, change the row count above */
/* if you add/remove a line here, change the row count above */
...
@@ -169,25 +169,9 @@ slashUsage(unsigned short int pager)
...
@@ -169,25 +169,9 @@ slashUsage(unsigned short int pager)
* in 80 columns >> "
* in 80 columns >> "
*/
*/
fprintf
(
output
,
_
(
"General
\n
"
));
fprintf
(
output
,
_
(
"General
\n
"
));
fprintf
(
output
,
_
(
"
\\
c[onnect] [DBNAME|- USER|- HOST|- PORT|-]
\n
"
" connect to new database (currently
\"
%s
\"
)
\n
"
),
PQdb
(
pset
.
db
));
fprintf
(
output
,
_
(
"
\\
cd [DIR] change the current working directory
\n
"
));
fprintf
(
output
,
_
(
"
\\
copyright show PostgreSQL usage and distribution terms
\n
"
));
fprintf
(
output
,
_
(
"
\\
copyright show PostgreSQL usage and distribution terms
\n
"
));
fprintf
(
output
,
_
(
"
\\
encoding [ENCODING]
\n
"
" show or set client encoding
\n
"
));
fprintf
(
output
,
_
(
"
\\
h [NAME] help on syntax of SQL commands, * for all commands
\n
"
));
fprintf
(
output
,
_
(
"
\\
h [NAME] help on syntax of SQL commands, * for all commands
\n
"
));
fprintf
(
output
,
_
(
"
\\
prompt [TEXT] NAME
\n
"
" prompt user to set internal variable
\n
"
));
fprintf
(
output
,
_
(
"
\\
password [USERNAME]
\n
"
" securely change the password for a user
\n
"
));
fprintf
(
output
,
_
(
"
\\
q quit psql
\n
"
));
fprintf
(
output
,
_
(
"
\\
q quit psql
\n
"
));
fprintf
(
output
,
_
(
"
\\
set [NAME [VALUE]]
\n
"
" set internal variable, or list all if no parameters
\n
"
));
fprintf
(
output
,
_
(
"
\\
timing toggle timing of commands (currently %s)
\n
"
),
ON
(
pset
.
timing
));
fprintf
(
output
,
_
(
"
\\
unset NAME unset (delete) internal variable
\n
"
));
fprintf
(
output
,
_
(
"
\\
! [COMMAND] execute command in shell or start interactive shell
\n
"
));
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
_
(
"Query Buffer
\n
"
));
fprintf
(
output
,
_
(
"Query Buffer
\n
"
));
...
@@ -202,11 +186,11 @@ slashUsage(unsigned short int pager)
...
@@ -202,11 +186,11 @@ slashUsage(unsigned short int pager)
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
_
(
"Input/Output
\n
"
));
fprintf
(
output
,
_
(
"Input/Output
\n
"
));
fprintf
(
output
,
_
(
"
\\
copy ... perform SQL COPY with data stream to the client host
\n
"
));
fprintf
(
output
,
_
(
"
\\
echo [STRING] write string to standard output
\n
"
));
fprintf
(
output
,
_
(
"
\\
echo [STRING] write string to standard output
\n
"
));
fprintf
(
output
,
_
(
"
\\
i FILE execute commands from file
\n
"
));
fprintf
(
output
,
_
(
"
\\
i FILE execute commands from file
\n
"
));
fprintf
(
output
,
_
(
"
\\
o [FILE] send all query results to file or |pipe
\n
"
));
fprintf
(
output
,
_
(
"
\\
o [FILE] send all query results to file or |pipe
\n
"
));
fprintf
(
output
,
_
(
"
\\
qecho [STRING]
\n
"
fprintf
(
output
,
_
(
"
\\
qecho [STRING] write string to query output stream (see
\\
o)
\n
"
));
" write string to query output stream (see
\\
o)
\n
"
));
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
_
(
"Informational
\n
"
));
fprintf
(
output
,
_
(
"Informational
\n
"
));
...
@@ -241,8 +225,7 @@ slashUsage(unsigned short int pager)
...
@@ -241,8 +225,7 @@ slashUsage(unsigned short int pager)
fprintf
(
output
,
_
(
"
\\
f [STRING] show or set field separator for unaligned query output
\n
"
));
fprintf
(
output
,
_
(
"
\\
f [STRING] show or set field separator for unaligned query output
\n
"
));
fprintf
(
output
,
_
(
"
\\
H toggle HTML output mode (currently %s)
\n
"
),
fprintf
(
output
,
_
(
"
\\
H toggle HTML output mode (currently %s)
\n
"
),
ON
(
pset
.
popt
.
topt
.
format
==
PRINT_HTML
));
ON
(
pset
.
popt
.
topt
.
format
==
PRINT_HTML
));
fprintf
(
output
,
_
(
"
\\
pset NAME [VALUE]
\n
"
fprintf
(
output
,
_
(
"
\\
pset NAME [VALUE] set table output option
\n
"
" set table output option
\n
"
" (NAME := {format|border|expanded|fieldsep|footer|null|
\n
"
" (NAME := {format|border|expanded|fieldsep|footer|null|
\n
"
" numericlocale|recordsep|tuples_only|title|tableattr|pager})
\n
"
));
" numericlocale|recordsep|tuples_only|title|tableattr|pager})
\n
"
));
fprintf
(
output
,
_
(
"
\\
t show only rows (currently %s)
\n
"
),
fprintf
(
output
,
_
(
"
\\
t show only rows (currently %s)
\n
"
),
...
@@ -252,8 +235,28 @@ slashUsage(unsigned short int pager)
...
@@ -252,8 +235,28 @@ slashUsage(unsigned short int pager)
ON
(
pset
.
popt
.
topt
.
expanded
));
ON
(
pset
.
popt
.
topt
.
expanded
));
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
_
(
"Copy, Large Object
\n
"
));
fprintf
(
output
,
_
(
"Connection
\n
"
));
fprintf
(
output
,
_
(
"
\\
copy ... perform SQL COPY with data stream to the client host
\n
"
));
fprintf
(
output
,
_
(
"
\\
c[onnect] [DBNAME|- USER|- HOST|- PORT|-]
\n
"
" connect to new database (currently
\"
%s
\"
)
\n
"
),
PQdb
(
pset
.
db
));
fprintf
(
output
,
_
(
"
\\
encoding [ENCODING] show or set client encoding
\n
"
));
fprintf
(
output
,
_
(
"
\\
password [USERNAME] securely change the password for a user
\n
"
));
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
_
(
"External
\n
"
));
fprintf
(
output
,
_
(
"
\\
cd [DIR] change the current working directory
\n
"
));
fprintf
(
output
,
_
(
"
\\
timing toggle timing of commands (currently %s)
\n
"
),
ON
(
pset
.
timing
));
fprintf
(
output
,
_
(
"
\\
! [COMMAND] execute command in shell or start interactive shell
\n
"
));
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
_
(
"Variable
\n
"
));
fprintf
(
output
,
_
(
"
\\
prompt [TEXT] NAME prompt user to set internal variable
\n
"
));
fprintf
(
output
,
_
(
"
\\
set [NAME [VALUE]] set internal variable, or list all if no parameters
\n
"
));
fprintf
(
output
,
_
(
"
\\
unset NAME unset (delete) internal variable
\n
"
));
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
_
(
"Large Object
\n
"
));
fprintf
(
output
,
_
(
"
\\
lo_export LOBOID FILE
\n
"
fprintf
(
output
,
_
(
"
\\
lo_export LOBOID FILE
\n
"
"
\\
lo_import FILE [COMMENT]
\n
"
"
\\
lo_import FILE [COMMENT]
\n
"
"
\\
lo_list
\n
"
"
\\
lo_list
\n
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment