{"kind": "auth", "major": "18", "item": {"slug": "peer", "name": "peer", "name_zh": "", "category": "\u8eab\u4efd\u8ba4\u8bc1\u4e0e\u8bbf\u95ee\u63a7\u5236", "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "aliases": [], "content_hash": "061f31d302a47fac49864fcc1aafe7cbd57950920091b2c29b5fd4c6fef113a8", "versions": {"10": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-PEER", "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-PEER", "anchor": "AUTH-PEER", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "auth-methods.html", "extraction": "concept-introduction", "source_hash": "8fb4c6dc36608a9ecf52bdf7b36e63ea678b09c7cb90191e4752e62ba5911e49", "fragment_sha256": "2b1a704b2d4e742d98b040bd6cc6fd82140df5eb3bd65e8c646f50d6eece0aa3", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "abbfacb041bca6bbf06013e67380510e3750cf14f5d39bea32be90b04cb40a8e", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "10", "text_hash": "c6a3b260fa4a173b1754d16b89a7893268b70603b9d7ca4e02c7267c3ab66d34", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/10/auth-methods.html#AUTH-PEER", "anchor": "AUTH-PEER", "locale": "zh-Hans", "version": "10", "build_id": 63, "page_key": "auth-methods.html", "extraction": "concept-introduction", "source_hash": "8fb4c6dc36608a9ecf52bdf7b36e63ea678b09c7cb90191e4752e62ba5911e49", "fragment_sha256": "2b1a704b2d4e742d98b040bd6cc6fd82140df5eb3bd65e8c646f50d6eece0aa3", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:62997ea80516ad012fbf6359de33f3b016b54c47e2df76e75606116b4baaf8e5", "translated_from_revision": null}, "body_sha256": "abbfacb041bca6bbf06013e67380510e3750cf14f5d39bea32be90b04cb40a8e", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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>    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\u9002\u7528\u4e8e <span class=\"productname\">peer</span>\uff1a\n    </p><p>    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/10/auth-methods.html#AUTH-PEER\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "10", "link_map": {"/zh/docs/10/auth-methods.html#AUTH-PEER": "/docs/10/auth-methods.html#AUTH-PEER"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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>    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\u9002\u7528\u4e8e <span>peer</span>\uff1a\n    </p><p>    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/10/auth-methods.html#AUTH-PEER\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "02c381ec1d903f58e1884932acfdf95bba09add5bcf9af266f82066b7f29ce0b", "content_hash": "c6a3b260fa4a173b1754d16b89a7893268b70603b9d7ca4e02c7267c3ab66d34", "source_database": "center", "source_revision": "94a4b2528372458e5662c18d406629266667c437198160a18cdfd2c4a4d6eee9"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/10/auth-methods.html#AUTH-PEER", "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[5]", "#AUTH-METHODS/div[7]/div[5]/dl[0]/dd[1]", "#AUTH-METHODS/div[8]/p[2]", "#AUTH-METHODS/div[8]/p[5]"]}], "language": "zh", "original_text": {"/versions/10/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 20.3.6 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", "/versions/10/tables/0/title": "Documented method options and alternatives", "/versions/10/tables/0/columns/0/label": "Option or term", "/versions/10/tables/0/columns/1/label": "Meaning", "/versions/10/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 20.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "e959128231b0e5c8424bee3d5660cbb4c633694f3da05666b6c19196c680bf72", "canonical_center_text_hash": "c6a3b260fa4a173b1754d16b89a7893268b70603b9d7ca4e02c7267c3ab66d34"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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>    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\u9002\u7528\u4e8e <span>peer</span>\uff1a\n    </p><p>    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/10/auth-methods.html#AUTH-PEER\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "11": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 11 English manual", "sha256": "188f7087809cd40aae88600cb53c464279b98d1cbab9cdd30eac60454b70fb5f"}, {"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-peer.html", "anchor": "", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "9b50a26deee7b427167b592275150a087dc5357e350ed474fec63f08bcd9d16f", "fragment_sha256": "029c3878984c99b192a859f4ad6828138a79ba905d27abda7a29d5b78f291454", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "cd007fd587d847727b46e04c740ebfc25a3ea329374e88d6596270f6baa858cf", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "11", "text_hash": "cbc71e1b56ec3357f65acb29af8633f77735023d93fe4db41594390317b42006", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/11/auth-peer.html", "anchor": "", "locale": "zh-Hans", "version": "11", "build_id": 64, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "9b50a26deee7b427167b592275150a087dc5357e350ed474fec63f08bcd9d16f", "fragment_sha256": "029c3878984c99b192a859f4ad6828138a79ba905d27abda7a29d5b78f291454", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:ef5c7bc074acae9795db16e6b7482aea3b222bd4bcce0f76831332b97a21e8a1", "translated_from_revision": null}, "body_sha256": "cd007fd587d847727b46e04c740ebfc25a3ea329374e88d6596270f6baa858cf", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p><span class=\"productname\">peer</span> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/11/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "11", "link_map": {"/zh/docs/11/auth-peer.html": "/docs/11/auth-peer.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p><span>peer</span> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/11/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "f3a34cd0bf09904ab00195a16002c1e66456545d8e1c614a0cd7e1a9e49fe147", "content_hash": "cbc71e1b56ec3357f65acb29af8633f77735023d93fe4db41594390317b42006", "source_database": "center", "source_revision": "2cb7c97d7a0d7278851bbc9c61f467b69c094c72b81740b751108e7892ebe1f0"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/11/auth-peer.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/11/auth-peer.html", "method": "same-major semantic node", "sha256": "53ac740b0ff1035b47a518500ad4f722b177acf99a71e61c0bc22e909172b246", "language": "zh", "matched_nodes": ["#AUTH-PEER/div[0]", "#AUTH-PEER/div[4]/dl[0]/dd[1]", "#AUTH-PEER/p[2]", "#AUTH-PEER/p[5]"]}], "language": "zh", "original_text": {"/versions/11/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 20.9 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", "/versions/11/tables/0/title": "Documented method options and alternatives", "/versions/11/tables/0/columns/0/label": "Option or term", "/versions/11/tables/0/columns/1/label": "Meaning", "/versions/11/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 20.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "d061684f2372e251136ab7cdaff9ec900f9c91a9051735ac5f20b7c2bc2f5da3", "canonical_center_text_hash": "cbc71e1b56ec3357f65acb29af8633f77735023d93fe4db41594390317b42006"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p><span>peer</span> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/11/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "12": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 12 English manual", "sha256": "3f24b2807eed57381e0f2f936f317122acfaa13a7b63b2ab7b528854b5cc84ee"}, {"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-peer.html", "anchor": "", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "4374e05af898888bbdefba601de155abf96e19af87d2e4f56f00a9ad3be7cffc", "fragment_sha256": "029c3878984c99b192a859f4ad6828138a79ba905d27abda7a29d5b78f291454", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "a6a7c42f4d5c0f81acbcd3912b5a1f518c1ef17370364617c7ffbcccdaee1a24", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "12", "text_hash": "6ac2832ee0c927ff24916dfb98c1f392149bc85122cc6e89292a537540ae03df", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/12/auth-peer.html", "anchor": "", "locale": "zh-Hans", "version": "12", "build_id": 65, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "4374e05af898888bbdefba601de155abf96e19af87d2e4f56f00a9ad3be7cffc", "fragment_sha256": "029c3878984c99b192a859f4ad6828138a79ba905d27abda7a29d5b78f291454", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:86d2ff781f93e1de17122ebc514d5e64fcb63fed15941f496d7e146c6dcc7a49", "translated_from_revision": null}, "body_sha256": "a6a7c42f4d5c0f81acbcd3912b5a1f518c1ef17370364617c7ffbcccdaee1a24", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p><span class=\"productname\">peer</span> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/12/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "12", "link_map": {"/zh/docs/12/auth-peer.html": "/docs/12/auth-peer.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p><span>peer</span> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/12/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "eff5f045d1e060e4107cb5b97c18e34c3b6f5530476e6f1a7541698ae0b0bcc9", "content_hash": "6ac2832ee0c927ff24916dfb98c1f392149bc85122cc6e89292a537540ae03df", "source_database": "center", "source_revision": "8df3c0474782589d3c6f374b5133b1bd14d168086edbc13c6e72e67dd4527a3b"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/12/auth-peer.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/12/auth-peer.html", "method": "same-major semantic node", "sha256": "1ecf14bfa89e6afbdc8aae4607d0832f05b4b77386ba331ceb3de3543f2f612f", "language": "zh", "matched_nodes": ["#AUTH-PEER/div[0]", "#AUTH-PEER/div[4]/dl[0]/dd[1]", "#AUTH-PEER/p[2]", "#AUTH-PEER/p[5]"]}], "language": "zh", "original_text": {"/versions/12/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 20.9 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", "/versions/12/tables/0/title": "Documented method options and alternatives", "/versions/12/tables/0/columns/0/label": "Option or term", "/versions/12/tables/0/columns/1/label": "Meaning", "/versions/12/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 20.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "505c9c11d71834acd34b794ba58558c6ece1100bfeb76d0e4c5028658f62f794", "canonical_center_text_hash": "6ac2832ee0c927ff24916dfb98c1f392149bc85122cc6e89292a537540ae03df"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p><span>peer</span> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/12/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "13": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 13 English manual", "sha256": "c6f87296dd711c3ab4644ce850c13e55457e9454c846b8c9993a0ed83484a5ca"}, {"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-peer.html", "anchor": "", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "9f3769e6adb65aefbb8eb808ba947fa29af6098a72d27418496d262c7b78f933", "fragment_sha256": "029c3878984c99b192a859f4ad6828138a79ba905d27abda7a29d5b78f291454", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "e2f6868a0b471791b668525f3d7dff4440666cb4599d399f21b6518526b60de3", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "13", "text_hash": "263358bfe9a97c57366c7fcb1d81056d829baff6347b006b3207935dabbd796b", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/13/auth-peer.html", "anchor": "", "locale": "zh-Hans", "version": "13", "build_id": 66, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "9f3769e6adb65aefbb8eb808ba947fa29af6098a72d27418496d262c7b78f933", "fragment_sha256": "029c3878984c99b192a859f4ad6828138a79ba905d27abda7a29d5b78f291454", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "snapshot:sha256:a13a825c39f0268ef1cfe9137e283e38d0da73b2d7894f0733c7b26372a4f6a4", "translated_from_revision": null}, "body_sha256": "e2f6868a0b471791b668525f3d7dff4440666cb4599d399f21b6518526b60de3", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p><span class=\"productname\">peer</span> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/13/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "13", "link_map": {"/zh/docs/13/auth-peer.html": "/docs/13/auth-peer.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p><span>peer</span> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/13/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "133968bfa2a170c4e1a42e091dac8ad3c4fa881f6c08e12032ec05a4077434d1", "content_hash": "263358bfe9a97c57366c7fcb1d81056d829baff6347b006b3207935dabbd796b", "source_database": "center", "source_revision": "6ec3c82726af92b7dec873fa1cdf881eca92a4219787dfad05acb6b10e041fd6"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/13/auth-peer.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/13/auth-peer.html", "method": "same-major semantic node", "sha256": "37085487838d61586b06a75b558c77f1731b0ca631dfe46ffa5cc663b3007f92", "language": "zh", "matched_nodes": ["#AUTH-PEER/div[0]", "#AUTH-PEER/div[4]/dl[0]/dd[1]", "#AUTH-PEER/p[2]", "#AUTH-PEER/p[5]"]}], "language": "zh", "original_text": {"/versions/13/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 20.9 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", "/versions/13/tables/0/title": "Documented method options and alternatives", "/versions/13/tables/0/columns/0/label": "Option or term", "/versions/13/tables/0/columns/1/label": "Meaning", "/versions/13/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 20.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "5c4b0692a168f32cd225cee34b2f81a4523a143840ead85b13db823f10fe5753", "canonical_center_text_hash": "263358bfe9a97c57366c7fcb1d81056d829baff6347b006b3207935dabbd796b"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p><span>peer</span> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/13/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "14": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 21.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 14 English manual", "sha256": "5a4ad1c64b2d283a2b7df18c94949efc5e0b218bd481555b8a5973d8842d94f4"}, {"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-peer.html", "anchor": "", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "1d33f854c5f5c703a0454f9fcde840f1026e9a24b0221d449c341cae085aca77", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "6822f4b3e6826fc7e48ef45f1d444c74dd00a672274a76fc5662acee1cab30ef", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "14", "text_hash": "396f55657f8c89c105fa30ca2a2206c6274008481c526cb8e9f9ab0e8d1f979c", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 21.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/14/auth-peer.html", "anchor": "", "locale": "zh-Hans", "version": "14", "build_id": 99, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "1d33f854c5f5c703a0454f9fcde840f1026e9a24b0221d449c341cae085aca77", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:87e6aa4fd6e1ec85c5f4a6de4f5647cfd9e5de734ca2c266d32b6d6192c662ef", "translated_from_revision": null}, "body_sha256": "6822f4b3e6826fc7e48ef45f1d444c74dd00a672274a76fc5662acee1cab30ef", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code class=\"literal\">peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/14/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "14", "link_map": {"/zh/docs/14/auth-peer.html": "/docs/14/auth-peer.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/14/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "afb6b799847b1d3371aec6fc4bcfe408e05023539151e6d4c919ebefc0edff80", "content_hash": "396f55657f8c89c105fa30ca2a2206c6274008481c526cb8e9f9ab0e8d1f979c", "source_database": "center", "source_revision": "a7fa7ed3d558172355f51406097a7bd4f6b473be80f311ef7cda96bf383d8897"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 21.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/14/auth-peer.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/14/auth-peer.html", "method": "same-major semantic node", "sha256": "bec72ace97c1f2bf5de16a7eefa450e7148e1e6a9c5e17c018f3d04286ccef70", "language": "zh", "matched_nodes": ["#AUTH-PEER/div[0]", "#AUTH-PEER/div[4]/dl[0]/dd[1]", "#AUTH-PEER/p[2]", "#AUTH-PEER/p[5]"]}], "language": "zh", "original_text": {"/versions/14/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 21.9 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", "/versions/14/tables/0/title": "Documented method options and alternatives", "/versions/14/tables/0/columns/0/label": "Option or term", "/versions/14/tables/0/columns/1/label": "Meaning", "/versions/14/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 21.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "763ac22c40bc17053d2ba5633acadd60b5f523b5164816c3c50fd804bbd6537c", "canonical_center_text_hash": "396f55657f8c89c105fa30ca2a2206c6274008481c526cb8e9f9ab0e8d1f979c"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/14/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "15": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 21.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 15 English manual", "sha256": "53d44dfa937c5f355666c017e3b35dcb7dd8814e23e6fa2962e606afcc0b1160"}, {"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-peer.html", "anchor": "", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "9355e6a8177e343a452a716e053b25835cdee2b71d769801c3664fd93ab9247d", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "d3f210d76a0d7d27a32ac397764ca7ead20fc13648118b81a74d863763dfc9cf", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "15", "text_hash": "b6f1e8885d9c2b6e9927c5b516d37240e7fb134cc8804e04f5aba4b058a22e09", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 21.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/15/auth-peer.html", "anchor": "", "locale": "zh-Hans", "version": "15", "build_id": 101, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "9355e6a8177e343a452a716e053b25835cdee2b71d769801c3664fd93ab9247d", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:6bce1a2df9170cb1146a1411c5547190856638221a6539e618ee1016c9f493ad", "translated_from_revision": null}, "body_sha256": "d3f210d76a0d7d27a32ac397764ca7ead20fc13648118b81a74d863763dfc9cf", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code class=\"literal\">peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/15/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "15", "link_map": {"/zh/docs/15/auth-peer.html": "/docs/15/auth-peer.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/15/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "2a4b2f1d48d41cfc2bcca95856103a8ecd67cf853dd38aeadd19f84ac1ffa70e", "content_hash": "b6f1e8885d9c2b6e9927c5b516d37240e7fb134cc8804e04f5aba4b058a22e09", "source_database": "center", "source_revision": "e1a64a87a46b825b88c082e4518161a47aab53c45694964f8ba1df28f7859f89"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 21.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/15/auth-peer.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/15/auth-peer.html", "method": "same-major semantic node", "sha256": "d88fdf1e5dd7aeb2f8f15a865d6947d951aba4ed9a195e198fe480d36878fdcb", "language": "zh", "matched_nodes": ["#AUTH-PEER/div[0]", "#AUTH-PEER/div[4]/dl[0]/dd[1]", "#AUTH-PEER/p[2]", "#AUTH-PEER/p[5]"]}], "language": "zh", "original_text": {"/versions/15/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 21.9 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", "/versions/15/tables/0/title": "Documented method options and alternatives", "/versions/15/tables/0/columns/0/label": "Option or term", "/versions/15/tables/0/columns/1/label": "Meaning", "/versions/15/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 21.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "b4a40d35534617590f2d9ae958ad67eca945b25a96e5d7b3ef147109be1dbd6d", "canonical_center_text_hash": "b6f1e8885d9c2b6e9927c5b516d37240e7fb134cc8804e04f5aba4b058a22e09"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/15/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "16": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 21.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 16 English manual", "sha256": "bacfd0b795d1c997380f0242252ccebbbd0c94489ddeeeba551ea1783a441820"}, {"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-peer.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "ae992124e68bd8ab042fce843458cff306d76e0ddc998d2753bca4ef090716e7", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "ce43ec7fd54315bb50e5c28b27e990c63e927cfb1a88591946a53a5174da83e0", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "16", "text_hash": "f28297023a18cde4f7e4aa98f70b989898b5540fb00401950a66494be1059b5b", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 21.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/16/auth-peer.html", "anchor": "", "locale": "zh-Hans", "version": "16", "build_id": 103, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "ae992124e68bd8ab042fce843458cff306d76e0ddc998d2753bca4ef090716e7", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:80579a071736780f9c4022bb5148e1fb1256f1a33591306af67816e9e9bf3a9b", "translated_from_revision": null}, "body_sha256": "ce43ec7fd54315bb50e5c28b27e990c63e927cfb1a88591946a53a5174da83e0", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code class=\"literal\">peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/16/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "16", "link_map": {"/zh/docs/16/auth-peer.html": "/docs/16/auth-peer.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/16/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "0bf7ea0b4102a39d2a44d39a8bdab42b74f2a1a8e35565961b9b0d166e3bc21d", "content_hash": "f28297023a18cde4f7e4aa98f70b989898b5540fb00401950a66494be1059b5b", "source_database": "center", "source_revision": "c1575341fa7bd40f5274ea465b34390f4dc64cdd0770af327005caaeb9f6b7ed"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 21.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/16/auth-peer.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/16/auth-peer.html", "method": "same-major semantic node", "sha256": "c5a6e5b769ea180429a7d7dad1b2e0e3595bba6acc5cee625286d8a8d57ba891", "language": "zh", "matched_nodes": ["#AUTH-PEER/div[0]", "#AUTH-PEER/div[4]/dl[0]/dd[1]", "#AUTH-PEER/p[2]", "#AUTH-PEER/p[5]"]}], "language": "zh", "original_text": {"/versions/16/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 21.9 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", "/versions/16/tables/0/title": "Documented method options and alternatives", "/versions/16/tables/0/columns/0/label": "Option or term", "/versions/16/tables/0/columns/1/label": "Meaning", "/versions/16/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 21.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "c0eb5f204972993dfcac849095790563ce10e7bc490ae939b4af9ff547748dcf", "canonical_center_text_hash": "f28297023a18cde4f7e4aa98f70b989898b5540fb00401950a66494be1059b5b"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/16/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "17": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 17 English manual", "sha256": "265d8779dcb6fc58b376996fc98d4cbbb4a51934ec3da4adf0d45d0a912af3bb"}, {"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-peer.html", "anchor": "", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "028909b8233ddb5047037d31137b07085b0bb63d933663b547fd2e27994008fe", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "3dfefadc2eb0285033ae9d1bbbd0e5a0b8331658bd809fdb1fe49ff2aad1484b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "17", "text_hash": "68c3e4f4b1340fc703856bee822cecad3966786ecfd46f7f7f8b7ebf1b54d480", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/17/auth-peer.html", "anchor": "", "locale": "zh-Hans", "version": "17", "build_id": 105, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "028909b8233ddb5047037d31137b07085b0bb63d933663b547fd2e27994008fe", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:7340767258d21c21b36f373f1fff6bab2be18e0daca13a865129db6105c09efd", "translated_from_revision": null}, "body_sha256": "3dfefadc2eb0285033ae9d1bbbd0e5a0b8331658bd809fdb1fe49ff2aad1484b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code class=\"literal\">peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/17/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "17", "link_map": {"/zh/docs/17/auth-peer.html": "/docs/17/auth-peer.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/17/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "2b1a2efaae93296536bed8cfc2fb684737ff057b630661fe42aede9f69804cf7", "content_hash": "68c3e4f4b1340fc703856bee822cecad3966786ecfd46f7f7f8b7ebf1b54d480", "source_database": "center", "source_revision": "dd27f2b3c59e73ed14aa3324901242bf69a032a6347805f274e6260322d42979"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/17/auth-peer.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/17/auth-peer.html", "method": "same-major semantic node", "sha256": "dfee4d0b1590149eaee83c326e12b895e480f3cc65dbacb02bb5e6c38ef0940a", "language": "zh", "matched_nodes": ["#AUTH-PEER/div[0]", "#AUTH-PEER/div[4]/dl[0]/dd[1]", "#AUTH-PEER/p[2]", "#AUTH-PEER/p[5]"]}], "language": "zh", "original_text": {"/versions/17/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 20.9 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", "/versions/17/tables/0/title": "Documented method options and alternatives", "/versions/17/tables/0/columns/0/label": "Option or term", "/versions/17/tables/0/columns/1/label": "Meaning", "/versions/17/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 20.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "286b336ea05e63be6f3d4546068411e1f370c46dafc34190c9e86f8985b97ce8", "canonical_center_text_hash": "68c3e4f4b1340fc703856bee822cecad3966786ecfd46f7f7f8b7ebf1b54d480"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/17/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "18": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 18 English manual", "sha256": "86d38705f6b31453e2191708e816d77363fbc13bb8112c4dff6da88869258eac"}, {"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-peer.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "f7d24dc0e9ba91d791b35b3fb2629992221e154b72f9ae88d79ac0d97f247d13", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "92019e257518dcc7186fc501ea3b27e963047e778befb528f4b09daef27c7976", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "18", "text_hash": "7fdcf5a0ce45b96c555d1d1634a2bac28fc4891f82b00bdb95891dc816b4c8dd", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/auth-peer.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "f7d24dc0e9ba91d791b35b3fb2629992221e154b72f9ae88d79ac0d97f247d13", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "92019e257518dcc7186fc501ea3b27e963047e778befb528f4b09daef27c7976", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code class=\"literal\">peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/18/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "18", "link_map": {"/zh/docs/18/auth-peer.html": "/docs/18/auth-peer.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/18/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "b7cf46e535859c6f257c3ae2a75c298b82123dc1f8a74ea746657606dff2274c", "content_hash": "7fdcf5a0ce45b96c555d1d1634a2bac28fc4891f82b00bdb95891dc816b4c8dd", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/18/auth-peer.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/auth-peer.html", "method": "same-major semantic node", "sha256": "0255d766b4056a801e41ce39a00325b9a30bae58de10f82bb9323753cddbbd5b", "language": "zh", "matched_nodes": ["#AUTH-PEER/div[0]", "#AUTH-PEER/div[4]/dl[0]/dd[1]", "#AUTH-PEER/p[2]", "#AUTH-PEER/p[5]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 20.9 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", "/versions/18/tables/0/title": "Documented method options and alternatives", "/versions/18/tables/0/columns/0/label": "Option or term", "/versions/18/tables/0/columns/1/label": "Meaning", "/versions/18/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 20.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "ab77a89565f285871ce014491e4b8d35121676d4042da507010639722d6fe6d2", "canonical_center_text_hash": "7fdcf5a0ce45b96c555d1d1634a2bac28fc4891f82b00bdb95891dc816b4c8dd"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/18/auth-peer.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 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/docs/18/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "19": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 19 English manual", "sha256": "eac594b05cea58523f1b64aa1b8a33772ea0221b02b85a3f2e618ff801645223"}, {"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-peer.html", "anchor": "", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "98f883fe4fa2bb042d27459ae0a7962cc950f2a5b0549e0089b4920fa6871a82", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "c1a2605f3d9507c7ac6769a50b2a552bb6cc347f129165db05c89b634c43d29b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "19", "text_hash": "f16fd22780771ac6b9ea9b9b49d52a5966b8676acb7390c7dd2cbc9fc7e05837", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/19/auth-peer.html", "anchor": "", "locale": "zh-Hans", "version": "19", "build_id": 109, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "98f883fe4fa2bb042d27459ae0a7962cc950f2a5b0549e0089b4920fa6871a82", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:65fda1f1b62a89992b84014c9157e61b67dbe8190e93945826efec668fad038c", "translated_from_revision": "sha256:af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "body_sha256": "c1a2605f3d9507c7ac6769a50b2a552bb6cc347f129165db05c89b634c43d29b", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code class=\"literal\">peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/19/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "19", "link_map": {"/zh/docs/19/auth-peer.html": "/docs/19/auth-peer.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/19/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "a232e6cb34111f7db810c6c3e0f8faacb97dc75dfa3ba7674cd0b858035905a1", "content_hash": "f16fd22780771ac6b9ea9b9b49d52a5966b8676acb7390c7dd2cbc9fc7e05837", "source_database": "center", "source_revision": "af105fc8e960fc836a09fc2cd7f582b49fd17675d9d36631abe3a565bfd7d701"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/19/auth-peer.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/19/auth-peer.html", "method": "same-major semantic node", "sha256": "b3d5de24b729e6f3e0fd223daa554f7e15e74f1785792b978fddba0e464cf882", "language": "zh", "matched_nodes": ["#AUTH-PEER/div[0]", "#AUTH-PEER/div[4]/dl[0]/dd[1]", "#AUTH-PEER/p[2]", "#AUTH-PEER/p[5]"]}], "language": "zh", "original_text": {"/versions/19/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 20.9 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", "/versions/19/tables/0/title": "Documented method options and alternatives", "/versions/19/tables/0/columns/0/label": "Option or term", "/versions/19/tables/0/columns/1/label": "Meaning", "/versions/19/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 20.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "402f65b81602486093216f93013b2bed808862e0591fe56a4d999334ff8c53ff", "canonical_center_text_hash": "f16fd22780771ac6b9ea9b9b49d52a5966b8676acb7390c7dd2cbc9fc7e05837"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/19/auth-peer.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": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 20 English manual", "sha256": "04912a3fc0e33d270dc68fe42bf3b16d73e4f42dc62236a88ef37bffacc62a16"}, {"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-peer.html", "anchor": "", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "e0ce7ab77a55dc60b12d0ff8e8101d8f5b5762a822b72f69fd66d5fe0028723e", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "7aba032ac71e1c916806b02cbcb6556461278c48c88b386b421c6320a9efd517", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "20", "text_hash": "809ae345a0b8c501bfb038a5330e2f73e8a45ed2aa9194a7bb49f6f45083a227", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/devel/auth-peer.html", "anchor": "", "locale": "zh-Hans", "version": "20", "build_id": 111, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "e0ce7ab77a55dc60b12d0ff8e8101d8f5b5762a822b72f69fd66d5fe0028723e", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:98c980963b401d40bd50df72b909e7523e3148b8fdb48edd897de2efb67e5235", "translated_from_revision": "sha256:49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "body_sha256": "7aba032ac71e1c916806b02cbcb6556461278c48c88b386b421c6320a9efd517", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code class=\"literal\">peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/devel/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "20", "link_map": {"/zh/docs/devel/auth-peer.html": "/docs/devel/auth-peer.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/devel/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "01d109056e8acf9250fde30c6d7b949eda7ba1a2d6ecb784dd9349ec5f3424d0", "content_hash": "809ae345a0b8c501bfb038a5330e2f73e8a45ed2aa9194a7bb49f6f45083a227", "source_database": "center", "source_revision": "49c73aa4c9cacef8ca979276a28ac416c08e9e54c9baee4ae5fd116a35fa13ac"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/devel/auth-peer.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/devel/auth-peer.html", "method": "same-major semantic node", "sha256": "0ef1fd791c5796e824c942212e03534e52e2ed7e29e1b7b925c6025c69108cba", "language": "zh", "matched_nodes": ["#AUTH-PEER/div[0]", "#AUTH-PEER/div[4]/dl[0]/dd[1]", "#AUTH-PEER/p[2]", "#AUTH-PEER/p[5]"]}], "language": "zh", "original_text": {"/summary": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 20.9 for details.", "/category": "Authentication and access control", "/versions/20/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 20.9 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", "/versions/20/tables/0/title": "Documented method options and alternatives", "/versions/20/tables/0/columns/0/label": "Option or term", "/versions/20/tables/0/columns/1/label": "Meaning", "/versions/20/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 20.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "0049bd3e8bfd926dc197a75eb5cc91edb0b197eaf7b1a4e250f46f4abae984de", "canonical_center_text_hash": "809ae345a0b8c501bfb038a5330e2f73e8a45ed2aa9194a7bb49f6f45083a227"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/devel/auth-peer.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": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "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-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 18 English manual", "sha256": "86d38705f6b31453e2191708e816d77363fbc13bb8112c4dff6da88869258eac"}, {"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-peer.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "f7d24dc0e9ba91d791b35b3fb2629992221e154b72f9ae88d79ac0d97f247d13", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "92019e257518dcc7186fc501ea3b27e963047e778befb528f4b09daef27c7976", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "facts_zh": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"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": "peer", "locale": "zh-Hans", "source": {"key": "peer", "locale": "zh-Hans", "version": "18", "text_hash": "7fdcf5a0ce45b96c555d1d1634a2bac28fc4891f82b00bdb95891dc816b4c8dd", "collection": "auth", "dataset_hash": "7c31b524dfe136022d39a6ae8dcfac6b3bbd5f8fdaf422536599981252aff0c9", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "payload": {"facts": [{"label": "\u65b9\u6cd5", "value": "peer"}, {"label": "\u914d\u7f6e", "value": "pg_hba.conf"}, {"label": "\u6e05\u5355", "value": "\u7528\u6237\u53ef\u89c1\u7684\u6e90\u7801\u8ba4\u8bc1\u65b9\u6cd5"}], "tables": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "zh_from": {"kind": "same-version-chinese-manual-with-source-derived-structured-summary", "manual": {"url": "/zh/docs/18/auth-peer.html", "anchor": "", "locale": "zh-Hans", "version": "18", "build_id": 107, "page_key": "auth-peer.html", "extraction": "concept-introduction", "source_hash": "f7d24dc0e9ba91d791b35b3fb2629992221e154b72f9ae88d79ac0d97f247d13", "fragment_sha256": "be5965a07959e1c4179ee82ad9a88e08516a152b09dc3adc9af2d4ed3ba8fcbc", "source_revision": "unknown:rendered-translation-baseline", "translation_revision": "git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b", "translated_from_revision": null}, "body_sha256": "92019e257518dcc7186fc501ea3b27e963047e778befb528f4b09daef27c7976", "runtime_rerun": false, "authored_translation": "source-derived-structured-summary", "source_facts_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "sections": [], "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code class=\"literal\">peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code class=\"function\">getpeereid()</code> \u51fd\u6570\u3001<code class=\"symbol\">SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span class=\"systemitem\">Linux</span>\u3001\u5927\u591a\u6570 <span class=\"systemitem\">BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span class=\"systemitem\">macOS</span>\uff09\u4ee5\u53ca <span class=\"systemitem\">Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/18/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "summary": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "version": "18", "link_map": {"/zh/docs/18/auth-peer.html": "/docs/18/auth-peer.html"}, "body_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/18/auth-peer.html\" rel=\"nofollow\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>", "body_sha256": "b7cf46e535859c6f257c3ae2a75c298b82123dc1f8a74ea746657606dff2274c", "content_hash": "7fdcf5a0ce45b96c555d1d1634a2bac28fc4891f82b00bdb95891dc816b4c8dd", "source_database": "center", "source_revision": "555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}, "signature": "", "tables_zh": [{"key": "method-options", "rows": [{"name": "map", "description": "\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1 \u7b2c 20.2 \u8282 \u3002"}], "title": "\u624b\u518c\u4e2d\u7684\u65b9\u6cd5\u9009\u9879\u4e0e\u66ff\u4ee3\u65b9\u5f0f", "columns": [{"key": "name", "label": "\u9009\u9879\u6216\u672f\u8bed"}, {"key": "description", "label": "\u542b\u4e49"}]}], "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002"], "manual_html": "", "manual_path": "/docs/18/auth-peer.html", "sections_zh": [], "localization": {"status": "complete", "sources": [{"url": "/docs/18/auth-peer.html", "method": "same-major semantic node", "sha256": "0255d766b4056a801e41ce39a00325b9a30bae58de10f82bb9323753cddbbd5b", "language": "zh", "matched_nodes": ["#AUTH-PEER/div[0]", "#AUTH-PEER/div[4]/dl[0]/dd[1]", "#AUTH-PEER/p[2]", "#AUTH-PEER/p[5]"]}], "language": "zh", "original_text": {"/versions/18/description/0": "Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 20.9 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", "/versions/18/tables/0/title": "Documented method options and alternatives", "/versions/18/tables/0/columns/0/label": "Option or term", "/versions/18/tables/0/columns/1/label": "Meaning", "/versions/18/tables/0/rows/0/description": "Allows for mapping between system and database user names. See Section 20.2 for details."}, "fallback_fields": [], "source_language": "en", "original_snapshot_sha256": "ab77a89565f285871ce014491e4b8d35121676d4042da507010639722d6fe6d2", "canonical_center_text_hash": "7fdcf5a0ce45b96c555d1d1634a2bac28fc4891f82b00bdb95891dc816b4c8dd"}, "description_zh": "\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002", "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh", "description_zh_html": "<p>\u8ba4\u8bc1\u65b9\u6cd5 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/zh/docs/18/auth-peer.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 peer\u3002</p><dl><dt>\u7d22\u5f15\u8bbf\u95ee\u65b9\u6cd5</dt><dd><code>peer</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    Peer \u8ba4\u8bc1\u901a\u8fc7\u4ece\u5185\u6838\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u628a\u5b83\u7528\u4f5c\u88ab\u5141\u8bb8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\uff08\u53ef\u7ed3\u5408\u53ef\u9009\u7684\u7528\u6237\u540d\u6620\u5c04\uff09\u6765\u5de5\u4f5c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ea\u652f\u6301\u672c\u5730\u8fde\u63a5\u3002\n   </p><p>\n<code>peer</code> \u652f\u6301\u4e0b\u5217\u914d\u7f6e\u9009\u9879\uff1a\n    </p><p>\n    Peer \u8ba4\u8bc1\u53ea\u5728\u63d0\u4f9b <code>getpeereid()</code> \u51fd\u6570\u3001<code>SO_PEERCRED</code> \u5957\u63a5\u5b57\u53c2\u6570\u6216\u7c7b\u4f3c\u673a\u5236\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u53ef\u7528\u3002\u76ee\u524d\u8fd9\u5305\u62ec <span>Linux</span>\u3001\u5927\u591a\u6570 <span>BSD</span> \u53d8\u79cd\uff08\u5305\u62ec <span>macOS</span>\uff09\u4ee5\u53ca <span>Solaris</span>\u3002\n   </p><p><a href=\"/docs/18/auth-peer.html\">\u67e5\u770b\u5b8c\u6574\u4e2d\u6587\u624b\u518c\u4e0e\u4e0a\u4e0b\u6587</a>\u3002</p>"}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}