Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
842f4bcf
Commit
842f4bcf
authored
Mar 25, 2009
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In the \? output, align the columns consistently.
parent
3e903466
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
73 deletions
+69
-73
src/bin/psql/help.c
src/bin/psql/help.c
+69
-73
No files found.
src/bin/psql/help.c
View file @
842f4bcf
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.14
2 2009/03/24 12:57:31
petere Exp $
* $PostgreSQL: pgsql/src/bin/psql/help.c,v 1.14
3 2009/03/25 13:14:17
petere Exp $
*/
#include "postgres_fe.h"
...
...
@@ -85,7 +85,7 @@ usage(void)
printf
(
_
(
"psql is the PostgreSQL interactive terminal.
\n\n
"
));
printf
(
_
(
"Usage:
\n
"
));
printf
(
_
(
" psql [OPTION
S
]... [DBNAME [USERNAME]]
\n\n
"
));
printf
(
_
(
" psql [OPTION]... [DBNAME [USERNAME]]
\n\n
"
));
printf
(
_
(
"General options:
\n
"
));
/* Display default database */
...
...
@@ -166,10 +166,6 @@ slashUsage(unsigned short int pager)
/* if you add/remove a line here, change the row count above */
/*
* if this " is the start of the string then it ought to end there to fit
* in 80 columns >> "
*/
fprintf
(
output
,
_
(
"General
\n
"
));
fprintf
(
output
,
_
(
"
\\
copyright show PostgreSQL usage and distribution terms
\n
"
));
fprintf
(
output
,
_
(
"
\\
g [FILE] or ; execute query (and send results to file or |pipe)
\n
"
));
...
...
@@ -196,8 +192,7 @@ slashUsage(unsigned short int pager)
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
_
(
"Informational
\n
"
));
fprintf
(
output
,
_
(
" Modifiers: S = show system objects + = Additional detail
\n
"
));
fprintf
(
output
,
_
(
"
\\
l[+] list all databases
\n
"
));
fprintf
(
output
,
_
(
" (options: S = show system objects, + = additional detail)
\n
"
));
fprintf
(
output
,
_
(
"
\\
d[S+] list tables, views, and sequences
\n
"
));
fprintf
(
output
,
_
(
"
\\
d[S+] NAME describe table, view, sequence, or index
\n
"
));
fprintf
(
output
,
_
(
"
\\
da[S] [PATTERN] list aggregate functions
\n
"
));
...
...
@@ -220,12 +215,13 @@ slashUsage(unsigned short int pager)
fprintf
(
output
,
_
(
"
\\
dn[+] [PATTERN] list schemas
\n
"
));
fprintf
(
output
,
_
(
"
\\
do[S] [PATTERN] list operators
\n
"
));
fprintf
(
output
,
_
(
"
\\
dp [PATTERN] list table, view, and sequence access privileges
\n
"
));
fprintf
(
output
,
_
(
"
\\
z [PATTERN] same as
\\
dp
\n
"
));
fprintf
(
output
,
_
(
"
\\
ds[S+] [PATTERN] list sequences
\n
"
));
fprintf
(
output
,
_
(
"
\\
dt[S+] [PATTERN] list tables
\n
"
));
fprintf
(
output
,
_
(
"
\\
dT[S+] [PATTERN] list data types
\n
"
));
fprintf
(
output
,
_
(
"
\\
du [PATTERN] list roles (users)
\n
"
));
fprintf
(
output
,
_
(
"
\\
dv[S+] [PATTERN] list views
\n
"
));
fprintf
(
output
,
_
(
"
\\
l[+] list all databases
\n
"
));
fprintf
(
output
,
_
(
"
\\
z [PATTERN] same as
\\
dp
\n
"
));
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
_
(
"Formatting
\n
"
));
...
...
@@ -252,20 +248,20 @@ slashUsage(unsigned short int pager)
fprintf
(
output
,
_
(
"
\\
password [USERNAME] securely change the password for a user
\n
"
));
fprintf
(
output
,
"
\n
"
);
fprintf
(
output
,
_
(
"
External
\n
"
));
fprintf
(
output
,
_
(
"
Operating System
\n
"
));
fprintf
(
output
,
_
(
"
\\
cd [DIR] change the current working directory
\n
"
));
fprintf
(
output
,
_
(
"
\\
timing [on|off] 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
,
_
(
"Variable
s
\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
,
_
(
"Large Object
s
\n
"
));
fprintf
(
output
,
_
(
"
\\
lo_export LOBOID FILE
\n
"
"
\\
lo_import FILE [COMMENT]
\n
"
"
\\
lo_list
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment