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

Commita6a0ae1

Browse files
author
Amit Kapila
committed
Revert "Remove unused wait events."
This reverts commit671eb8f. The removedwait events are used by some extensions and removal of these would force arecompile of those extensions. We don't want that for released branches.Discussion:https://postgr.es/m/E1mdOBY-0005j2-QL@gemulon.postgresql.org
1 parent181361a commita6a0ae1

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

‎doc/src/sgml/monitoring.sgml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,22 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
15491549
<entry><literal>WALWrite</literal></entry>
15501550
<entry>Waiting for a write to a WAL file.</entry>
15511551
</row>
1552+
<row>
1553+
<entry><literal>LogicalChangesRead</literal></entry>
1554+
<entry>Waiting for a read from a logical changes file.</entry>
1555+
</row>
1556+
<row>
1557+
<entry><literal>LogicalChangesWrite</literal></entry>
1558+
<entry>Waiting for a write to a logical changes file.</entry>
1559+
</row>
1560+
<row>
1561+
<entry><literal>LogicalSubxactRead</literal></entry>
1562+
<entry>Waiting for a read from a logical subxact file.</entry>
1563+
</row>
1564+
<row>
1565+
<entry><literal>LogicalSubxactWrite</literal></entry>
1566+
<entry>Waiting for a write to a logical subxact file.</entry>
1567+
</row>
15521568
</tbody>
15531569
</tgroup>
15541570
</table>

‎src/backend/utils/activity/wait_event.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,18 @@ pgstat_get_wait_io(WaitEventIO w)
714714
caseWAIT_EVENT_WAL_WRITE:
715715
event_name="WALWrite";
716716
break;
717+
caseWAIT_EVENT_LOGICAL_CHANGES_READ:
718+
event_name="LogicalChangesRead";
719+
break;
720+
caseWAIT_EVENT_LOGICAL_CHANGES_WRITE:
721+
event_name="LogicalChangesWrite";
722+
break;
723+
caseWAIT_EVENT_LOGICAL_SUBXACT_READ:
724+
event_name="LogicalSubxactRead";
725+
break;
726+
caseWAIT_EVENT_LOGICAL_SUBXACT_WRITE:
727+
event_name="LogicalSubxactWrite";
728+
break;
717729

718730
/* no default case, so that compiler will warn */
719731
}

‎src/include/utils/wait_event.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,11 @@ typedef enum
220220
WAIT_EVENT_WAL_READ,
221221
WAIT_EVENT_WAL_SYNC,
222222
WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN,
223-
WAIT_EVENT_WAL_WRITE
223+
WAIT_EVENT_WAL_WRITE,
224+
WAIT_EVENT_LOGICAL_CHANGES_READ,
225+
WAIT_EVENT_LOGICAL_CHANGES_WRITE,
226+
WAIT_EVENT_LOGICAL_SUBXACT_READ,
227+
WAIT_EVENT_LOGICAL_SUBXACT_WRITE
224228
}WaitEventIO;
225229

226230

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp