aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2021-10-21 08:07:08 +0530
committerAmit Kapila <akapila@postgresql.org>2021-10-21 08:07:08 +0530
commit671eb8f34404d24c8f16ae40e94becb38afd93bb (patch)
tree3df6207a69227b3ab4ee5c894d7790e3bc9a1a89
parent5040c96415a062a1016e0a6b9a4dc9f26a7f356e (diff)
downloadpostgresql-671eb8f34404d24c8f16ae40e94becb38afd93bb.tar.gz
postgresql-671eb8f34404d24c8f16ae40e94becb38afd93bb.zip
Remove unused wait events.
Commit 464824323e introduced the wait events which were neither used by that commit nor by follow-up commits for that work. Author: Masahiro Ikeda Backpatch-through: 14, where it was introduced Discussion: https://postgr.es/m/ff077840-3ab2-04dd-bbe4-4f5dfd2ad481@oss.nttdata.com
-rw-r--r--doc/src/sgml/monitoring.sgml16
-rw-r--r--src/backend/utils/activity/wait_event.c12
-rw-r--r--src/include/utils/wait_event.h6
3 files changed, 1 insertions, 33 deletions
diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml
index 15e51f92680..7979536abb2 100644
--- a/doc/src/sgml/monitoring.sgml
+++ b/doc/src/sgml/monitoring.sgml
@@ -1549,22 +1549,6 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
<entry><literal>WALWrite</literal></entry>
<entry>Waiting for a write to a WAL file.</entry>
</row>
- <row>
- <entry><literal>LogicalChangesRead</literal></entry>
- <entry>Waiting for a read from a logical changes file.</entry>
- </row>
- <row>
- <entry><literal>LogicalChangesWrite</literal></entry>
- <entry>Waiting for a write to a logical changes file.</entry>
- </row>
- <row>
- <entry><literal>LogicalSubxactRead</literal></entry>
- <entry>Waiting for a read from a logical subxact file.</entry>
- </row>
- <row>
- <entry><literal>LogicalSubxactWrite</literal></entry>
- <entry>Waiting for a write to a logical subxact file.</entry>
- </row>
</tbody>
</tgroup>
</table>
diff --git a/src/backend/utils/activity/wait_event.c b/src/backend/utils/activity/wait_event.c
index 6baf67740c7..d34c4cbdd42 100644
--- a/src/backend/utils/activity/wait_event.c
+++ b/src/backend/utils/activity/wait_event.c
@@ -714,18 +714,6 @@ pgstat_get_wait_io(WaitEventIO w)
case WAIT_EVENT_WAL_WRITE:
event_name = "WALWrite";
break;
- case WAIT_EVENT_LOGICAL_CHANGES_READ:
- event_name = "LogicalChangesRead";
- break;
- case WAIT_EVENT_LOGICAL_CHANGES_WRITE:
- event_name = "LogicalChangesWrite";
- break;
- case WAIT_EVENT_LOGICAL_SUBXACT_READ:
- event_name = "LogicalSubxactRead";
- break;
- case WAIT_EVENT_LOGICAL_SUBXACT_WRITE:
- event_name = "LogicalSubxactWrite";
- break;
/* no default case, so that compiler will warn */
}
diff --git a/src/include/utils/wait_event.h b/src/include/utils/wait_event.h
index 6c6ec2e7118..8661ab51a3e 100644
--- a/src/include/utils/wait_event.h
+++ b/src/include/utils/wait_event.h
@@ -220,11 +220,7 @@ typedef enum
WAIT_EVENT_WAL_READ,
WAIT_EVENT_WAL_SYNC,
WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN,
- WAIT_EVENT_WAL_WRITE,
- WAIT_EVENT_LOGICAL_CHANGES_READ,
- WAIT_EVENT_LOGICAL_CHANGES_WRITE,
- WAIT_EVENT_LOGICAL_SUBXACT_READ,
- WAIT_EVENT_LOGICAL_SUBXACT_WRITE
+ WAIT_EVENT_WAL_WRITE
} WaitEventIO;