Remove unused wait events.
authorAmit Kapila
Thu, 21 Oct 2021 02:31:25 +0000 (08:01 +0530)
committerAmit Kapila
Thu, 21 Oct 2021 02:31:25 +0000 (08:01 +0530)
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

doc/src/sgml/monitoring.sgml
src/backend/utils/activity/wait_event.c
src/include/utils/wait_event.h

index 7355835202cb977c70933b001f51424038a58827..3173ec25660606045949a33edc700b28c5d0c3b8 100644 (file)
@@ -1549,22 +1549,6 @@ postgres   27093  0.0  0.0  30096  2752 ?        Ss   11:34   0:00 postgres: ser
       WALWrite
       Waiting for a write to a WAL file.
      
-     
-      LogicalChangesRead
-      Waiting for a read from a logical changes file.
-     
-     
-      LogicalChangesWrite
-      Waiting for a write to a logical changes file.
-     
-     
-      LogicalSubxactRead
-      Waiting for a read from a logical subxact file.
-     
-     
-      LogicalSubxactWrite
-      Waiting for a write to a logical subxact file.
-     
     
    
   
index ef7e6bfb779ffa05980304ad5f3a7a976a3c7d85..4a5b7502f5e28dce8b224622c8bdf2d6d3893135 100644 (file)
@@ -717,18 +717,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 */
    }
index 6007827b44588a176c0e66f18df5affe366e007a..c22142365f15cb4816c991c95cff99844c8d7f58 100644 (file)
@@ -221,11 +221,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;