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
61e2c00e
Commit
61e2c00e
authored
Jun 14, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have SHOW ALL include variable descriptions.
Matthias Schmidt
parent
cf48d8b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
16 deletions
+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
No files found.
doc/src/sgml/ref/show.sgml
View file @
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
View file @
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
);
...
...
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