{"Entry":{"collection":"waitevent","key":"client/GssOpenServer","name":"GssOpenServer","aliases":["GSSOpenServer","GssOpenServer"],"metadata":{"aliases":["GSSOpenServer","GssOpenServer"],"changed_in":["13","17"],"changes":[{"from":"11","moved":null,"renamed":null,"reworded":null,"status":"added","to":"12"},{"from":"12","moved":null,"renamed":null,"reworded":{"from":"Waiting to read data from the client while establishing the GSSAPI session.","to":"Waiting to read data from the client while establishing a GSSAPI session."},"status":"changed","to":"13"},{"from":"16","moved":null,"renamed":{"from":"GSSOpenServer","to":"GssOpenServer"},"reworded":null,"status":"changed","to":"17"}],"content_hash":"e466d95853aac7b897ac3cf91a9091e317228318558c9776154bd6b075f5a102","dossier":{"actions":{"en":["Check state and transaction age before counting the wait as load.","Correlate with the owning application, pool, and network path.","Fix consumer backpressure or pool policy rather than repeatedly terminating connections."],"zh":["先看 state 与事务年龄，再决定它是否算负载。","关联负责的应用、连接池与网络路径。","修复消费者背压或连接池策略，不要反复终止连接。"]},"diagnostic_sql":[{"id":"sessions","min_version":"13","sql":"SELECT pid, backend_type, usename, datname, application_name,\n       state, now() - query_start AS query_age,\n       now() - xact_start AS xact_age,\n       wait_event_type, wait_event,\n       pg_blocking_pids(pid) AS blocking_pids,\n       left(query, 160) AS query\nFROM pg_stat_activity\nWHERE wait_event_type = 'Client'\n  AND wait_event = 'GssOpenServer'\nORDER BY query_age DESC NULLS LAST;","title":"Sessions waiting on Client/GssOpenServer","title_zh":"正在等待 Client/GssOpenServer 的会话"},{"id":"cohort","min_version":"13","sql":"SELECT wait_event, count(*) AS waiting_sessions,\n       count(*) FILTER (WHERE state = 'active') AS active_waiters,\n       max(now() - query_start) AS oldest_query\nFROM pg_stat_activity\nWHERE wait_event_type = 'Client'\nGROUP BY wait_event\nORDER BY waiting_sessions DESC, wait_event;","title":"Current Client cohort","title_zh":"当前 Client 等待分布"},{"id":"lock_objects","min_version":"13","sql":"SELECT a.pid, l.locktype, l.mode, l.granted, l.fastpath,\n       d.datname, n.nspname, c.relname,\n       l.page, l.tuple, l.virtualxid, l.transactionid,\n       l.classid, l.objid, l.objsubid\nFROM pg_stat_activity AS a\nLEFT JOIN pg_locks AS l ON l.pid = a.pid\nLEFT JOIN pg_database AS d ON d.oid = l.database\nLEFT JOIN pg_class AS c\n  ON c.oid = l.relation\n AND l.database = (\n       SELECT oid FROM pg_database WHERE datname = current_database()\n     )\nLEFT JOIN pg_namespace AS n ON n.oid = c.relnamespace\nWHERE a.wait_event_type = 'Client'\n  AND a.wait_event = 'GssOpenServer'\nORDER BY a.pid, l.granted, l.locktype, l.mode;","title":"Lock and relation context for these sessions","title_zh":"这些会话的锁与关系上下文"}],"emission":{"status":"active","verified_release":"18.6"},"gucs":["max_connections","idle_in_transaction_session_timeout"],"incident_pattern":{"en":"","zh":""},"mechanism":{"en":"`WAIT_EVENT_GSS_OPEN_SERVER` at `src/backend/libpq/be-secure-gssapi.c:461` is the grep-verified reporting path. The public identity/resource is mapped at `src/backend/utils/activity/wait_event.c:277`. The instrumented operation is: Waiting to read data from the client while establishing a GSSAPI session. The frontend protocol path reports GssOpenServer immediately before a socket, TLS/GSS, or replication-client operation blocks. PostgreSQL is waiting for the remote side or network to progress.","zh":"`WAIT_EVENT_GSS_OPEN_SERVER` 位于 `src/backend/libpq/be-secure-gssapi.c:461`，是经 grep 核验的报告路径。公共身份/资源映射位于 `src/backend/utils/activity/wait_event.c:277`。探针覆盖的操作是：建立 GSSAPI 会话时，等待从客户端读取数据。前端协议路径在套接字、TLS/GSS 或复制客户端操作即将阻塞前报告 GssOpenServer；PostgreSQL 正在等待远端或网络推进。"},"metrics":["waiting_sessions","wait_event_share","active_backends"],"normal":{"en":"Idle ClientRead sessions are normal connection-pool inventory.","zh":"空闲状态的 ClientRead 通常只是连接池存量。"},"official_descriptions":{"17":"Waiting to read data from the client while establishing a GSSAPI session","18":"Waiting to read data from the client while establishing a GSSAPI session"},"record_kind":"event","source_locations":[{"commit":"7d3e000c5961a544302072058a1184e9a588837b","excerpt":"port-\u003esock, 0, WAIT_EVENT_GSS_OPEN_SERVER);","grep_pattern":"WAIT_EVENT_GSS_OPEN_SERVER","grep_verified":true,"kind":"trigger","line":461,"major":16,"path":"src/backend/libpq/be-secure-gssapi.c","status":"live_trigger","symbol":"WAIT_EVENT_GSS_OPEN_SERVER","tag":"REL_16_15","url":"https://github.com/postgres/postgres/blob/REL_16_15/src/backend/libpq/be-secure-gssapi.c#L461","version":"16.15"},{"commit":"7d3e000c5961a544302072058a1184e9a588837b","excerpt":"event_name = \"GSSOpenServer\";","grep_pattern":"GSSOpenServer","grep_verified":true,"kind":"catalog_definition","line":277,"major":16,"path":"src/backend/utils/activity/wait_event.c","status":"live_trigger","symbol":"GSSOpenServer","tag":"REL_16_15","url":"https://github.com/postgres/postgres/blob/REL_16_15/src/backend/utils/activity/wait_event.c#L277","version":"16.15"},{"commit":"724edf9bde9d356724ad384a2e196edc3c9f80f7","excerpt":"port-\u003esock, 0, WAIT_EVENT_GSS_OPEN_SERVER);","grep_pattern":"WAIT_EVENT_GSS_OPEN_SERVER","grep_verified":true,"kind":"trigger","line":462,"major":18,"path":"src/backend/libpq/be-secure-gssapi.c","status":"live_trigger","symbol":"WAIT_EVENT_GSS_OPEN_SERVER","tag":"REL_18_6","url":"https://github.com/postgres/postgres/blob/REL_18_6/src/backend/libpq/be-secure-gssapi.c#L462","version":"18.6"},{"commit":"724edf9bde9d356724ad384a2e196edc3c9f80f7","excerpt":"GSS_OPEN_SERVER\t\"Waiting to read data from the client while establishing a GSSAPI session.\"","grep_pattern":"GSS_OPEN_SERVER","grep_verified":true,"kind":"catalog_definition","line":87,"major":18,"path":"src/backend/utils/activity/wait_event_names.txt","status":"live_trigger","symbol":"GSS_OPEN_SERVER","tag":"REL_18_6","url":"https://github.com/postgres/postgres/blob/REL_18_6/src/backend/utils/activity/wait_event_names.txt#L87","version":"18.6"}],"source_status":"live_trigger","trouble":{"en":"Investigate active writes, handshakes, old idle-in-transaction sessions, connection exhaustion, or replication-client stalls.","zh":"活动写入、握手、很老的 idle in transaction、连接耗尽或复制客户端停滞时需要调查。"}},"first_version":"12","has_dossier":true,"imported_at":"2026-09-27T17:57:32.517454+08:00","key":"client/gssopenserver","last_version":"20","name":"GssOpenServer","position":27,"present_in":["12","13","14","15","16","17","18","19","20"],"slug":"gss-open-server","source_rev":"english-manuals:ab759aa4e8885862507d431018a950db88ebed8d192105832a3dc8991a699198","summary":"Waiting to read data from the client while establishing a GSSAPI session.","summary_zh":"","type":"Client","type_slug":"client","type_variants":["Client"]}},"Definition":{"Collection":"waitevent","Key":"client/GssOpenServer","SourceDatabase":"center","Version":"18","SourceTable":"waitevent","SourceKey":"client/gssopenserver","SourceRevision":"english-manuals:ab759aa4e8885862507d431018a950db88ebed8d192105832a3dc8991a699198","Facts":{"description":"Waiting to read data from the client while establishing a GSSAPI session.","description_zh":"","doc":{"anchor":"WAIT-EVENT-CLIENT-TABLE","file":"monitoring-stats.html","lang":"en","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","slug":"18"},"lang":"en","name":"GssOpenServer","source":"english-manual","type":"Client","zh_from":""},"ManualEvidence":{"doc":{"anchor":"WAIT-EVENT-CLIENT-TABLE","file":"monitoring-stats.html","lang":"en","sha256":"aa979eed08627fbf715a9d792094a162a73671db5af810f3ab2aad3e073d5722","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"waitevent","Key":"client/GssOpenServer","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"GssOpenServer","Summary":"在建立GSSAPI会话时等待从客户端读取数据。","BodyHTML":"\u003cp\u003e在建立GSSAPI会话时等待从客户端读取数据。\u003c/p\u003e","SourceRevision":"2026-08-31@34d13c8","ContentHash":"583fa27304303e11eaf0c90fd74e9367a739a8d0a50746f12b1225615412918f","Payload":{"description_zh":"在建立GSSAPI会话时等待从客户端读取数据。","zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["12","13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
