{"id":1160,"date":"2026-09-12T04:29:00","date_gmt":"2026-09-12T04:29:00","guid":{"rendered":"https:\/\/hyc.eshachem.com\/program\/?p=1160"},"modified":"2026-09-12T05:12:45","modified_gmt":"2026-09-12T05:12:45","slug":"rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab","status":"publish","type":"post","link":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/","title":{"rendered":"RAG &#8211; \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u672c\u7bc7\u6703\u6559\u4f60\u5982\u4f55\u5728\u672c\u5730 (\u672c\u6a5f) \uff0c\u5f9e PostgreSQL Server \u958b\u59cb\uff0c\u5230\u8996\u89ba\u5316\u7ba1\u7406\u4ecb\u9762\u8edf\u9ad4 DataGrip\u7684\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%e5%ae%89%e8%a3%9d-postgresql-server\">\u5b89\u88dd PostgreSQL Server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5230 PostgreSQL \u5b98\u65b9 Windows Installer\uff1a<a href=\"https:\/\/www.postgresql.org\/download\/windows\/?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">PostgreSQL Windows Installer<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b89\u88dd\u6642\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PostgreSQL\uff1a\u5b89\u88dd<\/li>\n\n\n\n<li>pgAdmin\uff1a\u53ef\u88dd\u53ef\u4e0d\u88dd\uff0c\u56e0\u70ba\u4e4b\u5f8c\u4e3b\u8981\u7528 DataGrip<\/li>\n\n\n\n<li>Stack Builder\uff1a\u53ef\u4ee5\u4e0d\u7528<\/li>\n\n\n\n<li>Port\uff1a<code>5432<\/code><\/li>\n\n\n\n<li>Username\uff1a<code>postgres<\/code><\/li>\n\n\n\n<li>Password\uff1a\u81ea\u5df1\u8a2d\u5b9a<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e6%aa%a2%e6%9f%a5-postgresql-%e6%98%af%e5%90%a6%e5%ae%89%e8%a3%9d%e6%88%90%e5%8a%9f\"><strong>\u6aa2\u67e5 PostgreSQL \u662f\u5426\u5b89\u88dd\u6210\u529f<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6253\u958b\u4f60\u7684\u7d42\u7aef\u6a5f\uff08Mac \u7684 Terminal \u6216 Windows \u7684 Command Prompt \/ PowerShell\uff09\uff0c\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u4f86\u78ba\u8a8d\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6aa2\u67e5\u80cc\u666f\u670d\u52d9\u662f\u5426\u904b\u884c<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li><strong>Mac<\/strong>\uff1a\u8f38\u5165 <code>brew services list<\/code>\uff08\u5982\u679c\u662f\u7528 Homebrew \u5b89\u88dd\u7684\uff09\uff0c\u78ba\u8a8d PostgreSQL \u72c0\u614b\u662f <code>started<\/code>\u3002<\/li>\n\n\n\n<li><strong>Windows<\/strong>\uff1a\u6309 <code>Win + R<\/code> \u8f38\u5165 <code>services.msc<\/code>\uff0c\u5728\u6e05\u55ae\u4e2d\u627e\u5230 <code>postgresql-x64-XX<\/code>\uff0c\u78ba\u8a8d\u72c0\u614b\u662f\u5426\u70ba\u300c\u6b63\u5728\u57f7\u884c\u300d\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u6aa2\u67e5\u6307\u4ee4\u5de5\u5177<\/strong>\uff1a\u8f38\u5165 <code>psql --version<\/code>\u3002\u5982\u679c\u756b\u9762\u56de\u50b3\u7248\u672c\u865f\uff08\u4f8b\u5982 <code>psql (PostgreSQL) 15.x<\/code>\uff09\uff0c\u4ee3\u8868 PostgreSQL \u4e3b\u7a0b\u5f0f\u5df2\u7d93\u5b89\u88dd\u4e14\u7cfb\u7d71\u8a8d\u5f97\u5b83\u3002\u5982\u679c\u986f\u793a\u300c\u627e\u4e0d\u5230\u6307\u4ee4\u300d\uff0c\u4e5f\u4e0d\u7528\u614c\uff0c\u901a\u5e38\u53ea\u662f\u74b0\u5883\u8b8a\u6578\u6c92\u8a2d\u5b9a\u597d\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%e5%ae%89%e8%a3%9d-datagrip\">\u5b89\u88dd <strong>DataGrip<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u5f80\u5b98\u7db2\u5b89\u88dd\uff1a<a href=\"https:\/\/www.jetbrains.com\/datagrip\">https:\/\/www.jetbrains.com\/datagrip<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e5%9c%a8-datagrip-%e9%80%b2%e8%a1%8c%e9%80%a3%e7%b7%9a%e6%b8%ac%e8%a9%a6\"><strong>\u5728 DataGrip \u9032\u884c\u9023\u7dda\u6e2c\u8a66<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6253\u958b DataGrip\uff0c\u6309\u7167\u4ee5\u4e0b\u9810\u8a2d\u503c\u6e2c\u8a66\u662f\u5426\u80fd\u9806\u5229\u901a\u8eca\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9ede\u64ca\u5de6\u4e0a\u89d2\u7684 <code>+<\/code> \u865f &gt; <strong>Data Source<\/strong> &gt; <strong>PostgreSQL<\/strong>\u3002<\/li>\n\n\n\n<li>\u8f38\u5165\u57fa\u672c\u7684\u9023\u7dda\u53c3\u6578\uff1a\n<ul class=\"wp-block-list\">\n<li><strong>Host<\/strong>: <code>localhost<\/code><\/li>\n\n\n\n<li><strong>Port<\/strong>: <code>5432<\/code><\/li>\n\n\n\n<li><strong>User<\/strong>: <code>postgres<\/code>\uff08\u9810\u8a2d\u7ba1\u7406\u54e1\u5e33\u865f\uff09<\/li>\n\n\n\n<li><strong>Password<\/strong>: \u8f38\u5165\u4f60\u5728\u5b89\u88dd\u904e\u7a0b\u4e2d\u81ea\u5df1\u8a2d\u5b9a\u7684\u90a3\u7d44\u5bc6\u78bc\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u9ede\u64ca\u756b\u9762\u4e0b\u65b9\u7684 <strong>Test Connection<\/strong>\u3002\u7b2c\u4e00\u6b21\u4f7f\u7528\u53ef\u80fd\u9700\u8981\u9ede\u4e00\u4e0b\u65c1\u908a\u7684\u300cDownload Driver\u300d\u4f86\u4e0b\u8f09\u9a45\u52d5\u7a0b\u5f0f\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u6e2c\u8a66\u9023\u7dda\u51fa\u73fe\u7da0\u8272\u6253\u52fe\uff08Succeeded\uff09\uff0c\u4ee3\u8868\u4f60\u7684\u74b0\u5883\u4e00\u5207\u6b63\u5e38\uff0c\u53ef\u4ee5\u76f4\u63a5\u958b\u59cb\u5efa\u7acb\u8cc7\u6599\u5eab\u4e86\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%e5%ae%89%e8%a3%9d-docker-desktop\">\u5b89\u88dd Docker Desktop<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8981\u8b93\u4f60\u7684 PostgreSQL \u652f\u63f4 RAG\uff0c\u6838\u5fc3\u95dc\u9375\u5c31\u662f\u555f\u7528 <strong><code>pgvector<\/code><\/strong> \u64f4\u5145\u529f\u80fd\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u70ba\u5728 Windows \u4e0a\u539f\u751f\u5b89\u88dd <code>pgvector<\/code> \u9700\u8981\u900f\u904e Visual Studio \u7de8\u8b6f\u539f\u59cb\u78bc\uff0c\u5c0d\u65b0\u624b\u4f86\u8aaa\u6bd4\u8f03\u7e41\u7463\u3002\u6700\u63a8\u85a6\u4e14\u7701\u4e8b\u7684\u65b9\u5f0f\u662f\u6539\u7528 <strong>Docker<\/strong> \u4f86\u8dd1\u5e36\u6709 <code>pgvector<\/code> \u7684 PostgreSQL\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7c21\u55ae\u4f86\u8aaa\u56e0\u70ba\u6211\u5011\u6703\u9700\u8981\u5411\u91cf\u8cc7\u6599\u5eab\uff0c\u800c\u539f\u751f<strong> PostgreSQL<\/strong> \u4e26\u4e0d\u5305\u542b\uff0c\u6240\u4ee5\u9700\u8981\u53e6\u5916\u5b89\u88dd\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u5f80\u5b98\u7db2\u5b89\u88dd\uff1a<a href=\"https:\/\/docs.docker.com\/desktop\/setup\/install\/windows-install\">https:\/\/docs.docker.com\/desktop\/setup\/install\/windows-install<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%e4%b8%8b%e8%bc%89%e6%98%a0%e5%83%8f%e6%aa%94\">\u4e0b\u8f09\u6620\u50cf\u6a94<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u547d\u53e6\u63d0\u793a\u5b57\u5143\u4e2d\u8f38\u5165\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">docker run --name pg-vector -e POSTGRES_PASSWORD=\u8f38\u5165\u4f60\u5728\u5b89\u88dd\u904e\u7a0b\u4e2d\u81ea\u5df1\u8a2d\u5b9a\u7684\u90a3\u7d44\u5bc6\u78bc -p 5432:5432 -d ankane\/pgvector<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u770b\u5230\u8f38\u51fa\u4e00\u4e32\u9577\u5b57\u4e32\uff0c\u5c31\u4ee3\u8868 <code>pg-vector<\/code> \u5bb9\u5668\u5df2\u7d93\u6210\u529f\u5728\u80cc\u666f\u8dd1\u8d77\u4f86\u4e86\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%e5%bb%ba%e7%ab%8b%e9%80%a3%e7%b7%9a\">\u5efa\u7acb\u9023\u7dda<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6253\u958b DataGrip\uff0c\u5efa\u7acb\u4e00\u500b\u65b0\u7684 PostgreSQL \u8cc7\u6599\u6e90\uff0c\u586b\u5165\u4ee5\u4e0b\u8cc7\u8a0a\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Host<\/strong>: <code>localhost<\/code><\/li>\n\n\n\n<li><strong>Port<\/strong>: <code>5432<\/code><\/li>\n\n\n\n<li><strong>User<\/strong>: <code>postgres<\/code><\/li>\n\n\n\n<li><strong>Password<\/strong>: <code>\u8f38\u5165\u4f60\u5728\u5b89\u88dd\u904e\u7a0b\u4e2d\u81ea\u5df1\u8a2d\u5b9a\u7684\u90a3\u7d44\u5bc6\u78bc <\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u9ede\u64ca <strong>Test Connection<\/strong>\u3002\u5982\u679c\u756b\u9762\u4eae\u8d77\u7da0\u71c8\uff0c\u986f\u793a\u9023\u7dda\u6210\u529f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e5%bb%ba%e7%ab%8b%e5%90%91%e9%87%8f%e8%b3%87%e6%96%99%e5%ba%ab\">\u5efa\u7acb\u5411\u91cf\u8cc7\u6599\u5eab<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 DataGrip \u7684 Query Console \u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">CREATE EXTENSION IF NOT EXISTS vector;<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u770b\u5230\u8f38\u51fa\uff1a<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-attr\">[2026-09-12 12:14:39]<\/span> <span class=\"hljs-selector-tag\">Connected<\/span>\n<span class=\"hljs-selector-attr\">[2026-09-12 12:14:39]<\/span> <span class=\"hljs-selector-tag\">postgres<\/span>&gt; <span class=\"hljs-selector-tag\">CREATE<\/span> <span class=\"hljs-selector-tag\">EXTENSION<\/span> <span class=\"hljs-selector-tag\">IF<\/span> <span class=\"hljs-selector-tag\">NOT<\/span> <span class=\"hljs-selector-tag\">EXISTS<\/span> <span class=\"hljs-selector-tag\">vector<\/span>\n<span class=\"hljs-selector-attr\">[2026-09-12 12:14:39]<\/span> <span class=\"hljs-selector-tag\">completed<\/span> <span class=\"hljs-selector-tag\">in<\/span> 49 <span class=\"hljs-selector-tag\">ms<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\u4ee3\u8868\u4f60\u7684\u672c\u6a5f PostgreSQL + <code>pgvector<\/code> \u958b\u767c\u74b0\u5883\u5df2\u7d93\u5b8c\u6574\u5efa\u7f6e\u5b8c\u7562\uff0c\u96a8\u6642\u53ef\u4ee5\u958b\u59cb\u9032\u884c RAG \u76f8\u95dc\u7684\u5411\u91cf\u8cc7\u6599\u5eab\u958b\u767c\u4e86\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%e9%80%a3%e7%b7%9a\">\u9023\u7dda<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7528\u6a19\u6e96\u7684 PostgreSQL \u9023\u7dda\u7db2\u5740 (\u4f9d\u4f60\u672c\u5730\u8a2d\u5b9a\u8abf\u6574\u5e33\u865f\u3001\u5bc6\u78bc\u3001Port\u8207\u8cc7\u6599\u5eab\u540d\u7a31)<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">DATABASE_URL=postgresql:<span class=\"hljs-comment\">\/\/postgres:\u4f60\u7684\u672c\u5730\u5bc6\u78bc@localhost:5432\/\u4f60\u7684\u8cc7\u6599\u5eab\u540d\u7a31<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>","protected":false},"excerpt":{"rendered":"<p>\u672c\u7bc7\u6703\u6559\u4f60\u5982\u4f55\u5728\u672c\u5730 (\u672c\u6a5f) \uff0c\u5f9e PostgreSQL Server \u958b\u59cb\uff0c\u5230\u8996\u89ba\u5316\u7ba1\u7406\u4ecb\u9762\u8edf\u9ad4 DataGrip\u7684\u64cd\u4f5c\u3002 \u5b89\u88dd PostgreSQL Server \u5230 PostgreSQL \u5b98\u65b9 Windows Installer\uff1aPostgreSQL Windows Installer \u5b89\u88dd\u6642\uff1a \u6aa2\u67e5 PostgreSQL \u662f\u5426\u5b89\u88dd\u6210\u529f \u6253\u958b\u4f60\u7684\u7d42\u7aef\u6a5f\uff08Mac \u7684 Terminal \u6216 Windows \u7684 Command Prompt \/ PowerShell\uff09\uff0c\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u4f86\u78ba\u8a8d\uff1a \u5b89\u88dd DataGrip \u524d\u5f80\u5b98\u7db2\u5b89\u88dd\uff1ahttps:\/\/www.jetbrains.com\/datagrip \u5728 DataGrip \u9032\u884c\u9023\u7dda\u6e2c\u8a66 \u6253\u958b DataGrip\uff0c\u6309\u7167\u4ee5\u4e0b\u9810\u8a2d\u503c\u6e2c\u8a66\u662f\u5426\u80fd\u9806\u5229\u901a\u8eca\uff1a \u5982\u679c\u6e2c\u8a66\u9023\u7dda\u51fa\u73fe\u7da0\u8272\u6253\u52fe\uff08Succeeded\uff09\uff0c\u4ee3\u8868\u4f60\u7684\u74b0\u5883\u4e00\u5207\u6b63\u5e38\uff0c\u53ef\u4ee5\u76f4\u63a5\u958b\u59cb\u5efa\u7acb\u8cc7\u6599\u5eab\u4e86\uff01 \u5b89\u88dd Docker Desktop \u8981\u8b93\u4f60\u7684 PostgreSQL \u652f\u63f4 RAG\uff0c\u6838\u5fc3\u95dc\u9375\u5c31\u662f\u555f\u7528 pgvector \u64f4\u5145\u529f\u80fd\u3002 \u56e0\u70ba\u5728 Windows \u4e0a\u539f\u751f\u5b89\u88dd pgvector \u9700\u8981\u900f\u904e Visual [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[39],"tags":[],"class_list":["post-1160","post","type-post","status-publish","format-standard","hentry","category-back-end"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u672c\u7bc7\u6703\u6559\u4f60\u5982\u4f55\u5728\u672c\u5730 (\u672c\u6a5f) \uff0c\u5f9e PostgreSQL Server \u958b\u59cb\uff0c\u5230\u8996\u89ba\u5316\u7ba1\u7406\u4ecb\u9762\u8edf\u9ad4 DataGrip\u7684\u64cd\u4f5c\u3002 \u5b89\u88dd PostgreSQL Server \u5230 PostgreSQL \u5b98\u65b9 Windows Installer\uff1aPostgreSQL Windows Installer \u5b89\u88dd\u6642\uff1a PostgreSQL\uff1a\u5b89\u88dd pgAdmin\uff1a\u53ef\u88dd\u53ef\u4e0d\u88dd\uff0c\u56e0\u70ba\u4e4b\u5f8c\u4e3b\u8981\u7528 DataGrip Stack Builder\uff1a\u53ef\u4ee5\u4e0d\u7528 Port\uff1a5432 Username\uff1apostgres Password\uff1a\u81ea\u5df1\u8a2d\u5b9a \u6aa2\u67e5 PostgreSQL \u662f\u5426\u5b89\u88dd\u6210\u529f \u6253\u958b\u4f60\u7684\u7d42\u7aef\u6a5f\uff08Mac \u7684 Terminal \u6216 Windows \u7684 Command Prompt \/ PowerShell\uff09\uff0c\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u4f86\u78ba\u8a8d\uff1a \u6aa2\u67e5\u80cc\u666f\u670d\u52d9\u662f\u5426\u904b\u884c\uff1a Mac\uff1a\u8f38\u5165 brew services list\uff08\u5982\u679c\u662f\u7528 Homebrew \u5b89\u88dd\u7684\uff09\uff0c\u78ba\u8a8d PostgreSQL \u72c0\u614b\u662f started\u3002 Windows\uff1a\u6309 Win + R \u8f38\u5165 services.msc\uff0c\u5728\u6e05\u55ae\u4e2d\u627e\u5230\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"H.Y. Chen\"\/>\n\t<meta name=\"google-site-verification\" content=\"-324YR5tomynX5FeTW2lTMHIX0KmPBvpxjXpOhXwi1Q\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"HyC Wiki - Technical articles\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"RAG \u2013 \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab - HyC Wiki\" \/>\n\t\t<meta property=\"og:description\" content=\"\u672c\u7bc7\u6703\u6559\u4f60\u5982\u4f55\u5728\u672c\u5730 (\u672c\u6a5f) \uff0c\u5f9e PostgreSQL Server \u958b\u59cb\uff0c\u5230\u8996\u89ba\u5316\u7ba1\u7406\u4ecb\u9762\u8edf\u9ad4 DataGrip\u7684\u64cd\u4f5c\u3002 \u5b89\u88dd PostgreSQL Server \u5230 PostgreSQL \u5b98\u65b9 Windows Installer\uff1aPostgreSQL Windows Installer \u5b89\u88dd\u6642\uff1a PostgreSQL\uff1a\u5b89\u88dd pgAdmin\uff1a\u53ef\u88dd\u53ef\u4e0d\u88dd\uff0c\u56e0\u70ba\u4e4b\u5f8c\u4e3b\u8981\u7528 DataGrip Stack Builder\uff1a\u53ef\u4ee5\u4e0d\u7528 Port\uff1a5432 Username\uff1apostgres Password\uff1a\u81ea\u5df1\u8a2d\u5b9a \u6aa2\u67e5 PostgreSQL \u662f\u5426\u5b89\u88dd\u6210\u529f \u6253\u958b\u4f60\u7684\u7d42\u7aef\u6a5f\uff08Mac \u7684 Terminal \u6216 Windows \u7684 Command Prompt \/ PowerShell\uff09\uff0c\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u4f86\u78ba\u8a8d\uff1a \u6aa2\u67e5\u80cc\u666f\u670d\u52d9\u662f\u5426\u904b\u884c\uff1a Mac\uff1a\u8f38\u5165 brew services list\uff08\u5982\u679c\u662f\u7528 Homebrew \u5b89\u88dd\u7684\uff09\uff0c\u78ba\u8a8d PostgreSQL \u72c0\u614b\u662f started\u3002 Windows\uff1a\u6309 Win + R \u8f38\u5165 services.msc\uff0c\u5728\u6e05\u55ae\u4e2d\u627e\u5230\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"64\" \/>\n\t\t<meta property=\"og:image:height\" content=\"64\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-09-12T04:29:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-09-12T05:12:45+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"RAG \u2013 \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab - HyC Wiki\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u672c\u7bc7\u6703\u6559\u4f60\u5982\u4f55\u5728\u672c\u5730 (\u672c\u6a5f) \uff0c\u5f9e PostgreSQL Server \u958b\u59cb\uff0c\u5230\u8996\u89ba\u5316\u7ba1\u7406\u4ecb\u9762\u8edf\u9ad4 DataGrip\u7684\u64cd\u4f5c\u3002 \u5b89\u88dd PostgreSQL Server \u5230 PostgreSQL \u5b98\u65b9 Windows Installer\uff1aPostgreSQL Windows Installer \u5b89\u88dd\u6642\uff1a PostgreSQL\uff1a\u5b89\u88dd pgAdmin\uff1a\u53ef\u88dd\u53ef\u4e0d\u88dd\uff0c\u56e0\u70ba\u4e4b\u5f8c\u4e3b\u8981\u7528 DataGrip Stack Builder\uff1a\u53ef\u4ee5\u4e0d\u7528 Port\uff1a5432 Username\uff1apostgres Password\uff1a\u81ea\u5df1\u8a2d\u5b9a \u6aa2\u67e5 PostgreSQL \u662f\u5426\u5b89\u88dd\u6210\u529f \u6253\u958b\u4f60\u7684\u7d42\u7aef\u6a5f\uff08Mac \u7684 Terminal \u6216 Windows \u7684 Command Prompt \/ PowerShell\uff09\uff0c\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u4f86\u78ba\u8a8d\uff1a \u6aa2\u67e5\u80cc\u666f\u670d\u52d9\u662f\u5426\u904b\u884c\uff1a Mac\uff1a\u8f38\u5165 brew services list\uff08\u5982\u679c\u662f\u7528 Homebrew \u5b89\u88dd\u7684\uff09\uff0c\u78ba\u8a8d PostgreSQL \u72c0\u614b\u662f started\u3002 Windows\uff1a\u6309 Win + R \u8f38\u5165 services.msc\uff0c\u5728\u6e05\u55ae\u4e2d\u627e\u5230\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/#blogposting\",\"name\":\"RAG \\u2013 \\u5efa\\u7acb\\u672c\\u5730 PostgreSQL \\u8cc7\\u6599\\u5eab - HyC Wiki\",\"headline\":\"RAG &#8211; \\u5efa\\u7acb\\u672c\\u5730 PostgreSQL \\u8cc7\\u6599\\u5eab\",\"author\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/author\\\/hychen\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"H.Y. Chen\"},\"datePublished\":\"2026-09-12T04:29:00+00:00\",\"dateModified\":\"2026-09-12T05:12:45+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/#webpage\"},\"articleSection\":\"Back-End\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/category\\\/back-end\\\/#listItem\",\"name\":\"Back-End\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/category\\\/back-end\\\/#listItem\",\"position\":2,\"name\":\"Back-End\",\"item\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/category\\\/back-end\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/#listItem\",\"name\":\"RAG &#8211; \\u5efa\\u7acb\\u672c\\u5730 PostgreSQL \\u8cc7\\u6599\\u5eab\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/#listItem\",\"position\":3,\"name\":\"RAG &#8211; \\u5efa\\u7acb\\u672c\\u5730 PostgreSQL \\u8cc7\\u6599\\u5eab\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/category\\\/back-end\\\/#listItem\",\"name\":\"Back-End\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#person\",\"name\":\"H.Y. Chen\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"H.Y. Chen\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/author\\\/hychen\\\/#author\",\"url\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/author\\\/hychen\\\/\",\"name\":\"H.Y. Chen\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"H.Y. Chen\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/#webpage\",\"url\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/\",\"name\":\"RAG \\u2013 \\u5efa\\u7acb\\u672c\\u5730 PostgreSQL \\u8cc7\\u6599\\u5eab - HyC Wiki\",\"description\":\"\\u672c\\u7bc7\\u6703\\u6559\\u4f60\\u5982\\u4f55\\u5728\\u672c\\u5730 (\\u672c\\u6a5f) \\uff0c\\u5f9e PostgreSQL Server \\u958b\\u59cb\\uff0c\\u5230\\u8996\\u89ba\\u5316\\u7ba1\\u7406\\u4ecb\\u9762\\u8edf\\u9ad4 DataGrip\\u7684\\u64cd\\u4f5c\\u3002 \\u5b89\\u88dd PostgreSQL Server \\u5230 PostgreSQL \\u5b98\\u65b9 Windows Installer\\uff1aPostgreSQL Windows Installer \\u5b89\\u88dd\\u6642\\uff1a PostgreSQL\\uff1a\\u5b89\\u88dd pgAdmin\\uff1a\\u53ef\\u88dd\\u53ef\\u4e0d\\u88dd\\uff0c\\u56e0\\u70ba\\u4e4b\\u5f8c\\u4e3b\\u8981\\u7528 DataGrip Stack Builder\\uff1a\\u53ef\\u4ee5\\u4e0d\\u7528 Port\\uff1a5432 Username\\uff1apostgres Password\\uff1a\\u81ea\\u5df1\\u8a2d\\u5b9a \\u6aa2\\u67e5 PostgreSQL \\u662f\\u5426\\u5b89\\u88dd\\u6210\\u529f \\u6253\\u958b\\u4f60\\u7684\\u7d42\\u7aef\\u6a5f\\uff08Mac \\u7684 Terminal \\u6216 Windows \\u7684 Command Prompt \\\/ PowerShell\\uff09\\uff0c\\u8f38\\u5165\\u4ee5\\u4e0b\\u6307\\u4ee4\\u4f86\\u78ba\\u8a8d\\uff1a \\u6aa2\\u67e5\\u80cc\\u666f\\u670d\\u52d9\\u662f\\u5426\\u904b\\u884c\\uff1a Mac\\uff1a\\u8f38\\u5165 brew services list\\uff08\\u5982\\u679c\\u662f\\u7528 Homebrew \\u5b89\\u88dd\\u7684\\uff09\\uff0c\\u78ba\\u8a8d PostgreSQL \\u72c0\\u614b\\u662f started\\u3002 Windows\\uff1a\\u6309 Win + R \\u8f38\\u5165 services.msc\\uff0c\\u5728\\u6e05\\u55ae\\u4e2d\\u627e\\u5230\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/author\\\/hychen\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/author\\\/hychen\\\/#author\"},\"datePublished\":\"2026-09-12T04:29:00+00:00\",\"dateModified\":\"2026-09-12T05:12:45+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#website\",\"url\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/\",\"name\":\"HyC Wiki\",\"description\":\"Technical articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"RAG \u2013 \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab - HyC Wiki","description":"\u672c\u7bc7\u6703\u6559\u4f60\u5982\u4f55\u5728\u672c\u5730 (\u672c\u6a5f) \uff0c\u5f9e PostgreSQL Server \u958b\u59cb\uff0c\u5230\u8996\u89ba\u5316\u7ba1\u7406\u4ecb\u9762\u8edf\u9ad4 DataGrip\u7684\u64cd\u4f5c\u3002 \u5b89\u88dd PostgreSQL Server \u5230 PostgreSQL \u5b98\u65b9 Windows Installer\uff1aPostgreSQL Windows Installer \u5b89\u88dd\u6642\uff1a PostgreSQL\uff1a\u5b89\u88dd pgAdmin\uff1a\u53ef\u88dd\u53ef\u4e0d\u88dd\uff0c\u56e0\u70ba\u4e4b\u5f8c\u4e3b\u8981\u7528 DataGrip Stack Builder\uff1a\u53ef\u4ee5\u4e0d\u7528 Port\uff1a5432 Username\uff1apostgres Password\uff1a\u81ea\u5df1\u8a2d\u5b9a \u6aa2\u67e5 PostgreSQL \u662f\u5426\u5b89\u88dd\u6210\u529f \u6253\u958b\u4f60\u7684\u7d42\u7aef\u6a5f\uff08Mac \u7684 Terminal \u6216 Windows \u7684 Command Prompt \/ PowerShell\uff09\uff0c\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u4f86\u78ba\u8a8d\uff1a \u6aa2\u67e5\u80cc\u666f\u670d\u52d9\u662f\u5426\u904b\u884c\uff1a Mac\uff1a\u8f38\u5165 brew services list\uff08\u5982\u679c\u662f\u7528 Homebrew \u5b89\u88dd\u7684\uff09\uff0c\u78ba\u8a8d PostgreSQL \u72c0\u614b\u662f started\u3002 Windows\uff1a\u6309 Win + R \u8f38\u5165 services.msc\uff0c\u5728\u6e05\u55ae\u4e2d\u627e\u5230","canonical_url":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"-324YR5tomynX5FeTW2lTMHIX0KmPBvpxjXpOhXwi1Q","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/#blogposting","name":"RAG \u2013 \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab - HyC Wiki","headline":"RAG &#8211; \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab","author":{"@id":"https:\/\/hyc.eshachem.com\/program\/author\/hychen\/#author"},"publisher":{"@id":"https:\/\/hyc.eshachem.com\/program\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g","width":96,"height":96,"caption":"H.Y. Chen"},"datePublished":"2026-09-12T04:29:00+00:00","dateModified":"2026-09-12T05:12:45+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/#webpage"},"isPartOf":{"@id":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/#webpage"},"articleSection":"Back-End"},{"@type":"BreadcrumbList","@id":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program#listItem","position":1,"name":"Home","item":"https:\/\/hyc.eshachem.com\/program","nextItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/category\/back-end\/#listItem","name":"Back-End"}},{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/category\/back-end\/#listItem","position":2,"name":"Back-End","item":"https:\/\/hyc.eshachem.com\/program\/category\/back-end\/","nextItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/#listItem","name":"RAG &#8211; \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab"},"previousItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/#listItem","position":3,"name":"RAG &#8211; \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab","previousItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/category\/back-end\/#listItem","name":"Back-End"}}]},{"@type":"Person","@id":"https:\/\/hyc.eshachem.com\/program\/#person","name":"H.Y. Chen","image":{"@type":"ImageObject","@id":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g","width":96,"height":96,"caption":"H.Y. Chen"}},{"@type":"Person","@id":"https:\/\/hyc.eshachem.com\/program\/author\/hychen\/#author","url":"https:\/\/hyc.eshachem.com\/program\/author\/hychen\/","name":"H.Y. Chen","image":{"@type":"ImageObject","@id":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g","width":96,"height":96,"caption":"H.Y. Chen"}},{"@type":"WebPage","@id":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/#webpage","url":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/","name":"RAG \u2013 \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab - HyC Wiki","description":"\u672c\u7bc7\u6703\u6559\u4f60\u5982\u4f55\u5728\u672c\u5730 (\u672c\u6a5f) \uff0c\u5f9e PostgreSQL Server \u958b\u59cb\uff0c\u5230\u8996\u89ba\u5316\u7ba1\u7406\u4ecb\u9762\u8edf\u9ad4 DataGrip\u7684\u64cd\u4f5c\u3002 \u5b89\u88dd PostgreSQL Server \u5230 PostgreSQL \u5b98\u65b9 Windows Installer\uff1aPostgreSQL Windows Installer \u5b89\u88dd\u6642\uff1a PostgreSQL\uff1a\u5b89\u88dd pgAdmin\uff1a\u53ef\u88dd\u53ef\u4e0d\u88dd\uff0c\u56e0\u70ba\u4e4b\u5f8c\u4e3b\u8981\u7528 DataGrip Stack Builder\uff1a\u53ef\u4ee5\u4e0d\u7528 Port\uff1a5432 Username\uff1apostgres Password\uff1a\u81ea\u5df1\u8a2d\u5b9a \u6aa2\u67e5 PostgreSQL \u662f\u5426\u5b89\u88dd\u6210\u529f \u6253\u958b\u4f60\u7684\u7d42\u7aef\u6a5f\uff08Mac \u7684 Terminal \u6216 Windows \u7684 Command Prompt \/ PowerShell\uff09\uff0c\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u4f86\u78ba\u8a8d\uff1a \u6aa2\u67e5\u80cc\u666f\u670d\u52d9\u662f\u5426\u904b\u884c\uff1a Mac\uff1a\u8f38\u5165 brew services list\uff08\u5982\u679c\u662f\u7528 Homebrew \u5b89\u88dd\u7684\uff09\uff0c\u78ba\u8a8d PostgreSQL \u72c0\u614b\u662f started\u3002 Windows\uff1a\u6309 Win + R \u8f38\u5165 services.msc\uff0c\u5728\u6e05\u55ae\u4e2d\u627e\u5230","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/hyc.eshachem.com\/program\/#website"},"breadcrumb":{"@id":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/#breadcrumblist"},"author":{"@id":"https:\/\/hyc.eshachem.com\/program\/author\/hychen\/#author"},"creator":{"@id":"https:\/\/hyc.eshachem.com\/program\/author\/hychen\/#author"},"datePublished":"2026-09-12T04:29:00+00:00","dateModified":"2026-09-12T05:12:45+00:00"},{"@type":"WebSite","@id":"https:\/\/hyc.eshachem.com\/program\/#website","url":"https:\/\/hyc.eshachem.com\/program\/","name":"HyC Wiki","description":"Technical articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/hyc.eshachem.com\/program\/#person"}}]},"og:locale":"en_US","og:site_name":"HyC Wiki - Technical articles","og:type":"article","og:title":"RAG \u2013 \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab - HyC Wiki","og:description":"\u672c\u7bc7\u6703\u6559\u4f60\u5982\u4f55\u5728\u672c\u5730 (\u672c\u6a5f) \uff0c\u5f9e PostgreSQL Server \u958b\u59cb\uff0c\u5230\u8996\u89ba\u5316\u7ba1\u7406\u4ecb\u9762\u8edf\u9ad4 DataGrip\u7684\u64cd\u4f5c\u3002 \u5b89\u88dd PostgreSQL Server \u5230 PostgreSQL \u5b98\u65b9 Windows Installer\uff1aPostgreSQL Windows Installer \u5b89\u88dd\u6642\uff1a PostgreSQL\uff1a\u5b89\u88dd pgAdmin\uff1a\u53ef\u88dd\u53ef\u4e0d\u88dd\uff0c\u56e0\u70ba\u4e4b\u5f8c\u4e3b\u8981\u7528 DataGrip Stack Builder\uff1a\u53ef\u4ee5\u4e0d\u7528 Port\uff1a5432 Username\uff1apostgres Password\uff1a\u81ea\u5df1\u8a2d\u5b9a \u6aa2\u67e5 PostgreSQL \u662f\u5426\u5b89\u88dd\u6210\u529f \u6253\u958b\u4f60\u7684\u7d42\u7aef\u6a5f\uff08Mac \u7684 Terminal \u6216 Windows \u7684 Command Prompt \/ PowerShell\uff09\uff0c\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u4f86\u78ba\u8a8d\uff1a \u6aa2\u67e5\u80cc\u666f\u670d\u52d9\u662f\u5426\u904b\u884c\uff1a Mac\uff1a\u8f38\u5165 brew services list\uff08\u5982\u679c\u662f\u7528 Homebrew \u5b89\u88dd\u7684\uff09\uff0c\u78ba\u8a8d PostgreSQL \u72c0\u614b\u662f started\u3002 Windows\uff1a\u6309 Win + R \u8f38\u5165 services.msc\uff0c\u5728\u6e05\u55ae\u4e2d\u627e\u5230","og:url":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/","og:image":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png","og:image:secure_url":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png","og:image:width":64,"og:image:height":64,"article:published_time":"2026-09-12T04:29:00+00:00","article:modified_time":"2026-09-12T05:12:45+00:00","twitter:card":"summary_large_image","twitter:title":"RAG \u2013 \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab - HyC Wiki","twitter:description":"\u672c\u7bc7\u6703\u6559\u4f60\u5982\u4f55\u5728\u672c\u5730 (\u672c\u6a5f) \uff0c\u5f9e PostgreSQL Server \u958b\u59cb\uff0c\u5230\u8996\u89ba\u5316\u7ba1\u7406\u4ecb\u9762\u8edf\u9ad4 DataGrip\u7684\u64cd\u4f5c\u3002 \u5b89\u88dd PostgreSQL Server \u5230 PostgreSQL \u5b98\u65b9 Windows Installer\uff1aPostgreSQL Windows Installer \u5b89\u88dd\u6642\uff1a PostgreSQL\uff1a\u5b89\u88dd pgAdmin\uff1a\u53ef\u88dd\u53ef\u4e0d\u88dd\uff0c\u56e0\u70ba\u4e4b\u5f8c\u4e3b\u8981\u7528 DataGrip Stack Builder\uff1a\u53ef\u4ee5\u4e0d\u7528 Port\uff1a5432 Username\uff1apostgres Password\uff1a\u81ea\u5df1\u8a2d\u5b9a \u6aa2\u67e5 PostgreSQL \u662f\u5426\u5b89\u88dd\u6210\u529f \u6253\u958b\u4f60\u7684\u7d42\u7aef\u6a5f\uff08Mac \u7684 Terminal \u6216 Windows \u7684 Command Prompt \/ PowerShell\uff09\uff0c\u8f38\u5165\u4ee5\u4e0b\u6307\u4ee4\u4f86\u78ba\u8a8d\uff1a \u6aa2\u67e5\u80cc\u666f\u670d\u52d9\u662f\u5426\u904b\u884c\uff1a Mac\uff1a\u8f38\u5165 brew services list\uff08\u5982\u679c\u662f\u7528 Homebrew \u5b89\u88dd\u7684\uff09\uff0c\u78ba\u8a8d PostgreSQL \u72c0\u614b\u662f started\u3002 Windows\uff1a\u6309 Win + R \u8f38\u5165 services.msc\uff0c\u5728\u6e05\u55ae\u4e2d\u627e\u5230","twitter:image":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png"},"aioseo_meta_data":{"post_id":"1160","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-09-12 04:29:02","updated":"2026-09-12 05:20:57"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/hyc.eshachem.com\/program\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/hyc.eshachem.com\/program\/category\/back-end\/\" title=\"Back-End\">Back-End<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tRAG \u2013 \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/hyc.eshachem.com\/program"},{"label":"Back-End","link":"https:\/\/hyc.eshachem.com\/program\/category\/back-end\/"},{"label":"RAG &#8211; \u5efa\u7acb\u672c\u5730 PostgreSQL \u8cc7\u6599\u5eab","link":"https:\/\/hyc.eshachem.com\/program\/rag-%e5%bb%ba%e7%ab%8b%e6%9c%ac%e5%9c%b0-postgresql-%e8%b3%87%e6%96%99%e5%ba%ab\/"}],"views":32,"_links":{"self":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/posts\/1160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/comments?post=1160"}],"version-history":[{"count":2,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/posts\/1160\/revisions"}],"predecessor-version":[{"id":1167,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/posts\/1160\/revisions\/1167"}],"wp:attachment":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/media?parent=1160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/categories?post=1160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/tags?post=1160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}