{"id":96862,"date":"2024-10-20T12:59:18","date_gmt":"2024-10-20T04:59:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/96862\/"},"modified":"2024-10-20T12:59:18","modified_gmt":"2024-10-20T04:59:18","slug":"postgresql-9-1-alpha5%e7%99%bc%e5%b8%83","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/96862\/","title":{"rendered":"PostgreSQL 9.1 Alpha5\u767c\u5e03"},"content":{"rendered":"<h1 id=\"postgresql-9-1-alpha5%e7%99%bc%e5%b8%83-neopXUvIIb\">PostgreSQL 9.1 Alpha5\u767c\u5e03<\/h1>\n<p>PostgreSQL\u662f\u4e00\u500b\u529f\u80fd\u5f37\u5927\u7684\u958b\u6e90\u95dc\u806f\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u5404\u7a2e\u5546\u696d\u548c\u958b\u767c\u74b0\u5883\u4e2d\u3002\u96a8\u8457\u6280\u8853\u7684\u9032\u6b65\uff0cPostgreSQL\u4e0d\u65b7\u63a8\u51fa\u65b0\u7248\u672c\uff0c\u4ee5\u6eff\u8db3\u7528\u6236\u65e5\u76ca\u589e\u9577\u7684\u9700\u6c42\u30022011\u5e74\uff0cPostgreSQL 9.1 Alpha5\u7684\u767c\u5e03\u6a19\u8a8c\u8457\u8a72\u6578\u64da\u5eab\u7cfb\u7d71\u7684\u4e00\u500b\u91cd\u8981\u91cc\u7a0b\u7891\uff0c\u5e36\u4f86\u4e86\u591a\u9805\u65b0\u7279\u6027\u548c\u6539\u9032\u3002<\/p>\n<h2 id=\"%e6%96%b0%e7%89%b9%e6%80%a7%e6%a6%82%e8%bf%b0-neopXUvIIb\">\u65b0\u7279\u6027\u6982\u8ff0<\/h2>\n<p>PostgreSQL 9.1 Alpha5\u5f15\u5165\u4e86\u5e7e\u500b\u91cd\u8981\u7684\u65b0\u7279\u6027\uff0c\u9019\u4e9b\u7279\u6027\u65e8\u5728\u63d0\u9ad8\u6027\u80fd\u548c\u53ef\u7528\u6027\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u4e3b\u8981\u7684\u6539\u9032\uff1a<\/p>\n<ul>\n<li><strong>\u589e\u5f37\u7684\u8907\u88fd\u529f\u80fd\uff1a<\/strong>\u9019\u4e00\u7248\u672c\u5f15\u5165\u4e86\u540c\u6b65\u8907\u88fd\u7684\u652f\u6301\uff0c\u5141\u8a31\u7528\u6236\u5728\u4e3b\u5f9e\u6578\u64da\u5eab\u4e4b\u9593\u5be6\u73fe\u66f4\u9ad8\u7684\u6578\u64da\u4e00\u81f4\u6027\u3002\u9019\u5c0d\u65bc\u9700\u8981\u9ad8\u53ef\u7528\u6027\u7684\u61c9\u7528\u7a0b\u5e8f\u5c24\u70ba\u91cd\u8981\u3002<\/li>\n<li><strong>JSON\u6578\u64da\u985e\u578b\uff1a<\/strong>PostgreSQL 9.1 Alpha5\u958b\u59cb\u652f\u6301JSON\u6578\u64da\u985e\u578b\uff0c\u9019\u4f7f\u5f97\u958b\u767c\u8005\u80fd\u5920\u66f4\u9748\u6d3b\u5730\u8655\u7406\u975e\u7d50\u69cb\u5316\u6578\u64da\uff0c\u4e26\u5728\u6578\u64da\u5eab\u4e2d\u5b58\u5132\u548c\u67e5\u8a62JSON\u683c\u5f0f\u7684\u6578\u64da\u3002<\/li>\n<li><strong>\u6539\u9032\u7684\u67e5\u8a62\u6027\u80fd\uff1a<\/strong>\u9019\u4e00\u7248\u672c\u5c0d\u67e5\u8a62\u512a\u5316\u5668\u9032\u884c\u4e86\u591a\u9805\u6539\u9032\uff0c\u7279\u5225\u662f\u5728\u8655\u7406\u5927\u578b\u6578\u64da\u96c6\u6642\uff0c\u67e5\u8a62\u6027\u80fd\u5f97\u5230\u4e86\u986f\u8457\u63d0\u5347\u3002<\/li>\n<li><strong>\u589e\u5f37\u7684\u5b89\u5168\u6027\uff1a<\/strong>PostgreSQL 9.1 Alpha5\u589e\u5f37\u4e86\u7528\u6236\u6b0a\u9650\u7ba1\u7406\uff0c\u63d0\u4f9b\u4e86\u66f4\u7d30\u7c92\u5ea6\u7684\u8a2a\u554f\u63a7\u5236\uff0c\u9019\u5c0d\u65bc\u9700\u8981\u9ad8\u5b89\u5168\u6027\u7684\u61c9\u7528\u5834\u666f\u81f3\u95dc\u91cd\u8981\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%ae%89%e8%a3%9d%e8%88%87%e9%85%8d%e7%bd%ae-neopXUvIIb\">\u5b89\u88dd\u8207\u914d\u7f6e<\/h2>\n<p>\u5b89\u88ddPostgreSQL 9.1 Alpha5\u76f8\u5c0d\u7c21\u55ae\uff0c\u4ee5\u4e0b\u662f\u57fa\u672c\u7684\u5b89\u88dd\u6b65\u9a5f\uff1a<\/p>\n<pre><code>sudo apt-get update\nsudo apt-get install postgresql-9.1\n<\/code><\/pre>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5PostgreSQL\u670d\u52d9\uff1a<\/p>\n<pre><code>sudo service postgresql start\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528psql\u547d\u4ee4\u884c\u5de5\u5177\u9032\u884c\u6578\u64da\u5eab\u7684\u7ba1\u7406\u548c\u64cd\u4f5c\uff1a<\/p>\n<pre><code>sudo -u postgres psql\n<\/code><\/pre>\n<h2 id=\"%e4%bd%bf%e7%94%a8json%e6%95%b8%e6%93%9a%e9%a1%9e%e5%9e%8b%e7%9a%84%e7%a4%ba%e4%be%8b-neopXUvIIb\">\u4f7f\u7528JSON\u6578\u64da\u985e\u578b\u7684\u793a\u4f8b<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4e00\u500b\u4f7f\u7528JSON\u6578\u64da\u985e\u578b\u7684\u7c21\u55ae\u793a\u4f8b\uff1a<\/p>\n<pre><code>CREATE TABLE users (\n    id SERIAL PRIMARY KEY,\n    data JSON\n);\n\nINSERT INTO users (data) VALUES ('{\"name\": \"John\", \"age\": 30}');\n<\/code><\/pre>\n<p>\u9019\u6bb5\u4ee3\u78bc\u5275\u5efa\u4e86\u4e00\u500b\u540d\u70bausers\u7684\u8868\uff0c\u4e26\u63d2\u5165\u4e86\u4e00\u689d\u5305\u542bJSON\u6578\u64da\u7684\u8a18\u9304\u3002\u7528\u6236\u53ef\u4ee5\u901a\u904e\u67e5\u8a62JSON\u5b57\u6bb5\u4f86\u7372\u53d6\u6240\u9700\u7684\u4fe1\u606f\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-neopXUvIIb\">\u7d50\u8ad6<\/h2>\n<p>PostgreSQL 9.1 Alpha5\u7684\u767c\u5e03\u70ba\u958b\u767c\u8005\u548c\u6578\u64da\u5eab\u7ba1\u7406\u54e1\u63d0\u4f9b\u4e86\u8a31\u591a\u5f37\u5927\u7684\u65b0\u529f\u80fd\uff0c\u7279\u5225\u662f\u5728\u6578\u64da\u8907\u88fd\u3001\u6027\u80fd\u512a\u5316\u548c\u6578\u64da\u985e\u578b\u652f\u6301\u65b9\u9762\u3002\u9019\u4e9b\u6539\u9032\u4e0d\u50c5\u63d0\u9ad8\u4e86\u6578\u64da\u5eab\u7684\u9748\u6d3b\u6027\u548c\u53ef\u7528\u6027\uff0c\u9084\u70ba\u672a\u4f86\u7684\u7248\u672c\u5960\u5b9a\u4e86\u57fa\u790e\u3002<\/p>\n<p>\u96a8\u8457\u6280\u8853\u7684\u6301\u7e8c\u767c\u5c55\uff0cPostgreSQL\u5c07\u7e7c\u7e8c\u5728\u958b\u6e90\u6578\u64da\u5eab\u9818\u57df\u4e2d\u626e\u6f14\u91cd\u8981\u89d2\u8272\u3002\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u7a69\u5b9a\u4e14\u9ad8\u6548\u7684\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\uff0c\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u4f86\u90e8\u7f72\u60a8\u7684PostgreSQL\u6578\u64da\u5eab\uff0c\u4eab\u53d7\u66f4\u9ad8\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Discover the features and improvements in PostgreSQL 9.1 Alpha5, enhancing performance, scalability, and functionality for developers and database administrators.<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-96862","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/96862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=96862"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/96862\/revisions"}],"predecessor-version":[{"id":96863,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/96862\/revisions\/96863"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=96862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=96862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=96862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}