{"id":3430,"date":"2021-01-12T17:35:26","date_gmt":"2021-01-12T09:35:26","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=3430"},"modified":"2022-09-09T15:31:49","modified_gmt":"2022-09-09T07:31:49","slug":"gbase-8a-v95%e7%89%88%e6%9c%ac%e6%94%af%e6%8c%81%e5%a4%9a%e5%88%97hash%e7%9a%84%e6%9c%80%e5%a4%a7%e5%88%97%e6%95%b0%e9%87%8f","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/3430","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a V95\u7248\u672c\u652f\u6301\u591a\u5217Hash\u7684\u6700\u5927\u5217\u6570\u91cf"},"content":{"rendered":"<p>GBase 8a\u6570\u636e\u5e93\u96c6\u7fa4\uff0c\u4eceV95\u7248\u672c\u5f00\u59cb\uff0c\u652f\u6301\u591a\u5217hash\uff0c\u7528\u4e8e\u6539\u5584\u6570\u636e\u503e\u659c\u95ee\u9898\u3002\u7406\u8bba\u4e0a\u5176\u6700\u5927\u6570\u91cf\u548c\u5217\u6570\u91cf\u76f8\u540c\u76842000\u4e2a\uff0c\u4f46\u7531\u4e8e\u6e90\u6570\u636e\u8868table_distribution\u91cchash_column\u5217\u6700\u5927\u957f\u5ea6\u662f4096\uff0c\u5b9e\u9645\u5217\u6570\u4f1a\u5c0f\u4e8e\u7406\u8bba\u503c\u3002<\/p>\n\n\n\n<p>\u4e00\u4e9b\u65b0\u7248\u672c\uff0c\u9650\u5236\u4e86\u6700\u591a10hash\u5217\u3002\u4e00\u822c\u4e5f\u591f\u7528\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6d4b\u8bd52000\u4e2a\u5217\u7684Hash\u5206\u5e03\u5217<\/h2>\n\n\n\n<p>\u76f4\u63a5\u62a5\u9519 hash column string is too long for gbase system table\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>gbase&gt; source \/home\/gbase\/t2000.sql\nERROR 1901 (HY000): hash column string is too long for gbase system table\ngbase&gt; use gbase;\nQuery OK, 0 rows affected (Elapsed: 00:00:00.00)\n\ngbase&gt; desc table_distribution;\n+----------------------+---------------+------+-----+---------+-------+\n| Field                | Type          | Null | Key | Default | Extra |\n+----------------------+---------------+------+-----+---------+-------+\n| index_name           | varchar(128)  | NO   | PRI | NULL    |       |\n| dbName               | varchar(64)   | NO   |     | NULL    |       |\n| tbName               | varchar(64)   | NO   |     | NULL    |       |\n| isReplicate          | varchar(3)    | NO   |     | YES     |       |\n| hash_column          | varchar(4096) | YES  |     | NULL    |       |\n| lmt_storage_size     | bigint(20)    | YES  |     | NULL    |       |\n| table_storage_size   | bigint(20)    | YES  |     | NULL    |       |\n| is_nocopies          | varchar(3)    | NO   |     | YES     |       |\n| data_distribution_id | bigint(8)     | NO   |     | NULL    |       |\n| vc_id                | varchar(64)   | NO   | PRI | NULL    |       |\n| mirror_vc_id         | varchar(64)   | YES  |     | NULL    |       |\n+----------------------+---------------+------+-----+---------+-------+\n11 rows in set (Elapsed: 00:00:00.00)\n<\/code><\/pre>\n\n\n\n<p>\u65b0\u7248\u672c10\u4e2a\u9650\u5236\u7684<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"40\" src=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2022\/09\/f9ac79f4d3ad574392a2a8246dccf28.png\" alt=\"\" class=\"wp-image-10598\"\/><\/figure>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u6570\u636e\u5e93\u96c6\u7fa4\uff0c\u4eceV95\u7248\u672c\u5f00\u59cb\uff0c\u652f\u6301\u591a\u5217hash\uff0c\u7528\u4e8e\u6539\u5584\u6570\u636e\u503e\u659c\u95ee\u9898\u3002\u7406\u8bba\u4e0a\u5176\u6700\u5927\u6570\u91cf\u548c\u5217\u6570\u91cf\u76f8\u540c\u76842000\u4e2a\uff0c\u4f46\u7531\u4e8e\u6e90\u6570\u636e\u8868table_distribution\u91cchash_column\u5217\u6700\u5927\u957f\u5ea6\u662f4096\uff0c\u5b9e\u9645\u5217\u6570\u4f1a\u5c0f\u4e8e\u7406\u8bba\u503c\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[60],"class_list":["post-3430","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-v95"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/3430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=3430"}],"version-history":[{"count":4,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/3430\/revisions"}],"predecessor-version":[{"id":10599,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/3430\/revisions\/10599"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=3430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=3430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=3430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}