Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita65023e

Browse files
committed
Further doc cleanups from the pg_stat_activity changes
Fujii Masao
1 parent6e3323d commita65023e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

‎doc/src/sgml/catalogs.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7320,7 +7320,7 @@
73207320

73217321
<para>
73227322
The <structfield>pid</structfield> column can be joined to the
7323-
<structfield>procpid</structfield> column of the
7323+
<structfield>pid</structfield> column of the
73247324
<structname>pg_stat_activity</structname> view to get more
73257325
information on the session holding or waiting to hold each lock.
73267326
Also, if you are using prepared transactions, the

‎doc/src/sgml/config.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3857,7 +3857,7 @@ local0.* /var/log/postgresql
38573857
identifier from <literal>pg_stat_activity</>, use this query:
38583858
<programlisting>
38593859
SELECT to_hex(EXTRACT(EPOCH FROM backend_start)::integer) || '.' ||
3860-
to_hex(procpid)
3860+
to_hex(pid)
38613861
FROM pg_stat_activity;
38623862
</programlisting>
38633863

@@ -4153,7 +4153,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
41534153
<para>
41544154
Specifies the number of bytes reserved to track the currently
41554155
executing command for each active session, for the
4156-
<structname>pg_stat_activity</>.<structfield>current_query</> field.
4156+
<structname>pg_stat_activity</>.<structfield>query</> field.
41574157
The default value is 1024. This parameter can only be set at server
41584158
start.
41594159
</para>

‎doc/src/sgml/func.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14322,7 +14322,7 @@ SELECT set_config('log_statement_stats', 'off', false);
1432214322
send signals (<systemitem>SIGINT</> or <systemitem>SIGTERM</>
1432314323
respectively) to backend processes identified by process ID.
1432414324
The process ID of an active backend can be found from
14325-
the <structfield>procpid</structfield> column of the
14325+
the <structfield>pid</structfield> column of the
1432614326
<structname>pg_stat_activity</structname> view, or by listing the
1432714327
<command>postgres</command> processes on the server (using
1432814328
<application>ps</> on Unix or the <application>Task

‎doc/src/sgml/monitoring.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,8 +1462,8 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
14621462
example, to show the <acronym>PID</>s and current queries of all server processes:
14631463

14641464
<programlisting>
1465-
SELECT pg_stat_get_backend_pid(s.backendid) ASprocpid,
1466-
pg_stat_get_backend_activity(s.backendid) AScurrent_query
1465+
SELECT pg_stat_get_backend_pid(s.backendid) ASpid,
1466+
pg_stat_get_backend_activity(s.backendid) ASquery
14671467
FROM (SELECT pg_stat_get_backend_idset() AS backendid) AS s;
14681468
</programlisting>
14691469
</para>
@@ -1670,7 +1670,7 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS procpid,
16701670
<entry>statement-status</entry>
16711671
<entry>(const char *)</entry>
16721672
<entry>Probe that fires anytime the server process updates its
1673-
<structname>pg_stat_activity</>.<structfield>current_query</> status.
1673+
<structname>pg_stat_activity</>.<structfield>status</>.
16741674
arg0 is the new status string.</entry>
16751675
</row>
16761676
<row>

‎src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,7 @@ static struct config_int ConfigureNamesInt[] =
23622362

23632363
{
23642364
{"track_activity_query_size",PGC_POSTMASTER,RESOURCES_MEM,
2365-
gettext_noop("Sets the size reserved for pg_stat_activity.current_query, in bytes."),
2365+
gettext_noop("Sets the size reserved for pg_stat_activity.query, in bytes."),
23662366
NULL,
23672367
},
23682368
&pgstat_track_activity_query_size,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp