Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
6deb649c
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6deb649c
编写于
8月 27, 2002
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add '+' mention in \? help. More clean of \? to do.
上级
ec114030
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
10 deletion
+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
未找到文件。
src/bin/psql/describe.c
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
"
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录