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