{"id":2670,"date":"2025-03-12T23:39:44","date_gmt":"2025-03-12T15:39:44","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=2670"},"modified":"2025-03-12T23:39:44","modified_gmt":"2025-03-12T15:39:44","slug":"postgresql-%e7%b4%a2%e5%bc%95%ef%bc%88index%ef%bc%89%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/03\/12\/postgresql-%e7%b4%a2%e5%bc%95%ef%bc%88index%ef%bc%89%e8%af%a6%e8%a7%a3\/","title":{"rendered":"PostgreSQL \u7d22\u5f15\uff08Index\uff09\u8be6\u89e3"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>1. \u4ec0\u4e48\u662f\u7d22\u5f15\uff1f<\/strong><\/h2>\n\n\n\n<p>\u7d22\u5f15\uff08Index\uff09\u662f PostgreSQL <strong>\u52a0\u901f\u67e5\u8be2\u6027\u80fd<\/strong> \u7684\u4e00\u79cd\u6570\u636e\u7ed3\u6784\uff0c\u5b83\u7c7b\u4f3c\u4e8e\u4e66\u7684\u76ee\u5f55\uff0c\u53ef\u4ee5 <strong>\u5feb\u901f\u5b9a\u4f4d\u6570\u636e<\/strong>\uff0c\u51cf\u5c11 <code>SELECT<\/code> \u8bed\u53e5\u7684\u67e5\u8be2\u65f6\u95f4\u3002<\/p>\n\n\n\n<p><strong>\u7d22\u5f15\u7684\u4f18\u70b9\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u63d0\u9ad8\u67e5\u8be2\u6027\u80fd<\/strong>\uff1a\u51cf\u5c11\u626b\u63cf\u7684\u6570\u636e\u91cf\uff0c\u52a0\u901f <code>SELECT<\/code> \u67e5\u8be2\u3002<\/li>\n\n\n\n<li><strong>\u52a0\u5feb <code>ORDER BY<\/code> \u548c <code>GROUP BY<\/code><\/strong>\uff1a\u7d22\u5f15\u53ef\u4ee5\u4f18\u5316\u6392\u5e8f\u548c\u5206\u7ec4\u64cd\u4f5c\u3002<\/li>\n\n\n\n<li><strong>\u52a0\u901f <code>JOIN<\/code><\/strong>\uff1a\u5728\u591a\u4e2a\u8868\u8fde\u63a5\u65f6\uff0c\u7d22\u5f15\u53ef\u4ee5\u63d0\u9ad8\u5339\u914d\u6548\u7387\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u7d22\u5f15\u7684\u7f3a\u70b9\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5360\u7528\u989d\u5916\u5b58\u50a8\u7a7a\u95f4<\/strong>\uff1a\u7d22\u5f15\u5b58\u50a8\u5728\u78c1\u76d8\u4e0a\uff0c\u53ef\u80fd\u4f1a\u5360\u7528\u8f83\u5927\u7a7a\u95f4\u3002<\/li>\n\n\n\n<li><strong>\u5f71\u54cd\u5199\u64cd\u4f5c\uff08INSERT\/UPDATE\/DELETE\uff09<\/strong>\uff1a\u7d22\u5f15\u9700\u8981\u7ef4\u62a4\uff0c\u5bfc\u81f4\u5199\u64cd\u4f5c\u53d8\u6162\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. \u521b\u5efa\u7d22\u5f15<\/strong><\/h2>\n\n\n\n<p>PostgreSQL \u63d0\u4f9b\u4e86\u591a\u79cd\u7d22\u5f15\u7c7b\u578b\uff0c\u6700\u5e38\u89c1\u7684\u662f <strong>B-Tree \u7d22\u5f15<\/strong>\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.1 \u57fa\u672c\u8bed\u6cd5<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE INDEX index_name ON table_name (column_name);<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>index_name<\/code>\uff1a\u7d22\u5f15\u7684\u540d\u79f0<\/li>\n\n\n\n<li><code>table_name<\/code>\uff1a\u8981\u521b\u5efa\u7d22\u5f15\u7684\u8868<\/li>\n\n\n\n<li><code>column_name<\/code>\uff1a\u8981\u7d22\u5f15\u7684\u5217<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.2 \u793a\u4f8b<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE INDEX idx_employee_name ON employees (first_name);<\/code><\/pre>\n\n\n\n<p>\u8fd9\u6837\uff0c\u5728 <code>employees<\/code> \u8868\u7684 <code>first_name<\/code> \u5217\u4e0a\u521b\u5efa\u4e86\u4e00\u4e2a\u7d22\u5f15\uff0c\u63d0\u9ad8 <code>WHERE first_name = 'Alice'<\/code> \u7684\u67e5\u8be2\u901f\u5ea6\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. PostgreSQL \u7d22\u5f15\u7c7b\u578b<\/strong><\/h2>\n\n\n\n<p>PostgreSQL \u652f\u6301\u591a\u79cd\u7d22\u5f15\u7c7b\u578b\uff0c\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u67e5\u8be2\u573a\u666f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.1 B-Tree \u7d22\u5f15\uff08\u9ed8\u8ba4\uff09<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9002\u7528\u4e8e <strong>\u7b49\u503c\u67e5\u8be2 (<code>=<\/code>)\u3001\u8303\u56f4\u67e5\u8be2 (<code>><\/code>, <code>&lt;<\/code>, <code>BETWEEN<\/code>)<\/strong>\u3002<\/li>\n\n\n\n<li>\u9002\u7528\u4e8e <strong>ORDER BY \u6392\u5e8f<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE INDEX idx_salary ON employees (salary);<\/code><\/pre>\n\n\n\n<p><strong>\u793a\u4f8b\u67e5\u8be2\u4f18\u5316\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>EXPLAIN ANALYZE\nSELECT * FROM employees WHERE salary &gt; 5000;<\/code><\/pre>\n\n\n\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u67e5\u8be2 <code>WHERE column = value<\/code><\/li>\n\n\n\n<li>\u67e5\u8be2 <code>WHERE column > value<\/code><\/li>\n\n\n\n<li>\u6392\u5e8f <code>ORDER BY column<\/code><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.2 \u54c8\u5e0c\u7d22\u5f15\uff08Hash Index\uff09<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9002\u7528\u4e8e <strong>\u7b49\u503c\u67e5\u8be2\uff08<code>=<\/code>\uff09<\/strong>\uff0c\u6bd4 B-Tree \u7d22\u5f15\u66f4\u5feb\uff0c\u4f46\u4e0d\u652f\u6301\u8303\u56f4\u67e5\u8be2\u548c\u6392\u5e8f\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE INDEX idx_employee_id_hash ON employees USING HASH (emp_id);<\/code><\/pre>\n\n\n\n<p><strong>\u793a\u4f8b\u67e5\u8be2\u4f18\u5316\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM employees WHERE emp_id = 10;<\/code><\/pre>\n\n\n\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4ec5\u9002\u7528\u4e8e <code>=<\/code> \u67e5\u8be2<\/strong>\uff0c\u4e0d\u80fd\u7528\u4e8e\u8303\u56f4\u67e5\u8be2 (<code>><\/code>, <code>&lt;<\/code>) \u6216 <code>ORDER BY<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.3 GIN \u7d22\u5f15\uff08\u5168\u6587\u641c\u7d22\u3001JSONB\u3001\u6570\u7ec4\uff09<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9002\u7528\u4e8e <strong>\u5168\u6587\u641c\u7d22<\/strong>\uff08<code>tsvector<\/code>\uff09\u3001<strong>JSONB \u67e5\u8be2<\/strong>\u3001<strong>\u6570\u7ec4\u67e5\u8be2<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE INDEX idx_description ON employees USING GIN (to_tsvector('english', description));<\/code><\/pre>\n\n\n\n<p><strong>\u793a\u4f8b\u67e5\u8be2\u4f18\u5316\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM employees WHERE to_tsvector('english', description) @@ to_tsquery('developer');<\/code><\/pre>\n\n\n\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5168\u6587\u641c\u7d22<\/strong>\uff08<code>tsvector<\/code> \u5b57\u6bb5\uff09<\/li>\n\n\n\n<li><strong>JSONB \u5b57\u6bb5\u7684\u5feb\u901f\u67e5\u627e<\/strong><\/li>\n\n\n\n<li><strong>\u6570\u7ec4\u7c7b\u578b\u5b57\u6bb5\u7684\u9ad8\u6548\u67e5\u627e<\/strong><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.4 GiST \u7d22\u5f15\uff08\u5730\u7406\u7a7a\u95f4\u3001\u5168\u6587\u641c\u7d22\uff09<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9002\u7528\u4e8e <strong>\u5730\u7406\u7a7a\u95f4\u6570\u636e\uff08PostGIS\uff09<\/strong>\u3001<strong>\u5168\u6587\u641c\u7d22<\/strong>\u3001<strong>\u8303\u56f4\u67e5\u8be2<\/strong>\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE INDEX idx_location ON locations USING GIST (coordinates);<\/code><\/pre>\n\n\n\n<p><strong>\u793a\u4f8b\u67e5\u8be2\u4f18\u5316\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM locations WHERE coordinates &lt;@ ST_MakeEnvelope(-75, 40, -74, 41, 4326);<\/code><\/pre>\n\n\n\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>GIS \u5730\u7406\u4f4d\u7f6e\u6570\u636e\uff08PostGIS\uff09<\/strong><\/li>\n\n\n\n<li><strong>\u5168\u6587\u641c\u7d22<\/strong><\/li>\n\n\n\n<li><strong>\u8303\u56f4\u67e5\u8be2<\/strong><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.5 BRIN \u7d22\u5f15\uff08\u9002\u7528\u4e8e\u5927\u8868\u8303\u56f4\u67e5\u8be2\uff09<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9002\u7528\u4e8e <strong>\u6570\u636e\u6709\u5e8f\u7684\u5927\u578b\u8868<\/strong>\uff08\u5982\u65e5\u5fd7\u8868\u3001\u65f6\u95f4\u5e8f\u5217\u6570\u636e\uff09\u3002<\/li>\n\n\n\n<li><strong>\u5b58\u50a8\u7a7a\u95f4\u5c0f<\/strong>\uff0c\u4f46\u67e5\u8be2\u53ef\u80fd\u4e0d\u5982 B-Tree \u7cbe\u786e\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE INDEX idx_log_time ON logs USING BRIN (created_at);<\/code><\/pre>\n\n\n\n<p><strong>\u793a\u4f8b\u67e5\u8be2\u4f18\u5316\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM logs WHERE created_at BETWEEN '2025-03-01' AND '2025-03-10';<\/code><\/pre>\n\n\n\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u65f6\u95f4\u6233\u6392\u5e8f\u7684\u65e5\u5fd7\u8868<\/strong><\/li>\n\n\n\n<li><strong>\u8fde\u7eed\u9012\u589e\u7684 ID<\/strong><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4. \u590d\u5408\u7d22\u5f15\uff08\u591a\u4e2a\u5217\uff09<\/strong><\/h2>\n\n\n\n<p><strong>\u521b\u5efa\u7d22\u5f15\u65f6\u53ef\u4ee5\u6307\u5b9a\u591a\u4e2a\u5217<\/strong>\uff0c\u9002\u7528\u4e8e\u591a\u5217\u67e5\u8be2\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE INDEX idx_employee_name_salary ON employees (last_name, first_name, salary);<\/code><\/pre>\n\n\n\n<p><strong>\u793a\u4f8b\u67e5\u8be2\u4f18\u5316<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM employees WHERE last_name = 'Smith' AND first_name = 'Alice';<\/code><\/pre>\n\n\n\n<p><strong>\u6ce8\u610f<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u590d\u5408\u7d22\u5f15\u7684 <strong>\u7b2c\u4e00\u4e2a\u5217\u5fc5\u987b\u51fa\u73b0\u5728\u67e5\u8be2\u6761\u4ef6\u4e2d<\/strong>\uff0c\u5426\u5219\u7d22\u5f15\u53ef\u80fd\u4e0d\u4f1a\u751f\u6548\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5. \u552f\u4e00\u7d22\u5f15<\/strong><\/h2>\n\n\n\n<p>\u552f\u4e00\u7d22\u5f15\uff08<code>UNIQUE INDEX<\/code>\uff09<strong>\u786e\u4fdd\u5217\u7684\u503c\u4e0d\u91cd\u590d<\/strong>\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE UNIQUE INDEX idx_unique_email ON employees (email);<\/code><\/pre>\n\n\n\n<p><strong>\u7b49\u4ef7\u4e8e<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ALTER TABLE employees ADD CONSTRAINT unique_email UNIQUE (email);<\/code><\/pre>\n\n\n\n<p><strong>\u793a\u4f8b\u67e5\u8be2\u4f18\u5316<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM employees WHERE email = 'alice@example.com';<\/code><\/pre>\n\n\n\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7535\u5b50\u90ae\u4ef6\u3001\u7528\u6237\u540d\u7b49\u9700\u8981 <strong>\u552f\u4e00\u6027<\/strong> \u7684\u5b57\u6bb5\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>6. \u90e8\u5206\u7d22\u5f15<\/strong><\/h2>\n\n\n\n<p>\u90e8\u5206\u7d22\u5f15\uff08Partial Index\uff09\u4ec5\u5bf9 <strong>\u7b26\u5408\u7279\u5b9a\u6761\u4ef6\u7684\u6570\u636e<\/strong> \u5efa\u7acb\u7d22\u5f15\uff0c\u51cf\u5c11\u5b58\u50a8\u5f00\u9500\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE INDEX idx_high_salary ON employees (salary) WHERE salary &gt; 10000;<\/code><\/pre>\n\n\n\n<p><strong>\u793a\u4f8b\u67e5\u8be2\u4f18\u5316<\/strong>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM employees WHERE salary &gt; 10000;<\/code><\/pre>\n\n\n\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4ec5\u7d22\u5f15 <strong>\u67e5\u8be2\u9891\u7387\u9ad8\u7684\u8bb0\u5f55<\/strong>\uff0c\u51cf\u5c11\u7d22\u5f15\u4f53\u79ef\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>7. \u7d22\u5f15\u7ba1\u7406<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7.1 \u67e5\u770b\u8868\u4e0a\u7684\u7d22\u5f15<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT indexname, indexdef FROM pg_indexes WHERE tablename = 'employees';<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7.2 \u5220\u9664\u7d22\u5f15<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>DROP INDEX idx_employee_name;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7.3 \u91cd\u5efa\u7d22\u5f15<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>REINDEX INDEX idx_employee_name;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7.4 \u5206\u6790\u7d22\u5f15\uff08\u4f18\u5316\u67e5\u8be2\uff09<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>ANALYZE VERBOSE employees;<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>8. \u7d22\u5f15\u4f18\u5316\u5efa\u8bae<\/strong><\/h2>\n\n\n\n<p>\u2705 <strong>\u4e0d\u8981\u5bf9\u5c0f\u8868\u5efa\u7d22\u5f15<\/strong>\uff1aPostgreSQL \u53ef\u80fd\u4f1a\u4f7f\u7528 <strong>\u987a\u5e8f\u626b\u63cf\uff08Seq Scan\uff09<\/strong>\uff0c\u53cd\u800c\u66f4\u5feb\u3002<br>\u2705 <strong>\u907f\u514d\u8fc7\u591a\u7d22\u5f15<\/strong>\uff1a\u7d22\u5f15\u4f1a\u5f71\u54cd <code>INSERT\/UPDATE\/DELETE<\/code> \u901f\u5ea6\uff0c\u5c3d\u91cf\u53ea\u5efa\u7acb <strong>\u5fc5\u8981\u7d22\u5f15<\/strong>\u3002<br>\u2705 <strong>\u8003\u8651\u7d22\u5f15\u9009\u62e9<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7b49\u503c\u67e5\u8be2 (<code>=<\/code>)<\/strong> \u2192 <strong>B-Tree\/Hash<\/strong><\/li>\n\n\n\n<li><strong>\u8303\u56f4\u67e5\u8be2 (<code>><\/code>\u3001<code>&lt;<\/code>)<\/strong> \u2192 <strong>B-Tree<\/strong><\/li>\n\n\n\n<li><strong>\u5168\u6587\u641c\u7d22<\/strong> \u2192 <strong>GIN<\/strong><\/li>\n\n\n\n<li><strong>\u65f6\u95f4\u5e8f\u5217\u5927\u8868<\/strong> \u2192 <strong>BRIN<\/strong><\/li>\n\n\n\n<li><strong>\u5730\u7406\u6570\u636e<\/strong> \u2192 <strong>GiST<\/strong><br>\u2705 <strong>\u4f7f\u7528 <code>EXPLAIN ANALYZE<\/code> \u5206\u6790\u67e5\u8be2<\/strong>\uff0c\u786e\u4fdd\u7d22\u5f15\u88ab\u6b63\u786e\u4f7f\u7528\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u66f4\u591a\u8be6\u7ec6\u5185\u5bb9\u8bf7\u5173\u6ce8\u5176\u4ed6\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u4ec0\u4e48\u662f\u7d22\u5f15\uff1f \u7d22\u5f15\uff08Index\uff09\u662f PostgreSQL \u52a0\u901f\u67e5\u8be2\u6027\u80fd \u7684\u4e00\u79cd\u6570\u636e\u7ed3\u6784\uff0c\u5b83\u7c7b\u4f3c\u4e8e\u4e66\u7684\u76ee\u5f55 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2671,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[],"class_list":["post-2670","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-postgresql"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/2670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=2670"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/2670\/revisions"}],"predecessor-version":[{"id":2672,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/2670\/revisions\/2672"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media\/2671"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=2670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=2670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=2670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}