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
a65023e7
Commit
a65023e7
authored
Jan 20, 2012
by
Magnus Hagander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further doc cleanups from the pg_stat_activity changes
Fujii Masao
parent
6e3323d4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
doc/src/sgml/catalogs.sgml
doc/src/sgml/catalogs.sgml
+1
-1
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+2
-2
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+1
-1
doc/src/sgml/monitoring.sgml
doc/src/sgml/monitoring.sgml
+3
-3
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+1
-1
No files found.
doc/src/sgml/catalogs.sgml
View file @
a65023e7
...
...
@@ -7320,7 +7320,7 @@
<para>
The <structfield>pid</structfield> column can be joined to the
<structfield>p
rocp
id</structfield> column of the
<structfield>pid</structfield> column of the
<structname>pg_stat_activity</structname> view to get more
information on the session holding or waiting to hold each lock.
Also, if you are using prepared transactions, the
...
...
doc/src/sgml/config.sgml
View file @
a65023e7
...
...
@@ -3857,7 +3857,7 @@ local0.* /var/log/postgresql
identifier from <literal>pg_stat_activity</>, use this query:
<programlisting>
SELECT to_hex(EXTRACT(EPOCH FROM backend_start)::integer) || '.' ||
to_hex(p
rocp
id)
to_hex(pid)
FROM pg_stat_activity;
</programlisting>
...
...
@@ -4153,7 +4153,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
<para>
Specifies the number of bytes reserved to track the currently
executing command for each active session, for the
<structname>pg_stat_activity</>.<structfield>
current_
query</> field.
<structname>pg_stat_activity</>.<structfield>query</> field.
The default value is 1024. This parameter can only be set at server
start.
</para>
...
...
doc/src/sgml/func.sgml
View file @
a65023e7
...
...
@@ -14322,7 +14322,7 @@ SELECT set_config('log_statement_stats', 'off', false);
send signals (
<systemitem>
SIGINT
</>
or
<systemitem>
SIGTERM
</>
respectively) to backend processes identified by process ID.
The process ID of an active backend can be found from
the
<structfield>
p
rocp
id
</structfield>
column of the
the
<structfield>
pid
</structfield>
column of the
<structname>
pg_stat_activity
</structname>
view, or by listing the
<command>
postgres
</command>
processes on the server (using
<application>
ps
</>
on Unix or the
<application>
Task
...
...
doc/src/sgml/monitoring.sgml
View file @
a65023e7
...
...
@@ -1462,8 +1462,8 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
example, to show the <acronym>PID</>s and current queries of all server processes:
<programlisting>
SELECT pg_stat_get_backend_pid(s.backendid) AS p
rocp
id,
pg_stat_get_backend_activity(s.backendid) AS
current_
query
SELECT pg_stat_get_backend_pid(s.backendid) AS pid,
pg_stat_get_backend_activity(s.backendid) AS query
FROM (SELECT pg_stat_get_backend_idset() AS backendid) AS s;
</programlisting>
</para>
...
...
@@ -1670,7 +1670,7 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS procpid,
<entry>statement-status</entry>
<entry>(const char *)</entry>
<entry>Probe that fires anytime the server process updates its
<structname>pg_stat_activity</>.<structfield>
current_query</> status
.
<structname>pg_stat_activity</>.<structfield>
status</>
.
arg0 is the new status string.</entry>
</row>
<row>
...
...
src/backend/utils/misc/guc.c
View file @
a65023e7
...
...
@@ -2362,7 +2362,7 @@ static struct config_int ConfigureNamesInt[] =
{
{
"track_activity_query_size"
,
PGC_POSTMASTER
,
RESOURCES_MEM
,
gettext_noop
(
"Sets the size reserved for pg_stat_activity.
current_
query, in bytes."
),
gettext_noop
(
"Sets the size reserved for pg_stat_activity.query, in bytes."
),
NULL
,
},
&
pgstat_track_activity_query_size
,
...
...
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