Revert "Remove unused wait events."
authorAmit Kapila
Tue, 26 Oct 2021 02:49:33 +0000 (08:19 +0530)
committerAmit Kapila
Tue, 26 Oct 2021 02:49:33 +0000 (08:19 +0530)
This reverts commit 671eb8f34404d24c8f16ae40e94becb38afd93bb. The removed
wait events are used by some extensions and removal of these would force a
recompile of those extensions. We don't want that for released branches.

Discussion: https://postgr.es/m/[email protected]

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

index 7979536abb24cd63cf87785503d9e896ae16c54c..15e51f926803a76c9e6811d6ffbe69ff22f639c5 100644 (file)
@@ -1549,6 +1549,22 @@ 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 d34c4cbdd42c96e37df40317883fd412c87c5592..6baf67740c7dd4823554abc27697ee00cd210340 100644 (file)
@@ -714,6 +714,18 @@ 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 8661ab51a3ef3a897f483503c7dfae51d664d6f8..6c6ec2e7118fa35c846bfd580a837e00b31f1ab7 100644 (file)
@@ -220,7 +220,11 @@ typedef enum
    WAIT_EVENT_WAL_READ,
    WAIT_EVENT_WAL_SYNC,
    WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN,
-   WAIT_EVENT_WAL_WRITE
+   WAIT_EVENT_WAL_WRITE,
+   WAIT_EVENT_LOGICAL_CHANGES_READ,
+   WAIT_EVENT_LOGICAL_CHANGES_WRITE,
+   WAIT_EVENT_LOGICAL_SUBXACT_READ,
+   WAIT_EVENT_LOGICAL_SUBXACT_WRITE
 } WaitEventIO;