{"kind": "auth", "major": "18", "item": {"slug": "peer", "name": "peer", "name_zh": "", "category": "\u8eab\u4efd\u8ba4\u8bc1\u4e0e\u8bbf\u95ee\u63a7\u5236", "summary": "\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 20.9 \u8282\u3002", "aliases": [], "content_hash": "ebb0e8500af387d3d48fadbe75fbbc8455427ec4144d50fb41ea6f96af556211", "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": "https://pg.center/docs/10/auth-methods.html#AUTH-PEER", "path": "auth-methods.html", "label": "PostgreSQL 10 English manual", "sha256": "856d36a3fdfe8c45a25832e49bd07e9b7480f2ff9a33e58ac7c392630149bc34", "language": "en", "original_url": "/docs/10/auth-methods.html#AUTH-PEER"}, {"url": "https://pg.center/docs/10/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 10 English manual", "sha256": "04fed609a50e8fd3013ffebb83039c544d39b6c73a6c2b2e23cd7864a70b42da", "language": "en", "original_url": "/docs/10/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 20.3.6 \u8282\u3002"], "manual_html": "<div class=\"sect2\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h3 class=\"title\" lang=\"zh\"><span class=\"sect2\"><a href=\"/docs/10/auth-methods.html#AUTH-PEER\">20.3.6. Peer \u8ba4\u8bc1</a></span></h3>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/10/auth-username-maps.html\" title=\"20.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a020.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/10/auth-methods.html#AUTH-PEER", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}, "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": "https://pg.center/docs/11/auth-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 11 English manual", "sha256": "188f7087809cd40aae88600cb53c464279b98d1cbab9cdd30eac60454b70fb5f", "language": "en", "original_url": "/docs/11/auth-peer.html"}, {"url": "https://pg.center/docs/11/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 11 English manual", "sha256": "5477c61a002171f5b4c462052d91231c405f39d89d825faf71e52fbae358eef7", "language": "en", "original_url": "/docs/11/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 20.9 \u8282\u3002"], "manual_html": "<div class=\"sect1\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">20.9.\u00a0Peer \u8ba4\u8bc1 </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/11/auth-username-maps.html\" title=\"20.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a020.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/11/auth-peer.html", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}, "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": "https://pg.center/docs/12/auth-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 12 English manual", "sha256": "3f24b2807eed57381e0f2f936f317122acfaa13a7b63b2ab7b528854b5cc84ee", "language": "en", "original_url": "/docs/12/auth-peer.html"}, {"url": "https://pg.center/docs/12/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 12 English manual", "sha256": "07e8cddcb38076c86dab95b72c4380a7a325f22401b5b7f9af5dd4931876f2cb", "language": "en", "original_url": "/docs/12/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 20.9 \u8282\u3002"], "manual_html": "<div class=\"sect1\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">20.9.\u00a0Peer \u8ba4\u8bc1 </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/12/auth-username-maps.html\" title=\"20.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a020.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/12/auth-peer.html", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}, "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": "https://pg.center/docs/13/auth-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 13 English manual", "sha256": "c6f87296dd711c3ab4644ce850c13e55457e9454c846b8c9993a0ed83484a5ca", "language": "en", "original_url": "/docs/13/auth-peer.html"}, {"url": "https://pg.center/docs/13/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 13 English manual", "sha256": "3cc6ce851945cba450e6b26ecf9cae1efd3c03fb7b55e17876f4d9ea418a7c2e", "language": "en", "original_url": "/docs/13/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 20.9 \u8282\u3002"], "manual_html": "<div class=\"sect1\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">20.9.\u00a0Peer \u8ba4\u8bc1 </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/13/auth-username-maps.html\" title=\"20.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a020.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/13/auth-peer.html", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}, "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": "https://pg.center/docs/14/auth-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 14 English manual", "sha256": "5a4ad1c64b2d283a2b7df18c94949efc5e0b218bd481555b8a5973d8842d94f4", "language": "en", "original_url": "/docs/14/auth-peer.html"}, {"url": "https://pg.center/docs/14/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 14 English manual", "sha256": "c9a75f04fd4a1069ea261ba061578a75c47a4b7e0bbf88761502fd4c19ccbc3f", "language": "en", "original_url": "/docs/14/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 21.9 \u8282\u3002"], "manual_html": "<div class=\"sect1\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">21.9.\u00a0Peer \u8ba4\u8bc1 </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/14/auth-username-maps.html\" title=\"21.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a021.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/14/auth-peer.html", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}, "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": "https://pg.center/docs/15/auth-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 15 English manual", "sha256": "53d44dfa937c5f355666c017e3b35dcb7dd8814e23e6fa2962e606afcc0b1160", "language": "en", "original_url": "/docs/15/auth-peer.html"}, {"url": "https://pg.center/docs/15/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 15 English manual", "sha256": "0470cd3eeb82cbc32d4b8b79e29f4427bdfd01f5bb15e6d9b7cee2f6dd2bba44", "language": "en", "original_url": "/docs/15/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 21.9 \u8282\u3002"], "manual_html": "<div class=\"sect1\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">21.9.\u00a0Peer \u8ba4\u8bc1 </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/15/auth-username-maps.html\" title=\"21.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a021.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/15/auth-peer.html", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}, "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": "https://pg.center/docs/16/auth-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 16 English manual", "sha256": "bacfd0b795d1c997380f0242252ccebbbd0c94489ddeeeba551ea1783a441820", "language": "en", "original_url": "/docs/16/auth-peer.html"}, {"url": "https://pg.center/docs/16/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 16 English manual", "sha256": "ccc5146375a184646d5992edbc693e12c0de4431a35141d6b56c8dd6b3c52132", "language": "en", "original_url": "/docs/16/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 21.9 \u8282\u3002"], "manual_html": "<div class=\"sect1\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">21.9.\u00a0Peer \u8ba4\u8bc1 </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/16/auth-username-maps.html\" title=\"21.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a021.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/16/auth-peer.html", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}, "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": "https://pg.center/docs/17/auth-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 17 English manual", "sha256": "265d8779dcb6fc58b376996fc98d4cbbb4a51934ec3da4adf0d45d0a912af3bb", "language": "en", "original_url": "/docs/17/auth-peer.html"}, {"url": "https://pg.center/docs/17/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 17 English manual", "sha256": "00c7a7c25d46aa1b2f24cd744cd4990ca4218cfafed2a4cab8c1dc1092090bba", "language": "en", "original_url": "/docs/17/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 20.9 \u8282\u3002"], "manual_html": "<div class=\"sect1\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">20.9.\u00a0Peer \u8ba4\u8bc1 </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/17/auth-username-maps.html\" title=\"20.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a020.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/17/auth-peer.html", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}, "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": "https://pg.center/docs/18/auth-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 18 English manual", "sha256": "86d38705f6b31453e2191708e816d77363fbc13bb8112c4dff6da88869258eac", "language": "en", "original_url": "/docs/18/auth-peer.html"}, {"url": "https://pg.center/docs/18/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 18 English manual", "sha256": "6340d4abea2e0a3482afc31bcd1599a0fa10dc28a6f1e05d79ba831e2dd0b4c9", "language": "en", "original_url": "/docs/18/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 20.9 \u8282\u3002"], "manual_html": "<div class=\"sect1\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">20.9.\u00a0Peer \u8ba4\u8bc1 </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/18/auth-username-maps.html\" title=\"20.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a020.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/18/auth-peer.html", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}, "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/v19beta4/postgresql-19beta4.tar.bz2", "label": "19beta4", "major": "19", "channel": "preview", "revision": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86", "source_sha256": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86", "catalog_fingerprint": "62fbf1a3689dbe8bf7e6b3372cfe6fbf867581427b3858a94c8419b77a4d2d1d"}, "sources": [{"url": "https://ftp.postgresql.org/pub/source/v19beta4/postgresql-19beta4.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "83157ee9c599d03b2f7a3d73ef3a56ec24e0e79cc2b3501a64d1364f56398c86"}, {"url": "https://pg.center/docs/19/auth-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 19 English manual", "sha256": "815d355428e08326052cc334a55c8e7efdf9c104af8ca1e2a776e26b3d3d6ee1", "language": "en", "original_url": "/docs/19/auth-peer.html"}, {"url": "https://pg.center/docs/19/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 19 English manual", "sha256": "d05e9155d5388148c2c680ff208b62c6b3b0b1c30f302ada5ab4befec36c19b7", "language": "en", "original_url": "/docs/19/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 20.9 \u8282\u3002"], "manual_html": "<div class=\"sect1\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">20.9.\u00a0Peer \u8ba4\u8bc1 </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/19/auth-username-maps.html\" title=\"20.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a020.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/19/auth-peer.html", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}, "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": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41", "source_sha256": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41", "catalog_fingerprint": "398fbb9f262264053c02fbf79f88be0a6770c1473faa6ecd5931d6ec41b8258b", "source_snapshot_utc": "26-Sep-2026 20:22"}, "sources": [{"url": "https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2", "label": "Matching PostgreSQL source archive", "sha256": "4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"}, {"url": "https://pg.center/docs/devel/auth-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 20 English manual", "sha256": "b3685f69e53c59ed779893c1bc5b444f2234c8f8c2c659da7512d6d00b370721", "language": "en", "original_url": "/docs/devel/auth-peer.html"}, {"url": "https://pg.center/docs/devel/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 20 English manual", "sha256": "cf2069461da3eec62f6fb4e3df8e46fd69ff4b3a2ad059eec355cee256d7996e", "language": "en", "original_url": "/docs/devel/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 20.9 \u8282\u3002"], "manual_html": "<div class=\"sect1\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">20.9.\u00a0Peer \u8ba4\u8bc1 </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/devel/auth-username-maps.html\" title=\"20.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a020.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/devel/auth-peer.html", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}}}, "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": "https://pg.center/docs/18/auth-peer.html", "path": "auth-peer.html", "label": "PostgreSQL 18 English manual", "sha256": "86d38705f6b31453e2191708e816d77363fbc13bb8112c4dff6da88869258eac", "language": "en", "original_url": "/docs/18/auth-peer.html"}, {"url": "https://pg.center/docs/18/auth-pg-hba-conf.html", "path": "auth-pg-hba-conf.html", "label": "PostgreSQL 18 English manual", "sha256": "6340d4abea2e0a3482afc31bcd1599a0fa10dc28a6f1e05d79ba831e2dd0b4c9", "language": "en", "original_url": "/docs/18/auth-pg-hba-conf.html"}], "sections": [], "signature": "", "attributes": {"method": "peer", "inventory": "User-visible source authentication method", "configuration": "pg_hba.conf"}, "description": ["\u4ece\u64cd\u4f5c\u7cfb\u7edf\u83b7\u53d6\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\u540d\uff0c\u5e76\u68c0\u67e5\u5176\u662f\u5426\u4e0e\u8bf7\u6c42\u7684\u6570\u636e\u5e93\u7528\u6237\u540d\u5339\u914d\u3002\u4ec5\u9002\u7528\u4e8e\u672c\u5730\u8fde\u63a5\u3002\u8be6\u60c5\u53c2\u89c1\u7b2c 20.9 \u8282\u3002"], "manual_html": "<div class=\"sect1\" id=\"AUTH-PEER\">\n<div class=\"titlepage\">\n<div>\n<div>\n<h2 class=\"title\" lang=\"zh\">\n<div>\n<div>\n<h2 class=\"title\" style=\"clear: both\">20.9.\u00a0Peer \u8ba4\u8bc1 </h2>\n</div>\n</div>\n</h2>\n</div>\n</div>\n</div>\n<p lang=\"zh\">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</p>\n<p lang=\"zh\">peer \u652f\u6301\u4ee5\u4e0b\u914d\u7f6e\u9009\u9879\uff1a</p>\n<div class=\"variablelist\">\n<dl class=\"variablelist\">\n<dt><span class=\"term\"><code class=\"literal\">map</code></span></dt>\n<dd>\n<p lang=\"zh\">\n<p>\u5141\u8bb8\u5728\u7cfb\u7edf\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u7528\u6237\u540d\u4e4b\u95f4\u8fdb\u884c\u6620\u5c04\u3002\u8be6\u89c1<a class=\"xref\" href=\"/docs/18/auth-username-maps.html\" title=\"20.2.\u00a0\u7528\u6237\u540d\u6620\u5c04\">\u7b2c\u00a020.2\u00a0\u8282</a>\u3002</p>\n</p>\n</dd>\n</dl>\n</div>\n<p lang=\"zh\">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</p>\n</div>", "manual_path": "/docs/18/auth-peer.html", "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"}, "comparison_data": {"method": "peer", "documented_option_names": ["map"]}, "comparison_hash": "45b9d1e2b3d7866cecb030ab10781f5e9a18a5ec1f244d9e811ee7a623c656ef", "manual_language": "zh"}, "comparison": {"left": "17", "right": "18", "status": "unchanged", "diff": ""}}