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
6390c8c6
Commit
6390c8c6
authored
Oct 04, 2015
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Group cluster_name and update_process_title settings together
parent
cf007a4b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
46 deletions
+64
-46
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+54
-43
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+4
-2
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+5
-1
src/include/utils/guc_tables.h
src/include/utils/guc_tables.h
+1
-0
No files found.
doc/src/sgml/config.sgml
View file @
6390c8c6
...
@@ -4394,30 +4394,6 @@ local0.* /var/log/postgresql
...
@@ -4394,30 +4394,6 @@ local0.* /var/log/postgresql
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry id="guc-cluster-name" xreflabel="cluster_name">
<term><varname>cluster_name</varname> (<type>string</type>)
<indexterm>
<primary><varname>cluster_name</> configuration parameter</primary>
</indexterm>
</term>
<listitem>
<para>
Sets the cluster name that appears in the process title for all
processes in this cluster. The name can be any string of less than
<symbol>NAMEDATALEN</> characters (64 characters in a standard
build). Only printable ASCII characters may be used in the
<varname>cluster_name</varname> value. Other characters will be
replaced with question marks (<literal>?</literal>). No name is shown
if this parameter is set to the empty string <literal>''</> (which is
the default). This parameter can only be set at server start.
</para>
<para>
The process title is typically viewed using programs like
<application>ps</> or, on Windows, <application>Process Explorer</>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry>
<term><varname>debug_print_parse</varname> (<type>boolean</type>)
<term><varname>debug_print_parse</varname> (<type>boolean</type>)
<indexterm>
<indexterm>
...
@@ -5010,9 +4986,61 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
...
@@ -5010,9 +4986,61 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
</listitem>
</listitem>
</orderedlist>
</orderedlist>
</para>
</para>
</sect2>
</sect2>
</sect1>
<sect2>
<title>Process Title</title>
<para>
These settings control how the process title as seen
by <command>ps</command> is modified. See <xref linkend="monitoring-ps">
for details.
</para>
<variablelist>
<varlistentry id="guc-cluster-name" xreflabel="cluster_name">
<term><varname>cluster_name</varname> (<type>string</type>)
<indexterm>
<primary><varname>cluster_name</> configuration parameter</primary>
</indexterm>
</term>
<listitem>
<para>
Sets the cluster name that appears in the process title for all
processes in this cluster. The name can be any string of less than
<symbol>NAMEDATALEN</> characters (64 characters in a standard
build). Only printable ASCII characters may be used in the
<varname>cluster_name</varname> value. Other characters will be
replaced with question marks (<literal>?</literal>). No name is shown
if this parameter is set to the empty string <literal>''</> (which is
the default). This parameter can only be set at server start.
</para>
<para>
The process title is typically viewed using programs like
<application>ps</> or, on Windows, <application>Process Explorer</>.
</para>
</listitem>
</varlistentry>
<varlistentry id="guc-update-process-title" xreflabel="update_process_title">
<term><varname>update_process_title</varname> (<type>boolean</type>)
<indexterm>
<primary><varname>update_process_title</> configuration parameter</primary>
</indexterm>
</term>
<listitem>
<para>
Enables updating of the process title every time a new SQL command
is received by the server. The process title is typically viewed
by the <command>ps</> command,
or in Windows by using the <application>Process Explorer</>.
Only superusers can change this setting.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>
<sect1 id="runtime-config-statistics">
<sect1 id="runtime-config-statistics">
<title>Run-time Statistics</title>
<title>Run-time Statistics</title>
...
@@ -5130,23 +5158,6 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
...
@@ -5130,23 +5158,6 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry id="guc-update-process-title" xreflabel="update_process_title">
<term><varname>update_process_title</varname> (<type>boolean</type>)
<indexterm>
<primary><varname>update_process_title</> configuration parameter</primary>
</indexterm>
</term>
<listitem>
<para>
Enables updating of the process title every time a new SQL command
is received by the server. The process title is typically viewed
by the <command>ps</> command,
or in Windows by using the <application>Process Explorer</>.
Only superusers can change this setting.
</para>
</listitem>
</varlistentry>
<varlistentry id="guc-stats-temp-directory" xreflabel="stats_temp_directory">
<varlistentry id="guc-stats-temp-directory" xreflabel="stats_temp_directory">
<term><varname>stats_temp_directory</varname> (<type>string</type>)
<term><varname>stats_temp_directory</varname> (<type>string</type>)
<indexterm>
<indexterm>
...
...
src/backend/utils/misc/guc.c
View file @
6390c8c6
...
@@ -580,6 +580,8 @@ const char *const config_group_names[] =
...
@@ -580,6 +580,8 @@ const char *const config_group_names[] =
gettext_noop
(
"Reporting and Logging / When to Log"
),
gettext_noop
(
"Reporting and Logging / When to Log"
),
/* LOGGING_WHAT */
/* LOGGING_WHAT */
gettext_noop
(
"Reporting and Logging / What to Log"
),
gettext_noop
(
"Reporting and Logging / What to Log"
),
/* PROCESS_TITLE */
gettext_noop
(
"Process Title"
),
/* STATS */
/* STATS */
gettext_noop
(
"Statistics"
),
gettext_noop
(
"Statistics"
),
/* STATS_MONITORING */
/* STATS_MONITORING */
...
@@ -1180,7 +1182,7 @@ static struct config_bool ConfigureNamesBool[] =
...
@@ -1180,7 +1182,7 @@ static struct config_bool ConfigureNamesBool[] =
},
},
{
{
{
"update_process_title"
,
PGC_SUSET
,
STATS_COLLECTOR
,
{
"update_process_title"
,
PGC_SUSET
,
PROCESS_TITLE
,
gettext_noop
(
"Updates the process title to show the active SQL command."
),
gettext_noop
(
"Updates the process title to show the active SQL command."
),
gettext_noop
(
"Enables updating of the process title every time a new SQL command is received by the server."
)
gettext_noop
(
"Enables updating of the process title every time a new SQL command is received by the server."
)
},
},
...
@@ -3395,7 +3397,7 @@ static struct config_string ConfigureNamesString[] =
...
@@ -3395,7 +3397,7 @@ static struct config_string ConfigureNamesString[] =
},
},
{
{
{
"cluster_name"
,
PGC_POSTMASTER
,
LOGGING_WHAT
,
{
"cluster_name"
,
PGC_POSTMASTER
,
PROCESS_TITLE
,
gettext_noop
(
"Sets the name of the cluster which is included in the process title."
),
gettext_noop
(
"Sets the name of the cluster which is included in the process title."
),
NULL
,
NULL
,
GUC_IS_NAME
GUC_IS_NAME
...
...
src/backend/utils/misc/postgresql.conf.sample
View file @
6390c8c6
...
@@ -447,8 +447,13 @@
...
@@ -447,8 +447,13 @@
# than the specified size in kilobytes;
# than the specified size in kilobytes;
# -1 disables, 0 logs all temp files
# -1 disables, 0 logs all temp files
#log_timezone = 'GMT'
#log_timezone = 'GMT'
# - Process Title -
#cluster_name = '' # added to process titles if nonempty
#cluster_name = '' # added to process titles if nonempty
# (change requires restart)
# (change requires restart)
#update_process_title = on
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
...
@@ -462,7 +467,6 @@
...
@@ -462,7 +467,6 @@
#track_io_timing = off
#track_io_timing = off
#track_functions = none # none, pl, all
#track_functions = none # none, pl, all
#track_activity_query_size = 1024 # (change requires restart)
#track_activity_query_size = 1024 # (change requires restart)
#update_process_title = on
#stats_temp_directory = 'pg_stat_tmp'
#stats_temp_directory = 'pg_stat_tmp'
...
...
src/include/utils/guc_tables.h
View file @
6390c8c6
...
@@ -81,6 +81,7 @@ enum config_group
...
@@ -81,6 +81,7 @@ enum config_group
LOGGING_WHERE
,
LOGGING_WHERE
,
LOGGING_WHEN
,
LOGGING_WHEN
,
LOGGING_WHAT
,
LOGGING_WHAT
,
PROCESS_TITLE
,
STATS
,
STATS
,
STATS_MONITORING
,
STATS_MONITORING
,
STATS_COLLECTOR
,
STATS_COLLECTOR
,
...
...
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