Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f4ae722

Browse files
committed
Add description about GSSOpenServer wait event into document.
This commit also updates wait event enum into alphabetical order. Previously the enum entry for GSSOpenServer was added out-of-order. Back-patch to v12 where commit b0b39f7 introduced GSSOpenServer wait event. In v12, the commit doesn't include the update of wait event enum, not to break ABI. Author: Fujii Masao Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/949931aa-4ed4-d867-a7b5-de9c02b2292b@oss.nttdata.com
1 parent e593148 commit f4ae722

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

doc/src/sgml/monitoring.sgml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1293,14 +1293,18 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
12931293
<entry>Waiting in main loop of WAL writer process.</entry>
12941294
</row>
12951295
<row>
1296-
<entry morerows="7"><literal>Client</literal></entry>
1296+
<entry morerows="8"><literal>Client</literal></entry>
12971297
<entry><literal>ClientRead</literal></entry>
12981298
<entry>Waiting to read data from the client.</entry>
12991299
</row>
13001300
<row>
13011301
<entry><literal>ClientWrite</literal></entry>
13021302
<entry>Waiting to write data to the client.</entry>
13031303
</row>
1304+
<row>
1305+
<entry><literal>GSSOpenServer</literal></entry>
1306+
<entry>Waiting to read data from the client while establishing the GSSAPI session.</entry>
1307+
</row>
13041308
<row>
13051309
<entry><literal>LibPQWalReceiverConnect</literal></entry>
13061310
<entry>Waiting in WAL receiver to establish connection to remote server.</entry>

src/backend/postmaster/pgstat.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -3697,6 +3697,9 @@ pgstat_get_wait_client(WaitEventClient w)
36973697
case WAIT_EVENT_CLIENT_WRITE:
36983698
event_name = "ClientWrite";
36993699
break;
3700+
case WAIT_EVENT_GSS_OPEN_SERVER:
3701+
event_name = "GSSOpenServer";
3702+
break;
37003703
case WAIT_EVENT_LIBPQWALRECEIVER_CONNECT:
37013704
event_name = "LibPQWalReceiverConnect";
37023705
break;
@@ -3715,9 +3718,6 @@ pgstat_get_wait_client(WaitEventClient w)
37153718
case WAIT_EVENT_WAL_SENDER_WRITE_DATA:
37163719
event_name = "WalSenderWriteData";
37173720
break;
3718-
case WAIT_EVENT_GSS_OPEN_SERVER:
3719-
event_name = "GSSOpenServer";
3720-
break;
37213721
/* no default case, so that compiler will warn */
37223722
}
37233723

src/include/pgstat.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -799,13 +799,13 @@ typedef enum
799799
{
800800
WAIT_EVENT_CLIENT_READ = PG_WAIT_CLIENT,
801801
WAIT_EVENT_CLIENT_WRITE,
802+
WAIT_EVENT_GSS_OPEN_SERVER,
802803
WAIT_EVENT_LIBPQWALRECEIVER_CONNECT,
803804
WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE,
804805
WAIT_EVENT_SSL_OPEN_SERVER,
805806
WAIT_EVENT_WAL_RECEIVER_WAIT_START,
806807
WAIT_EVENT_WAL_SENDER_WAIT_WAL,
807808
WAIT_EVENT_WAL_SENDER_WRITE_DATA,
808-
WAIT_EVENT_GSS_OPEN_SERVER,
809809
} WaitEventClient;
810810

811811
/* ----------

0 commit comments

Comments
 (0)