Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
61e2c00e
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,发现更多精彩内容 >>
提交
61e2c00e
编写于
6月 14, 2005
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Have SHOW ALL include variable descriptions.
Matthias Schmidt
上级
cf48d8b3
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
23 addition
and
16 deletion
+23
-16
doc/src/sgml/ref/show.sgml
doc/src/sgml/ref/show.sgml
+10
-10
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+13
-6
未找到文件。
doc/src/sgml/ref/show.sgml
浏览文件 @
61e2c00e
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/show.sgml,v 1.3
8 2005/04/08 00:59:58 neilc
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/show.sgml,v 1.3
9 2005/06/14 20:42:52 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -118,7 +118,7 @@ SHOW ALL
<term><literal>ALL</literal></term>
<listitem>
<para>
Show the values of all configuration parameters.
Show the values of all configuration parameters
, with descriptions
.
</para>
</listitem>
</varlistentry>
...
...
@@ -164,17 +164,17 @@ SHOW geqo;
Show all settings:
<programlisting>
SHOW ALL;
name |
setting
--------------------------------+----------------------------------------------
add_missing_from | off
archive_command | unset
australian_timezones | off
name |
setting | description
--------------------------------+--------------------------------
+--------------------------------------------------------------------------------
--------------
add_missing_from | off
| Automatically adds missing table references to FROM clauses.
archive_command | unset
| WAL archiving command.
australian_timezones | off
| Interprets ACST, CST, EST, and SAT as Australian time zones.
.
.
.
work_mem | 1024
zero_damaged_pages | off
(14
0
rows)
work_mem | 1024
| Sets the maximum memory to be used for query workspaces.
zero_damaged_pages | off
| Continues processing past damaged page headers.
(14
6
rows)
</programlisting>
</para>
</refsect1>
...
...
src/backend/utils/misc/guc.c
浏览文件 @
61e2c00e
...
...
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.26
5 2005/06/14 17:43:1
3 momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.26
6 2005/06/14 20:42:5
3 momjian Exp $
*
*--------------------------------------------------------------------
*/
...
...
@@ -4337,12 +4337,15 @@ GetPGVariableResultDesc(const char *name)
if
(
pg_strcasecmp
(
name
,
"all"
)
==
0
)
{
/* need a tuple descriptor representing t
wo
TEXT columns */
tupdesc
=
CreateTemplateTupleDesc
(
2
,
false
);
/* need a tuple descriptor representing t
hree
TEXT columns */
tupdesc
=
CreateTemplateTupleDesc
(
3
,
false
);
TupleDescInitEntry
(
tupdesc
,
(
AttrNumber
)
1
,
"name"
,
TEXTOID
,
-
1
,
0
);
TupleDescInitEntry
(
tupdesc
,
(
AttrNumber
)
2
,
"setting"
,
TEXTOID
,
-
1
,
0
);
TupleDescInitEntry
(
tupdesc
,
(
AttrNumber
)
3
,
"description"
,
TEXTOID
,
-
1
,
0
);
}
else
{
...
...
@@ -4415,14 +4418,17 @@ ShowAllGUCConfig(DestReceiver *dest)
int
i
;
TupOutputState
*
tstate
;
TupleDesc
tupdesc
;
char
*
values
[
2
];
char
*
values
[
3
];
/* need a tuple descriptor representing t
wo
TEXT columns */
tupdesc
=
CreateTemplateTupleDesc
(
2
,
false
);
/* need a tuple descriptor representing t
hree
TEXT columns */
tupdesc
=
CreateTemplateTupleDesc
(
3
,
false
);
TupleDescInitEntry
(
tupdesc
,
(
AttrNumber
)
1
,
"name"
,
TEXTOID
,
-
1
,
0
);
TupleDescInitEntry
(
tupdesc
,
(
AttrNumber
)
2
,
"setting"
,
TEXTOID
,
-
1
,
0
);
TupleDescInitEntry
(
tupdesc
,
(
AttrNumber
)
3
,
"description"
,
TEXTOID
,
-
1
,
0
);
/* prepare for projection of tuples */
tstate
=
begin_tup_output_tupdesc
(
dest
,
tupdesc
);
...
...
@@ -4438,6 +4444,7 @@ ShowAllGUCConfig(DestReceiver *dest)
/* assign to the values array */
values
[
0
]
=
(
char
*
)
conf
->
name
;
values
[
1
]
=
_ShowOption
(
conf
);
values
[
2
]
=
(
char
*
)
conf
->
short_desc
;
/* send it to dest */
do_tup_output
(
tstate
,
values
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录