{"Entry":{"collection":"guc","key":"ssl_sni","name":"ssl_sni","aliases":[],"metadata":{"baseline":false,"boot_human":"Not specified","boot_val":null,"category":"Connections and Authentication / SSL","category_zh":"","changed_in":[],"changes":[{"documentation_changed":false,"fields":{},"from":"18","status":"added","to":"19"}],"content_hash":"f6396c00af94236fb4c2db5e2d2c8c9ccecef4a806c0913e818a4ade5a1b639e","context":"","default_changed_in":[],"default_history":[{"from":"19","to":"19","value":"off"}],"derived_content_hash":"0b5fcf6ae090dafa7308526bc762ed8a1491228c634b2bd2748a23fa7cf53f43","editorial":{"advice":{"olap":"Apply the same security policy to batch drivers and long-lived ETL connections. Test clients that omit SNI, credential-expiry automation, reload behavior, and certificate-chain compatibility.","oltp":"Roll out through staged clients, validate certificate selection and expiry warnings, and monitor authentication failures. Keep a tested fallback and treat file permissions and secret rotation as part of the same change.","small":"Prefer a simple, documented TLS and credential policy. Do not enable multi-certificate routing without a test for every hostname and fallback path, and never weaken verification to hide configuration mistakes."},"mechanism":["PostgreSQL describes ssl_sni as follows: “Sets whether to interpret SNI extensions in SSL connections.” A configuration reload applies the value to the server without a full restart. The atlas measures it in PG19 Beta 3; boot_val is the compiled or initialized baseline, not proof of a running cluster's effective setting.","When enabled with TLS, PostgreSQL reads the client's Server Name Indication and selects credentials through hosts_file. Hostnames match case-insensitively; /no_sni/ and * provide explicit fallback behavior. Certificate identity, client verification, CRLs, permissions, and reload failures still require independent validation.","Read it together with hosts_file, ssl, ssl_cert_file, ssl_key_file. Check SHOW and pg_settings on the target server, verify the source and pending_restart fields, and compare workload, logs, and resource metrics before and after any change."],"pitfalls":["Treating the measured boot_val for ssl_sni as proof of the effective value on an initialized or managed cluster.","Applying a change as though it were immediate while pg_settings reports sighup context.","Changing this setting in isolation without checking the linked limits, observability, and rollback path.","Depending on beta behavior in production without retesting the PostgreSQL 19 final release."],"references":[{"title":"PostgreSQL 19 Beta 4: ssl_sni","url":"https://www.postgresql.org/docs/19/runtime-config-connection.html#GUC-SSL-SNI"},{"title":"PostgreSQL 19 release notes","url":"https://www.postgresql.org/docs/19/release-19.html"}],"related":["hosts_file","ssl","ssl_cert_file","ssl_key_file","ssl_ca_file"],"summary":"ssl_sni — Sets whether to interpret SNI extensions in SSL connections. Observed in PG19 Beta 4; its last measured boot default is off in PG19 Beta 4, with sighup context. This is a beta-snapshot fact and can change before PostgreSQL 19 GA."},"enumvals":[],"first_version":"19","group":"Connections and Authentication","group_slug":"connection","imported_at":"2026-09-27T17:57:32.049264+08:00","intro_commit":{"authored_at":"2026-03-18T12:37:11+01:00","discussion":["https://postgr.es/m/1C81CD0D-407E-44F9-833A-DD0331C202E5@yesql.se"],"hash":"4f433025f666fa4a6209f0e847715767fb1c7ace","subject":"ssl: Serverside SNI support for libpq","url":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=4f433025f666fa4a6209f0e847715767fb1c7ace"},"key":"ssl_sni","last_version":"20","max_val":"","min_val":"","name":"ssl_sni","position":382,"present_in":["19","20"],"repair_provenance":{"original_source_revision":"english-manuals:3a23ae1e506ac78f99b4002a1557e1d5d5521ac8d546e012f160998e54e61a77","receipt_sha256":"5ef23ab1bfc6d3b4dc07da257a76ac7b9434ec48b1247a89b6f80eceff156ad6","repair":"wiki-repair-20261023"},"short_desc":"Enables SNI configuration for SSL connections.","short_desc_zh":"","source_rev":"wiki-repair-20261023:dc2aee648a0de8a050825f79e184b2f8269ac56b56f7d8909ee43081f9669d00","unit":"","vartype":"bool"}},"Definition":{"Collection":"guc","Key":"ssl_sni","SourceDatabase":"center","Version":"19","SourceTable":"guc","SourceKey":"ssl_sni","SourceRevision":"wiki-repair-20261023:dc2aee648a0de8a050825f79e184b2f8269ac56b56f7d8909ee43081f9669d00","Facts":{"boot_val":"off","category":"Connections and Authentication / SSL","context":"sighup","description":"Enables SNI configuration for SSL connections. When set to on host configuration from hosts_file is used, see Section 18.9.6 for more details. This parameter can only be set in the postgresql.conf file or on the server command line. The default is off.","description_zh":"启用 SSL 连接的 SNI 配置。设置为 on 时，将使用来自 hosts_file 的主机配置；更多细节参见第 18.9.6 节。 此参数只能在 postgresql.conf 文件中或者服务器命令行上设置。默认值为 off。","description_zh_html":"\u003cp\u003e\n        启用 SSL 连接的 SNI 配置。设置为 \u003ccode class=\"literal\"\u003eon\u003c/code\u003e 时，将使用来自 \u003ca class=\"xref\" href=\"/zh/docs/19/runtime-config-file-locations.html#GUC-HOSTS-FILE\"\u003ehosts_file\u003c/a\u003e 的主机配置；更多细节参见\u003ca class=\"xref\" href=\"/zh/docs/19/ssl-tcp.html#SSL-SNI\" title=\"18.9.6. SNI 配置\"\u003e第 18.9.6 节\u003c/a\u003e。\n       \u003c/p\u003e\u003cp\u003e\n        此参数只能在 \u003ccode class=\"filename\"\u003epostgresql.conf\u003c/code\u003e 文件中或者服务器命令行上设置。默认值为 \u003ccode class=\"literal\"\u003eoff\u003c/code\u003e。\n       \u003c/p\u003e","doc":{"anchor":"GUC-SSL-SNI","file":"runtime-config-connection.html","lang":"en","sha256":"16e7573642eca907e42ae1cdd3548ca1bc07e3e0388918f565676b4fdece8161","slug":"19"},"documented":true,"enumvals":null,"extra_desc":null,"lang":"en","max_val":null,"metadata_version":"19beta4","min_val":null,"name":"ssl_sni","short_desc":"Sets whether to interpret SNI extensions in SSL connections.","source":"pg-settings-source-snapshot","translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/19/html/runtime-config-connection.html","sha256":"343d537f9dd9e9f40dfcd768d87fedc608c6a78fa7b079ef8424f79d969a9bd0"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"19"},"unit":null,"vartype":"bool","zh_from":"same-version-pgdoc"},"ManualEvidence":{"doc":{"anchor":"GUC-SSL-SNI","file":"runtime-config-connection.html","lang":"en","sha256":"16e7573642eca907e42ae1cdd3548ca1bc07e3e0388918f565676b4fdece8161","slug":"19"}},"MeasuredEvidence":{"metadata_version":"19beta4"}},"Text":{"Collection":"guc","Key":"ssl_sni","SourceDatabase":"center","Version":"19","Locale":"en","Title":"ssl_sni","Summary":"Enables SNI configuration for SSL connections. When set to on host configuration from hosts_file is used, see Section 18.9.6 for more details. This parameter can only be set in the postgresql.conf file or on the server command line. The default is off.","BodyHTML":"\u003cp\u003eEnables SNI configuration for SSL connections. When set to on host configuration from hosts_file is used, see Section 18.9.6 for more details. This parameter can only be set in the postgresql.conf file or on the server command line. The default is off.\u003c/p\u003e","SourceRevision":"wiki-repair-20261023:dc2aee648a0de8a050825f79e184b2f8269ac56b56f7d8909ee43081f9669d00","ContentHash":"555720e3fc09ff1bab8463cc3c8b5bdd1838848063c93cfcf0bc139de026602e","Payload":{"description":"Enables SNI configuration for SSL connections. When set to on host configuration from hosts_file is used, see Section 18.9.6 for more details. This parameter can only be set in the postgresql.conf file or on the server command line. The default is off."}},"RequestedLocale":"en","Fallback":false,"Versions":["19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
