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
6deb649c
Commit
6deb649c
authored
Aug 27, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add '+' mention in \? help. More clean of \? to do.
parent
ec114030
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
src/bin/psql/describe.c
src/bin/psql/describe.c
+3
-3
src/bin/psql/describe.h
src/bin/psql/describe.h
+2
-2
src/bin/psql/help.c
src/bin/psql/help.c
+5
-5
No files found.
src/bin/psql/describe.c
View file @
6deb649c
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000-2002 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.6
4 2002/08/24 15:00:46 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.6
5 2002/08/27 18:28:28 momjian
Exp $
*/
#include "postgres_fe.h"
#include "describe.h"
...
...
@@ -293,7 +293,7 @@ describeOperators(const char *pattern)
* for \l, \list, and -l switch
*/
bool
listAllDbs
(
bool
desc
)
listAllDbs
(
bool
verbose
)
{
PGresult
*
res
;
PQExpBufferData
buf
;
...
...
@@ -310,7 +310,7 @@ listAllDbs(bool desc)
",
\n
pg_catalog.pg_encoding_to_char(d.encoding) as
\"
%s
\"
"
,
_
(
"Encoding"
));
#endif
if
(
desc
)
if
(
verbose
)
appendPQExpBuffer
(
&
buf
,
",
\n
pg_catalog.obj_description(d.oid, 'pg_database') as
\"
%s
\"
"
,
_
(
"Description"
));
...
...
src/bin/psql/describe.h
View file @
6deb649c
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000-2002 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/describe.h,v 1.1
7 2002/08/10 03:56:24 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/describe.h,v 1.1
8 2002/08/27 18:28:29 momjian
Exp $
*/
#ifndef DESCRIBE_H
#define DESCRIBE_H
...
...
@@ -35,7 +35,7 @@ bool objectDescription(const char *pattern);
bool
describeTableDetails
(
const
char
*
pattern
,
bool
verbose
);
/* \l */
bool
listAllDbs
(
bool
desc
);
bool
listAllDbs
(
bool
verbose
);
/* \dt, \di, \ds, \dS, etc. */
bool
listTables
(
const
char
*
tabtypes
,
const
char
*
pattern
,
bool
verbose
);
...
...
src/bin/psql/help.c
View file @
6deb649c
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.5
4 2002/08/10 19:35:01 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.5
5 2002/08/27 18:28:29 momjian
Exp $
*/
#include "postgres_fe.h"
#include "print.h"
...
...
@@ -211,17 +211,17 @@ slashUsage(bool pager)
fprintf
(
output
,
_
(
"
\\
cd [DIR] change the current working directory
\n
"
));
fprintf
(
output
,
_
(
"
\\
copy ... perform SQL COPY with data stream to the client host
\n
"
));
fprintf
(
output
,
_
(
"
\\
copyright show PostgreSQL usage and distribution terms
\n
"
));
fprintf
(
output
,
_
(
"
\\
d [NAME] describe table
(or view, index, sequence)
\n
"
));
fprintf
(
output
,
_
(
"
\\
d{t|i|s|v|S} [PATTERN]
\n
"
));
fprintf
(
output
,
_
(
"
\\
d [NAME] describe table
, index, sequence, or view
\n
"
));
fprintf
(
output
,
_
(
"
\\
d{t|i|s|v|S} [PATTERN]
(add '+' for more detail)
\n
"
));
fprintf
(
output
,
_
(
" list tables/indexes/sequences/views/system tables
\n
"
));
fprintf
(
output
,
_
(
"
\\
da [PATTERN] list aggregate functions
\n
"
));
fprintf
(
output
,
_
(
"
\\
dd [PATTERN] show comment for object
\n
"
));
fprintf
(
output
,
_
(
"
\\
dD [PATTERN] list domains
\n
"
));
fprintf
(
output
,
_
(
"
\\
df [PATTERN] list functions
\n
"
));
fprintf
(
output
,
_
(
"
\\
df [PATTERN] list functions
(add '+' for more detail)
\n
"
));
fprintf
(
output
,
_
(
"
\\
do [NAME] list operators
\n
"
));
fprintf
(
output
,
_
(
"
\\
dl list large objects, same as lo_list
\n
"
));
fprintf
(
output
,
_
(
"
\\
dp [PATTERN] list table access privileges
\n
"
));
fprintf
(
output
,
_
(
"
\\
dT [PATTERN] list data types
\n
"
));
fprintf
(
output
,
_
(
"
\\
dT [PATTERN] list data types
(add '+' for more detail)
\n
"
));
fprintf
(
output
,
_
(
"
\\
du [PATTERN] list users
\n
"
));
fprintf
(
output
,
_
(
"
\\
e [FILE] edit the query buffer (or file) with external editor
\n
"
));
fprintf
(
output
,
_
(
"
\\
echo [STRING] write string to standard output
\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