{"kind": "auth", "major": "18", "item": {"slug": "trust", "name": "trust", "name_zh": "", "category": "\u8eab\u4efd\u8ba4\u8bc1\u4e0e\u8bbf\u95ee\u63a7\u5236", "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "aliases": [], "content_hash": "ea707a0fc798d08cf61de2f70d3f1f6136bc2fe5bb5e2bada0a7a06e49723253", "versions": {"10": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v10.23/postgresql-10.23.tar.bz2", "label": "10.23", "major": "10", "channel": "historical", "revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9", "source_sha256": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9", "catalog_fingerprint": "691be281b476dde4374d7f805b2bacc2e75bdef40f1e9d3d42e91f97fe95cfd0"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v10.23/postgresql-10.23.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, {"url": "/docs/10/auth-methods.html#AUTH-TRUST", "path": "auth-methods.html", "label": "PostgreSQL 10 English manual", "sha256": "856d36a3fdfe8c45a25832e49bd07e9b7480f2ff9a33e58ac7c392630149bc34"}, {"url": "/docs/10/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 10 English manual", "sha256": "04fed609a50e8fd3013ffebb83039c544d39b6c73a6c2b2e23cd7864a70b42da"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/10/auth-methods.html#AUTH-TRUST", "anchor": "AUTH-TRUST", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "auth-methods.html", "extraction": "concept-introduction", "source_hash": "8fb4c6dc36608a9ecf52bdf7b36e63ea678b09c7cb90191e4752e62ba5911e49", "fragment_sha256": "4486747d75b1194bac8599fbacfb6570450d2fc4f74e507a663125d177157ae3", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "0d545eace9a037e905e2a17b0e4ceda882415a8585ddce3ec99bcda51abeebe7", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "10", "text_hash": "8ceed4723a6af8dec080eca5c4b9643dcf7d0c302d83cd73817c8b8b04d71249", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/10/auth-methods.html#AUTH-TRUST", "anchor": "AUTH-TRUST", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "auth-methods.html", "extraction": "concept-introduction", "source_hash": "8fb4c6dc36608a9ecf52bdf7b36e63ea678b09c7cb90191e4752e62ba5911e49", "fragment_sha256": "4486747d75b1194bac8599fbacfb6570450d2fc4f74e507a663125d177157ae3", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "0d545eace9a037e905e2a17b0e4ceda882415a8585ddce3ec99bcda51abeebe7", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p> <code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/10/runtime-config-connection.html\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/10/auth-methods.html#AUTH-TRUST\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "10", "link_map": {"/zh/docs/10/auth-methods.html#AUTH-TRUST": "/docs/10/auth-methods.html#AUTH-TRUST", "/zh/docs/10/runtime-config-connection.html": "/docs/10/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p> <code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/10/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/10/auth-methods.html#AUTH-TRUST\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "76f83af5f3100ac6046e2840f31cfc567768f5943ea618cda95d189e4c4418a4", "content_hash": "8ceed4723a6af8dec080eca5c4b9643dcf7d0c302d83cd73817c8b8b04d71249", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/10/auth-methods.html#AUTH-TRUST", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/10/auth-methods.html", "method": "same-major semantic node", "sha256": "128b4f29cf06d6bde5b9e357daacb6d538044ee392e4aece0e31c90b0a37b647", "language": "zh", "matched_nodes": ["#AUTH-METHODS/div[1]/dl[0]/dt[0]", "#AUTH-METHODS/div[3]/p[1]", "#AUTH-METHODS/div[3]/p[2]"]}], "language": "zh", "original_text": {"/versions/10/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 20.3.1 for details.", "/versions/10/facts/0/label": "Method", "/versions/10/facts/1/label": "Configuration", "/versions/10/facts/2/label": "Inventory", "/versions/10/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "1e0949651bbdada0f1d733b058ac0bc8af8c5f1cddea00d38ac3ad35ec6195bb", "canonical_center_text_hash": "8ceed4723a6af8dec080eca5c4b9643dcf7d0c302d83cd73817c8b8b04d71249"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p> <code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/10/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/10/auth-methods.html#AUTH-TRUST\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "11": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v11.22/postgresql-11.22.tar.bz2", "label": "11.22", "major": "11", "channel": "historical", "revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0", "source_sha256": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0", "catalog_fingerprint": "8f21f4444b7f68923f4762af0eb7937fa2907026e91249483e79050de012c901"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v11.22/postgresql-11.22.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, {"url": "/docs/11/auth-trust.html", "path": "auth-trust.html", "label": "PostgreSQL 11 English manual", "sha256": "255fe3640ed5b16b5a7becfde9cdcba5f9eba8224e1cd82b526eff223100c2ac"}, {"url": "/docs/11/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 11 English manual", "sha256": "5477c61a002171f5b4c462052d91231c405f39d89d825faf71e52fbae358eef7"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/11/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "d5e52e33cef480bfc4d53b2e45a34075f4bfac39685e179c927e890c07197509", "fragment_sha256": "1cd4ba80cf215bc5ddbf7cbfd53a6682b776c13d44ef1e708e5ee8cd35a0c65d", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "ef3ec7ccc64d9ce33ebce7c063fbea2638d24e79a5f9be09e47dac4f22ee974b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "11", "text_hash": "7355214feeb05b519128916664634bab5c1f46f6f6d5ef0471289bc380bfc473", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/11/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "d5e52e33cef480bfc4d53b2e45a34075f4bfac39685e179c927e890c07197509", "fragment_sha256": "1cd4ba80cf215bc5ddbf7cbfd53a6682b776c13d44ef1e708e5ee8cd35a0c65d", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "ef3ec7ccc64d9ce33ebce7c063fbea2638d24e79a5f9be09e47dac4f22ee974b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/11/runtime-config-connection.html\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/11/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "11", "link_map": {"/zh/docs/11/auth-trust.html": "/docs/11/auth-trust.html", "/zh/docs/11/runtime-config-connection.html": "/docs/11/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/11/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/11/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "26c932d3305c4b69a83dcc5f14111185f61a711828d48f1f9c795bbb3c5d7d98", "content_hash": "7355214feeb05b519128916664634bab5c1f46f6f6d5ef0471289bc380bfc473", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/11/auth-trust.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/11/auth-trust.html", "method": "same-major semantic node", "sha256": "0a6bd8dddf0f2ade95f6119e1af36db229f4883468347e87dee05d2c9b4c50e9", "language": "zh", "matched_nodes": ["#AUTH-TRUST/div[0]", "#AUTH-TRUST/p[1]", "#AUTH-TRUST/p[2]"]}], "language": "zh", "original_text": {"/versions/11/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 20.4 for details.", "/versions/11/facts/0/label": "Method", "/versions/11/facts/1/label": "Configuration", "/versions/11/facts/2/label": "Inventory", "/versions/11/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "91b00f807e2f5c53eb9672582f3fe83255ec279f0ab533af78ae591f9439c2ae", "canonical_center_text_hash": "7355214feeb05b519128916664634bab5c1f46f6f6d5ef0471289bc380bfc473"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/11/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/11/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "12": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "12.22", "major": "12", "channel": "historical", "revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b", "source_sha256": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b", "catalog_fingerprint": "9f857f4ee4875f9c7de6bfc9df4b757dec8b3a0bb88eadb519c7bd267bd56149"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v12.22/postgresql-12.22.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, {"url": "/docs/12/auth-trust.html", "path": "auth-trust.html", "label": "PostgreSQL 12 English manual", "sha256": "d4e9df6ed4a436bf78764fb8b5ab96d1884dfb336d7e29e43bbd6e68ea69c6a6"}, {"url": "/docs/12/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 12 English manual", "sha256": "07e8cddcb38076c86dab95b72c4380a7a325f22401b5b7f9af5dd4931876f2cb"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/12/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "82c59895906e50a2d0fc73f81744dbafc444678dbf358be5cc7b550171cb2ddd", "fragment_sha256": "997a6663786d28ca446e77dadb2bdde45c5b21a767917e905be44939c5ca47e4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "433df8cba3a86c63f4743436513f581c09654bd8cfec203fb4eb66223b3bd41a", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "12", "text_hash": "e8954b722b979adcdd894e8297a322f9bb26675fae3791d8566469c6223c13ce", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/12/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "82c59895906e50a2d0fc73f81744dbafc444678dbf358be5cc7b550171cb2ddd", "fragment_sha256": "997a6663786d28ca446e77dadb2bdde45c5b21a767917e905be44939c5ca47e4", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "433df8cba3a86c63f4743436513f581c09654bd8cfec203fb4eb66223b3bd41a", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/12/runtime-config-connection.html\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/12/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "12", "link_map": {"/zh/docs/12/auth-trust.html": "/docs/12/auth-trust.html", "/zh/docs/12/runtime-config-connection.html": "/docs/12/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/12/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/12/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "c9b3419a2dbb3c53fd4913bd1dd663a2ee24991f98297a9fd80473265ca8e4f9", "content_hash": "e8954b722b979adcdd894e8297a322f9bb26675fae3791d8566469c6223c13ce", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/12/auth-trust.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/12/auth-trust.html", "method": "same-major semantic node", "sha256": "765f61454f782d753943c1639b1040f96af8f32373aeea9775463f524be61a6b", "language": "zh", "matched_nodes": ["#AUTH-TRUST/div[0]", "#AUTH-TRUST/p[1]", "#AUTH-TRUST/p[2]"]}], "language": "zh", "original_text": {"/versions/12/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 20.4 for details.", "/versions/12/facts/0/label": "Method", "/versions/12/facts/1/label": "Configuration", "/versions/12/facts/2/label": "Inventory", "/versions/12/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "3147e32ee722473ea42ec1b4e0c4b1099e358f50ab0098058e122b0321bab73a", "canonical_center_text_hash": "e8954b722b979adcdd894e8297a322f9bb26675fae3791d8566469c6223c13ce"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/12/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/12/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "13": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "13.23", "major": "13", "channel": "historical", "revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6", "source_sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6", "catalog_fingerprint": "c7015c845255c9d721c547c8ab9ef37825d332588c9691d982e6906b7d571002"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v13.23/postgresql-13.23.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, {"url": "/docs/13/auth-trust.html", "path": "auth-trust.html", "label": "PostgreSQL 13 English manual", "sha256": "823340fbbeb1817a54ef6ea4ec39eb2a7b8771520375d96f192f2f48d6eee057"}, {"url": "/docs/13/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 13 English manual", "sha256": "3cc6ce851945cba450e6b26ecf9cae1efd3c03fb7b55e17876f4d9ea418a7c2e"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/13/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "235952bbf1a00e561679376d14754c61d392330c2d96a60c784d8c5c99625223", "fragment_sha256": "78ecded4004cc1459b3d4168cabe94750f4a8fd36b81cc126a9de88aade88efb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "16884fa3e9183504ce83afdd899f370a7f6d9c708fbdb734ff0e55438f8b2d8f", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "13", "text_hash": "9aca36cfcaeb4aa3d5d3fef159012cd59aef58ac2128461ca338696c214dad06", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/13/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "235952bbf1a00e561679376d14754c61d392330c2d96a60c784d8c5c99625223", "fragment_sha256": "78ecded4004cc1459b3d4168cabe94750f4a8fd36b81cc126a9de88aade88efb", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "16884fa3e9183504ce83afdd899f370a7f6d9c708fbdb734ff0e55438f8b2d8f", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/13/runtime-config-connection.html\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/13/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "13", "link_map": {"/zh/docs/13/auth-trust.html": "/docs/13/auth-trust.html", "/zh/docs/13/runtime-config-connection.html": "/docs/13/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/13/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/13/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "85eee94c4231b69e0303576757316946d3c6ec550a2006a0938d10ab245e9a0d", "content_hash": "9aca36cfcaeb4aa3d5d3fef159012cd59aef58ac2128461ca338696c214dad06", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/13/auth-trust.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/13/auth-trust.html", "method": "same-major semantic node", "sha256": "28427c5920aba9d0ba0a63b7d0c9e97ef785bacb33a58b975463be43d6963ced", "language": "zh", "matched_nodes": ["#AUTH-TRUST/div[0]", "#AUTH-TRUST/p[1]", "#AUTH-TRUST/p[2]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 20.4 for details.", "/versions/13/facts/0/label": "Method", "/versions/13/facts/1/label": "Configuration", "/versions/13/facts/2/label": "Inventory", "/versions/13/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "270ac5152c19cefe1d7f7f3ffc9c56e5e9e2f51b1f8706d0c79c585a99867ceb", "canonical_center_text_hash": "9aca36cfcaeb4aa3d5d3fef159012cd59aef58ac2128461ca338696c214dad06"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/13/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/13/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "14": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "14.24", "major": "14", "channel": "stable", "revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897", "source_sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897", "catalog_fingerprint": "b272e6a82e4c46efda81c3a6a4cdf7de6a83dfff7f02f226a392fbe9acdd3adb"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v14.24/postgresql-14.24.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, {"url": "/docs/14/auth-trust.html", "path": "auth-trust.html", "label": "PostgreSQL 14 English manual", "sha256": "c519a8f635cc7ab511eea09e1caec97ecaa587f851cca013246fd7bac9032957"}, {"url": "/docs/14/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 14 English manual", "sha256": "c9a75f04fd4a1069ea261ba061578a75c47a4b7e0bbf88761502fd4c19ccbc3f"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/14/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "ecbaf12a984711c87df7476222e32d853edd8eff1c9fc20e3e096e5c196bab4d", "fragment_sha256": "887b280512954d235f7418e2ea9c677f2bee7f3e8dbc2f74ee5d9dc2995fa161", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "9b0d7ba342b08e133d87ab4d84740a8f2609dc3b0e2239c7c013bda22fea642f", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "14", "text_hash": "e15de32099ee42f1ed5ed7613911aa59311fda85d0e10acb4fdac0b99540399c", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/14/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "ecbaf12a984711c87df7476222e32d853edd8eff1c9fc20e3e096e5c196bab4d", "fragment_sha256": "887b280512954d235f7418e2ea9c677f2bee7f3e8dbc2f74ee5d9dc2995fa161", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "9b0d7ba342b08e133d87ab4d84740a8f2609dc3b0e2239c7c013bda22fea642f", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/14/runtime-config-connection.html\">\u7b2c\u00a020.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/14/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "14", "link_map": {"/zh/docs/14/auth-trust.html": "/docs/14/auth-trust.html", "/zh/docs/14/runtime-config-connection.html": "/docs/14/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/14/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a020.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/14/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "6805b42f12fb3a5b42fe3e127a11db444e7ea729c23171485eb1cd4a0350eb1f", "content_hash": "e15de32099ee42f1ed5ed7613911aa59311fda85d0e10acb4fdac0b99540399c", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/14/auth-trust.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/14/auth-trust.html", "method": "same-major semantic node", "sha256": "5171ad0b69510432b5e81004e8ecf11ec866f4e6ea3703f85c4c0e1bcb068156", "language": "zh", "matched_nodes": ["#AUTH-TRUST/div[0]", "#AUTH-TRUST/p[1]", "#AUTH-TRUST/p[2]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 21.4 for details.", "/versions/14/facts/0/label": "Method", "/versions/14/facts/1/label": "Configuration", "/versions/14/facts/2/label": "Inventory", "/versions/14/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "c201a3e65817cd00fb4f69f9d57b7c2b34d249ccf708c017b959c6451f359444", "canonical_center_text_hash": "e15de32099ee42f1ed5ed7613911aa59311fda85d0e10acb4fdac0b99540399c"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/14/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a020.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/14/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "15": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "15.19", "major": "15", "channel": "stable", "revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89", "source_sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89", "catalog_fingerprint": "fefe3c425147a86defada190c9b0663cfe02caa1724f5dede93e46457572252d"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v15.19/postgresql-15.19.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, {"url": "/docs/15/auth-trust.html", "path": "auth-trust.html", "label": "PostgreSQL 15 English manual", "sha256": "fae57f28dbf6e997b71f55ae587f6a3cc185b2739d9324d57198b5da9be8f29f"}, {"url": "/docs/15/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 15 English manual", "sha256": "0470cd3eeb82cbc32d4b8b79e29f4427bdfd01f5bb15e6d9b7cee2f6dd2bba44"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/15/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "f7e685f24297e6e4ea292a0e6a86d7487cc069ad690c12cb77541161c07a376f", "fragment_sha256": "7973fbaa2e8d155e2e689b6077e18da3ba2062865ef11f5379e24b4012373243", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "364a174fbdeafade8a5d4668a87bafb2513f26e978f36493f75671b07063f96f", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "15", "text_hash": "fafc13a90e7e936d52f7aab9ec44a81cb0a727bf8a9a21b84bdb0c6614ef8e50", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/15/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "f7e685f24297e6e4ea292a0e6a86d7487cc069ad690c12cb77541161c07a376f", "fragment_sha256": "7973fbaa2e8d155e2e689b6077e18da3ba2062865ef11f5379e24b4012373243", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "364a174fbdeafade8a5d4668a87bafb2513f26e978f36493f75671b07063f96f", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/15/runtime-config-connection.html\">\u7b2c\u00a020.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/15/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "15", "link_map": {"/zh/docs/15/auth-trust.html": "/docs/15/auth-trust.html", "/zh/docs/15/runtime-config-connection.html": "/docs/15/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/15/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a020.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/15/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "2e1f48be4642d76069efe702530a305f62eef9575b8d622d9d6c4c65334b17d0", "content_hash": "fafc13a90e7e936d52f7aab9ec44a81cb0a727bf8a9a21b84bdb0c6614ef8e50", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/15/auth-trust.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/15/auth-trust.html", "method": "same-major semantic node", "sha256": "fb43f4a92684fd8c353b422acda2c0083547f2dc569333a199c2ad61f4f2bb90", "language": "zh", "matched_nodes": ["#AUTH-TRUST/div[0]", "#AUTH-TRUST/p[1]", "#AUTH-TRUST/p[2]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 21.4 for details.", "/versions/15/facts/0/label": "Method", "/versions/15/facts/1/label": "Configuration", "/versions/15/facts/2/label": "Inventory", "/versions/15/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "2e2e681c8b96debd873b1e6cea1726c66ee4a8847addfaabf048b063c4753f43", "canonical_center_text_hash": "fafc13a90e7e936d52f7aab9ec44a81cb0a727bf8a9a21b84bdb0c6614ef8e50"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/15/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a020.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/15/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "16": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "16.15", "major": "16", "channel": "stable", "revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed", "source_sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed", "catalog_fingerprint": "fa133458dc8f52e15083b4f59b7a582e2e378b608d3ac5c53054df458a374e23"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v16.15/postgresql-16.15.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, {"url": "/docs/16/auth-trust.html", "path": "auth-trust.html", "label": "PostgreSQL 16 English manual", "sha256": "5b91f3453aa08ec72643e007a2aa2ab9a9c3276175a80f6ec62ec72850f2ea1f"}, {"url": "/docs/16/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 16 English manual", "sha256": "ccc5146375a184646d5992edbc693e12c0de4431a35141d6b56c8dd6b3c52132"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/16/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "2068f77a5aa4a62a45e4c2f1a97c818a7cf678d8bd913ead6a3e635b0358039b", "fragment_sha256": "eb280c78eb23c7ce5b8ff24b39ae7275fbb4688b0221d2481fd23a977f6a8f61", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "947866b769d292fb0276b2f1572523635719e72b159d7f0761a3fb956d634d8e", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "16", "text_hash": "bf5f4732c2aeab53f8820e35c9b4defe0c869198ddf424b26e9b39a3d878088e", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/16/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "2068f77a5aa4a62a45e4c2f1a97c818a7cf678d8bd913ead6a3e635b0358039b", "fragment_sha256": "eb280c78eb23c7ce5b8ff24b39ae7275fbb4688b0221d2481fd23a977f6a8f61", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "947866b769d292fb0276b2f1572523635719e72b159d7f0761a3fb956d634d8e", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/16/runtime-config-connection.html\">\u7b2c\u00a020.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/16/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "16", "link_map": {"/zh/docs/16/auth-trust.html": "/docs/16/auth-trust.html", "/zh/docs/16/runtime-config-connection.html": "/docs/16/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/16/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a020.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/16/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "d1089160f377c2887fab5c5f27fad1e94238b8bc777e98dff2c20a7f08474a3d", "content_hash": "bf5f4732c2aeab53f8820e35c9b4defe0c869198ddf424b26e9b39a3d878088e", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/16/auth-trust.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/16/auth-trust.html", "method": "same-major semantic node", "sha256": "0931b688b5f2c3444783556dccd4a7327a5d5570773fa41cfd1138309a719b1f", "language": "zh", "matched_nodes": ["#AUTH-TRUST/div[0]", "#AUTH-TRUST/p[1]", "#AUTH-TRUST/p[2]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 21.4 for details.", "/versions/16/facts/0/label": "Method", "/versions/16/facts/1/label": "Configuration", "/versions/16/facts/2/label": "Inventory", "/versions/16/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "857f0f01885e775687db3daa5c5fc51bb78291b13daa7adb9c026b4ab309eeda", "canonical_center_text_hash": "bf5f4732c2aeab53f8820e35c9b4defe0c869198ddf424b26e9b39a3d878088e"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/16/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a020.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/16/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "17": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "17.11", "major": "17", "channel": "stable", "revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979", "source_sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979", "catalog_fingerprint": "4bbe3ac77becd618478f66aec420a533e9017be356c5c1d51a4b17f0fd497c07"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v17.11/postgresql-17.11.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, {"url": "/docs/17/auth-trust.html", "path": "auth-trust.html", "label": "PostgreSQL 17 English manual", "sha256": "4477a685fc74033e7cd25616416e68fd7e702471d59d121835adcedb69acf6cf"}, {"url": "/docs/17/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 17 English manual", "sha256": "00c7a7c25d46aa1b2f24cd744cd4990ca4218cfafed2a4cab8c1dc1092090bba"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/17/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "ac8aebeddfeb1fbe0c4d0167a3b3ba5f9d18790ea42c239bcf9585615a023fc7", "fragment_sha256": "021f8079c519051f8c243f7aa604351d43ce3b0e468e97188abea8dfe2bd06e1", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "fc1bbe3e9b0c57e156511ec40e26ad5cae436e5e9be3b8d822a5c82df5bf4d2a", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "17", "text_hash": "9466af7399e9dc222ab13d8399b22270e9cfea124a93b85771518b28597bbabc", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/17/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "ac8aebeddfeb1fbe0c4d0167a3b3ba5f9d18790ea42c239bcf9585615a023fc7", "fragment_sha256": "021f8079c519051f8c243f7aa604351d43ce3b0e468e97188abea8dfe2bd06e1", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "fc1bbe3e9b0c57e156511ec40e26ad5cae436e5e9be3b8d822a5c82df5bf4d2a", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/17/runtime-config-connection.html\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/17/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "17", "link_map": {"/zh/docs/17/auth-trust.html": "/docs/17/auth-trust.html", "/zh/docs/17/runtime-config-connection.html": "/docs/17/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/17/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/17/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "91ce50e9cb06ff849f2c5fe34e7ae11ee0378c17fccb217c180934a21328a2d5", "content_hash": "9466af7399e9dc222ab13d8399b22270e9cfea124a93b85771518b28597bbabc", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/17/auth-trust.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/17/auth-trust.html", "method": "same-major semantic node", "sha256": "cf78a062d9f572fcaedfed9642ccc8545282ab14256cc1e4d8d012cc4fd84ceb", "language": "zh", "matched_nodes": ["#AUTH-TRUST/div[0]", "#AUTH-TRUST/p[1]", "#AUTH-TRUST/p[2]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 20.4 for details.", "/versions/17/facts/0/label": "Method", "/versions/17/facts/1/label": "Configuration", "/versions/17/facts/2/label": "Inventory", "/versions/17/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "455b1a2f8d8a99a7a56b7a132a6b847ac46f1933683c3073dec0775ace39c4cb", "canonical_center_text_hash": "9466af7399e9dc222ab13d8399b22270e9cfea124a93b85771518b28597bbabc"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/17/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/17/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "18": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "catalog_fingerprint": "65c93d6048ef30e61023a84f9680fa6a92b1c383b7eb226741170077eb078502"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, {"url": "/docs/18/auth-trust.html", "path": "auth-trust.html", "label": "PostgreSQL 18 English manual", "sha256": "e4c50d6f88b13feb2004634788c61e0f797ff2d5b1ab6bb86de30229cef38a87"}, {"url": "/docs/18/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 18 English manual", "sha256": "6340d4abea2e0a3482afc31bcd1599a0fa10dc28a6f1e05d79ba831e2dd0b4c9"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "03b866999d51e7d3bc4c8aa0137716febf703b5c8aa09956b5b6202c4edfbe11", "fragment_sha256": "b56bd73fa27fbd86fbfdb6f2562448eb61fdeef5f1ae4e71cf4f53d507d63188", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "48583b9bd441fff2c2bd04c108f477d0cb30a3204c69eee2705bb0e578599e38", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "18", "text_hash": "64316ace356f3573b01f710cd171db07588d47fdb7ca92282126ee2db7b30551", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "03b866999d51e7d3bc4c8aa0137716febf703b5c8aa09956b5b6202c4edfbe11", "fragment_sha256": "b56bd73fa27fbd86fbfdb6f2562448eb61fdeef5f1ae4e71cf4f53d507d63188", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "48583b9bd441fff2c2bd04c108f477d0cb30a3204c69eee2705bb0e578599e38", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/18/runtime-config-connection.html\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/18/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "18", "link_map": {"/zh/docs/18/auth-trust.html": "/docs/18/auth-trust.html", "/zh/docs/18/runtime-config-connection.html": "/docs/18/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/18/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/18/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "7004d16d7272cc21555f5b885c692720ec4090f3d4ec9bd17a1cf38edb833f04", "content_hash": "64316ace356f3573b01f710cd171db07588d47fdb7ca92282126ee2db7b30551", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/18/auth-trust.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/auth-trust.html", "method": "same-major semantic node", "sha256": "0a1bfdc5271a1b7381047de21b105850e29ab0afa545fc653d2a744b299ac927", "language": "zh", "matched_nodes": ["#AUTH-TRUST/div[0]", "#AUTH-TRUST/p[1]", "#AUTH-TRUST/p[2]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 20.4 for details.", "/versions/18/facts/0/label": "Method", "/versions/18/facts/1/label": "Configuration", "/versions/18/facts/2/label": "Inventory", "/versions/18/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "5caf4edf86e06de543ae6825d83bb643bb263deae712583119ab38da6c192c30", "canonical_center_text_hash": "64316ace356f3573b01f710cd171db07588d47fdb7ca92282126ee2db7b30551"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/18/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/18/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/docs/18/runtime-config-connection.html\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/docs/18/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "19": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v19rc1/postgresql-19rc1.tar.bz2", "label": "19rc1", "major": "19", "channel": "preview", "revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "source_sha256": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "catalog_fingerprint": "62fbf1a3689dbe8bf7e6b3372cfe6fbf867581427b3858a94c8419b77a4d2d1d"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v19rc1/postgresql-19rc1.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, {"url": "/docs/19/auth-trust.html", "path": "auth-trust.html", "label": "PostgreSQL 19 English manual", "sha256": "0672f68437f280081073976d0c726104edfca78ac7f603d6fc3b54a862c1b46b"}, {"url": "/docs/19/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 19 English manual", "sha256": "f61179425c2d8330655f93b616bddb2ab518eeb12ebe4bc77af4a3af78399eeb"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/19/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "c64ceeb4e09fb31ee663ef6b0bc35f282dcd115acb8381444ec6d00f06b8702f", "fragment_sha256": "6aea0a417f8799351cf5222794557a27a6df320a9fa0ca2793ea4411ab755dcb", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "57a6da58499fd65e7fd6f7123e8e66514d9c5ed879151e2a88a872081c74c7fc", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "19", "text_hash": "a03daeddfadecff4f039c4e84335e51e8833699e21b91d510d4c21545d8ee84c", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/19/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "c64ceeb4e09fb31ee663ef6b0bc35f282dcd115acb8381444ec6d00f06b8702f", "fragment_sha256": "6aea0a417f8799351cf5222794557a27a6df320a9fa0ca2793ea4411ab755dcb", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "57a6da58499fd65e7fd6f7123e8e66514d9c5ed879151e2a88a872081c74c7fc", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/19/runtime-config-connection.html\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/19/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "19", "link_map": {"/zh/docs/19/auth-trust.html": "/docs/19/auth-trust.html", "/zh/docs/19/runtime-config-connection.html": "/docs/19/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/19/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/19/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "2a31fd5e87eee92dd5309991f68dc15025376f604c931d795f77cc4f52470ab4", "content_hash": "a03daeddfadecff4f039c4e84335e51e8833699e21b91d510d4c21545d8ee84c", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/19/auth-trust.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/19/auth-trust.html", "method": "same-major semantic node", "sha256": "0b07652f9bbfaace9aa187627c113157d22dc06b74a4461e1aba7e3268642da8", "language": "zh", "matched_nodes": ["#AUTH-TRUST/div[0]", "#AUTH-TRUST/p[1]", "#AUTH-TRUST/p[2]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 20.4 for details.", "/versions/19/facts/0/label": "Method", "/versions/19/facts/1/label": "Configuration", "/versions/19/facts/2/label": "Inventory", "/versions/19/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "e5d05fb13b5db6f01c68f65bc5f9d173221ae9fe8e912fb5da67ae0cb7c2d822", "canonical_center_text_hash": "a03daeddfadecff4f039c4e84335e51e8833699e21b91d510d4c21545d8ee84c"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/19/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/19/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "source_revalidation": {"kind": "static-same-version-source-and-manual-replay", "audit": "wiki-audit-20261023", "runtime_rerun": false, "compared_fields": "entity membership and source-derived facts; presentation markup normalized", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "previous_source_revision": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}}, "20": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "20devel", "major": "20", "channel": "devel", "revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "source_sha256": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "catalog_fingerprint": "1ae459dc2ba59b6e0a27d5cbeebb27c417dd0be8ddf853fb0c1e533d4e449c9a"}, "sources": [{"url": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, {"url": "/docs/devel/auth-trust.html", "path": "auth-trust.html", "label": "PostgreSQL 20 English manual", "sha256": "1a42c9102755f0a0abfcf6bfa90335bbfaa4092beb365cf47e5b52e5cfdc8069"}, {"url": "/docs/devel/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 20 English manual", "sha256": "aab989aead70e54ad4d37cb6d40b6a1aa370868177becdc759e6977d1074e02d"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/devel/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "ef35df0b5e95fd3da4bd9d7380b01ebdd722949dac89dab8f21f986699e3e2bc", "fragment_sha256": "357089fc0906d697431bf1e4cfb58c5886b8af2ebb18bac7fcc42d646dfe59cc", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "620a7fe718f8fb4d6d22f56764e55529814c0ce30dabc650a1379f8032282ff6", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "20", "text_hash": "b576c7bf46d83afa8b276edda4f2afe35b6d4588c2ab3f2b0626f3d7fa3a3a74", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/devel/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "ef35df0b5e95fd3da4bd9d7380b01ebdd722949dac89dab8f21f986699e3e2bc", "fragment_sha256": "357089fc0906d697431bf1e4cfb58c5886b8af2ebb18bac7fcc42d646dfe59cc", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "620a7fe718f8fb4d6d22f56764e55529814c0ce30dabc650a1379f8032282ff6", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/devel/runtime-config-connection.html\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/devel/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "20", "link_map": {"/zh/docs/devel/auth-trust.html": "/docs/devel/auth-trust.html", "/zh/docs/devel/runtime-config-connection.html": "/docs/devel/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/devel/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/devel/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "028b4db9601531a4023547c4d9ee73e1c0860b42327f3df4188d6693aea6ee23", "content_hash": "b576c7bf46d83afa8b276edda4f2afe35b6d4588c2ab3f2b0626f3d7fa3a3a74", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/devel/auth-trust.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/devel/auth-trust.html", "method": "same-major semantic node", "sha256": "b09a00b45bf7472e83ba6bf99fee754186b6adbfd786d2b77cb9063cb9636835", "language": "zh", "matched_nodes": ["#AUTH-TRUST/div[0]", "#AUTH-TRUST/p[1]", "#AUTH-TRUST/p[2]"]}], "language": "zh", "original_text": {"/summary": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 20.4 for details.", "/category": "Authentication and access control", "/versions/20/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 20.4 for details.", "/versions/20/facts/0/label": "Method", "/versions/20/facts/1/label": "Configuration", "/versions/20/facts/2/label": "Inventory", "/versions/20/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "975ead2fab2c6bd06df405533b711cba99afa7b3273c4b19aba64f89b3928f0a", "canonical_center_text_hash": "b576c7bf46d83afa8b276edda4f2afe35b6d4588c2ab3f2b0626f3d7fa3a3a74"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/devel/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/devel/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "source_revalidation": {"kind": "static-same-version-source-and-manual-replay", "audit": "wiki-audit-20261023", "runtime_rerun": false, "compared_fields": "entity membership and source-derived facts; presentation markup normalized", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "previous_source_revision": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}}}}, "snapshot": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "aliases": [], "related": [], "release": {"ref": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "18.6", "major": "18", "channel": "stable", "revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "source_sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f", "catalog_fingerprint": "65c93d6048ef30e61023a84f9680fa6a92b1c383b7eb226741170077eb078502"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, {"url": "/docs/18/auth-trust.html", "path": "auth-trust.html", "label": "PostgreSQL 18 English manual", "sha256": "e4c50d6f88b13feb2004634788c61e0f797ff2d5b1ab6bb86de30229cef38a87"}, {"url": "/docs/18/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 18 English manual", "sha256": "6340d4abea2e0a3482afc31bcd1599a0fa10dc28a6f1e05d79ba831e2dd0b4c9"}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "03b866999d51e7d3bc4c8aa0137716febf703b5c8aa09956b5b6202c4edfbe11", "fragment_sha256": "b56bd73fa27fbd86fbfdb6f2562448eb61fdeef5f1ae4e71cf4f53d507d63188", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "48583b9bd441fff2c2bd04c108f477d0cb30a3204c69eee2705bb0e578599e38", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "sections": [], "center_zh": {"title": "trust", "locale": "zh-Hans", "source": {"key": "trust", "locale": "zh-Hans", "version": "18", "text_hash": "64316ace356f3573b01f710cd171db07588d47fdb7ca92282126ee2db7b30551", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "trust"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/auth-trust.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-trust.html", "extraction": "concept-introduction", "source_hash": "03b866999d51e7d3bc4c8aa0137716febf703b5c8aa09956b5b6202c4edfbe11", "fragment_sha256": "b56bd73fa27fbd86fbfdb6f2562448eb61fdeef5f1ae4e71cf4f53d507d63188", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "48583b9bd441fff2c2bd04c108f477d0cb30a3204c69eee2705bb0e578599e38", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code class=\"literal\">trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span class=\"productname\">PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code class=\"literal\">database</code> \u548c <code class=\"literal\">user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code class=\"literal\">trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span class=\"emphasis\"><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code class=\"literal\">trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a class=\"xref\" href=\"/zh/docs/18/runtime-config-connection.html\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code class=\"varname\">unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code class=\"varname\">unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code class=\"varname\">unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code class=\"filename\">pg_hba.conf</code> \u4e2d\u79fb\u9664 <code class=\"literal\">host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code class=\"literal\">trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code class=\"filename\">pg_hba.conf</code> \u4e2d\u6307\u5b9a <code class=\"literal\">trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code class=\"literal\">trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span class=\"systemitem\">localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code class=\"literal\">trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/18/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "version": "18", "link_map": {"/zh/docs/18/auth-trust.html": "/docs/18/auth-trust.html", "/zh/docs/18/runtime-config-connection.html": "/docs/18/runtime-config-connection.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/18/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/18/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "7004d16d7272cc21555f5b885c692720ec4090f3d4ec9bd17a1cf38edb833f04", "content_hash": "64316ace356f3573b01f710cd171db07588d47fdb7ca92282126ee2db7b30551", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "", "tables_zh": [], "attributes": {"method": "trust", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002"], "manual_html": "", "manual_path": "/docs/18/auth-trust.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/auth-trust.html", "method": "same-major semantic node", "sha256": "0a1bfdc5271a1b7381047de21b105850e29ab0afa545fc653d2a744b299ac927", "language": "zh", "matched_nodes": ["#AUTH-TRUST/div[0]", "#AUTH-TRUST/p[1]", "#AUTH-TRUST/p[2]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Allow the connection unconditionally. This method allows anyone that can connect to the PostgreSQL database server to login as any PostgreSQL user they wish, without the need for a password or any other authentication. See Section 20.4 for details.", "/versions/18/facts/0/label": "Method", "/versions/18/facts/1/label": "Configuration", "/versions/18/facts/2/label": "Inventory", "/versions/18/facts/2/value": "User-visible source authentication method"}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "5caf4edf86e06de543ae6825d83bb643bb263deae712583119ab38da6c192c30", "canonical_center_text_hash": "64316ace356f3573b01f710cd171db07588d47fdb7ca92282126ee2db7b30551"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002", "comparison_data": {"method": "trust", "documented_option_names": []}, "comparison_hash": "210f7621166817effd2ba02b45ddaf7562e7926b1a9ef4c7e4145fb9c662d19e", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/zh/docs/18/runtime-config-connection.html\" rel=\"nofollow\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/zh/docs/18/auth-trust.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "center_zh_rendered": "<p>\u8ba4\u8bc1\u65b9\u6cd5 trust\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>trust</code></dd><dt>\u914d\u7f6e</dt><dd><code>pg_hba.conf</code></dd></dl><h3>\u540c\u7248\u672c\u4e2d\u6587\u624b\u518c\u8282\u9009</h3><p>\n    \u5f53 <code>trust</code> \u8ba4\u8bc1\u88ab\u6307\u5b9a\u65f6\uff0c<span>PostgreSQL</span> \u5047\u8bbe\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u4eba\u90fd\u88ab\u6388\u6743\u4f7f\u7528\u4ed6\u4eec\u6307\u5b9a\u7684\u4efb\u4f55\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u5373\u4f7f\u662f\u8d85\u7ea7\u7528\u6237\uff09\u8bbf\u95ee\u6570\u636e\u5e93\u3002\u5f53\u7136\uff0c\u5728 <code>database</code> \u548c <code>user</code> \u5217\u4e2d\u8bbe\u7f6e\u7684\u9650\u5236\u4ecd\u7136\u9002\u7528\u3002\u53ea\u6709\u5f53\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u5bf9\u8fdb\u5165\u670d\u52a1\u5668\u7684\u8fde\u63a5\u6709\u8db3\u591f\u4fdd\u62a4\u65f6\uff0c\u624d\u5e94\u8be5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u3002\n   </p><p>\n<code>trust</code> \u8ba4\u8bc1\u5bf9\u4e8e\u5355\u7528\u6237\u5de5\u4f5c\u7ad9\u7684\u672c\u5730\u8fde\u63a5\u662f\u975e\u5e38\u5408\u9002\u548c\u65b9\u4fbf\u7684\u3002\u901a\u5e38\u5b83\u672c\u8eab<span><em>\u4e0d</em></span>\u9002\u7528\u4e8e\u4e00\u53f0\u591a\u7528\u6237\u673a\u5668\u3002\u4e0d\u8fc7\uff0c\u53ea\u8981\u4f60\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u4e86\u5bf9\u670d\u52a1\u5668\u7684 Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u7684\u8bbf\u95ee\uff0c\u5373\u4f7f\u5728\u591a\u7528\u6237\u673a\u5668\u4e0a\uff0c\u4f60\u4e5f\u53ef\u80fd\u53ef\u4ee5\u4f7f\u7528 <code>trust</code>\u3002\u8981\u505a\u8fd9\u4e9b\u9650\u5236\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e<a href=\"/docs/18/runtime-config-connection.html\">\u7b2c\u00a019.3\u00a0\u8282</a>\u4e2d\u63cf\u8ff0\u7684 <code>unix_socket_permissions</code> \u914d\u7f6e\u53c2\u6570\uff08\u53ef\u80fd\u8fd8\u6709 <code>unix_socket_group</code>\uff09\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u8bbe\u7f6e <code>unix_socket_directories</code> \u914d\u7f6e\u53c2\u6570\u6765\u628a Unix \u57df\u5957\u63a5\u5b57\u6587\u4ef6\u653e\u5728\u4e00\u4e2a\u7ecf\u8fc7\u6070\u5f53\u9650\u5236\u7684\u76ee\u5f55\u4e2d\u3002\n   </p><p>\n    \u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u53ea\u80fd\u6709\u52a9\u4e8e Unix \u5957\u63a5\u5b57\u8fde\u63a5\u3002\u672c\u5730 TCP/IP \u8fde\u63a5\u4e0d\u4f1a\u88ab\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u9650\u5236\u3002\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u5229\u7528\u6587\u4ef6\u7cfb\u7edf\u6743\u9650\u6765\u63a7\u5236\u672c\u5730\u5b89\u5168\uff0c\u90a3\u4e48\u4ece <code>pg_hba.conf</code> \u4e2d\u79fb\u9664 <code>host ... 127.0.0.1 ...</code>\u884c\uff0c\u6216\u8005\u628a\u5b83\u6539\u4e3a\u4e00\u4e2a\u975e <code>trust</code> \u8ba4\u8bc1\u65b9\u6cd5\u3002\n   </p><p>\u53ea\u6709\u5f53\u4f60\u4fe1\u4efb\u7531 <code>pg_hba.conf</code> \u4e2d\u6307\u5b9a <code>trust</code> \u7684\u884c\u6240\u5141\u8bb8\u8fde\u63a5\u7684\u6bcf\u53f0\u673a\u5668\u4e0a\u7684\u6bcf\u4e2a\u7528\u6237\u65f6\uff0c<code>trust</code> \u8ba4\u8bc1\u624d\u9002\u5408\u7528\u4e8e TCP/IP \u8fde\u63a5\u3002\u5bf9\u6765\u81ea <span>localhost</span>\uff08127.0.0.1\uff09\u4ee5\u5916\u7684\u4efb\u4f55 TCP/IP \u8fde\u63a5\u4f7f\u7528 <code>trust</code>\uff0c\u901a\u5e38\u90fd\u4e0d\u5408\u7406\u3002</p><p><a href=\"/docs/18/auth-trust.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}