{"id":233401,"date":"2022-01-13T08:13:55","date_gmt":"2022-01-13T00:13:55","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=233401"},"modified":"2021-12-30T13:19:41","modified_gmt":"2021-12-30T05:19:41","slug":"postgresql-linux-to","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/postgresql-linux-to.html","title":{"rendered":"\u7b80\u5355\u4ecb\u7ecdPostgreSQL\u89e3\u6790URL\u7684\u65b9\u6cd5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5c3d\u7ba1PostgreSQL\u4e2d\u652f\u6301\u5927\u91cf\u7684\u6570\u636e\u7c7b\u578b\uff0c\u4f46\u662f\u5bf9\u4e8eURL\u4f3c\u4e4e\u5e76\u6ca1\u6709\u4e00\u4e2a\u76f8\u5e94\u7684\u7c7b\u578b\u80fd\u591f\u53bb\u5b58\u50a8\u3002\u90a3\u4e48\u5bf9\u4e8eURL\u7684\u6570\u636e\u6211\u4eec\u5728\u6570\u636e\u5e93\u4e2d\u8981\u600e\u4e48\u53bb\u5904\u7406\u5462\uff1f\u4eca\u5929\u901a\u8fc7\u672c\u6587\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e0b\uff0c\u9700\u8981\u7684\u670b\u53cb\u53c2\u8003\u4e0b\u5427<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5c3d\u7ba1PostgreSQL\u4e2d\u652f\u6301\u5927\u91cf\u7684\u6570\u636e\u7c7b\u578b\uff0c\u4f46\u662f\u5bf9\u4e8eURL\u4f3c\u4e4e\u5e76\u6ca1\u6709\u4e00\u4e2a\u76f8\u5e94\u7684\u7c7b\u578b\u80fd\u591f\u53bb\u5b58\u50a8\u3002\u90a3\u4e48\u5bf9\u4e8eURL\u7684\u6570\u636e\u6211\u4eec\u5728\u6570\u636e\u5e93\u4e2d\u8981\u600e\u4e48\u53bb\u5904\u7406\u5462\uff1f<\/p>\n

\u9996\u5148\u8fd8\u662f\u9700\u8981\u770b\u4f60\u8981\u5b58\u50a8\u7684URL\u6570\u636e\u662f\u7528\u6765\u5e72\u561b\u7684\uff0c\u5982\u679c\u4ec5\u4ec5\u53ea\u662f\u4e3a\u4e86\u5728\u4ee5\u540e\u67e5\u8be2\u7684\u65f6\u5019\u6253\u5370\u8f93\u51fa\uff0c\u90a3\u4e48\u7528varchar\u6216\u8005text\u4e4b\u7c7b\u7684\u7c7b\u578b\u4e0d\u662f\u5c31\u53ef\u4ee5\u4e86\u5417\uff1f<\/p>\n

\u4f46\u662f\u6709\u7684\u65f6\u5019\u6211\u4eec\u5bf9\u4e8e\u8fd9\u4e9bURL\u6570\u636e\u5e76\u4e0d\u4ec5\u4ec5\u662f\u7b80\u5355\u7684\u67e5\u8be2\uff0c\u6211\u4eec\u53ef\u80fd\u5e0c\u671b\u901a\u8fc7\u8fd9\u4e9bURL\u80fd\u591f\u67e5\u8be2\u4e00\u4e9b\u989d\u5916\u7684\u4fe1\u606f\uff0c\u4f8b\u5982URL\u7684\u4f7f\u7528\u7684\u534f\u8bae\u3001\u4e3b\u673a\u540d\u7b49\u7b49\u3002\u8fd9\u91cc\u6211\u4eec\u4fbf\u53ef\u4ee5\u4f7f\u7528ts_debug\u51fd\u6570\u6765\u8fdb\u884c\u89e3\u6790\u4e86\u3002<\/p>\n

\u51fd\u6570ts_debug\u5141\u8bb8\u7b80\u5355\u5730\u6d4b\u8bd5\u4e00\u4e2a\u6587\u672c\u641c\u7d22\u914d\u7f6e\u3002<\/p>\n

\r\nts_debug([ config regconfig, ] document text,\r\n         OUT alias text,\r\n         OUT description text,\r\n         OUT token text,\r\n         OUT dictionaries regdictionary[],\r\n         OUT dictionary regdictionary,\r\n         OUT lexemes text[])\r\n         returns setof record<\/pre>\n

ts_debug\u4e3a\u89e3\u6790\u5668\u5728\u6587\u672c\u4e2d\u6807\u8bc6\u7684\u6bcf\u4e00\u4e2a\u8bb0\u53f7\u8fd4\u56de\u4e00\u884c\u3002\u88ab\u8fd4\u56de\u7684\u5217\u662f\uff1a<\/p>\n

alias text \uff1a \u8bb0\u53f7\u7c7b\u578b\u7684\u77ed\u540d\u79f0<\/p>\n

description text \uff1a\u8bb0\u53f7\u7c7b\u578b\u7684\u63cf\u8ff0<\/p>\n

token text \uff1a \u8bb0\u53f7\u7684\u6587\u672c<\/p>\n

dictionaries regdictionary[] \uff1a \u914d\u7f6e\u4e3a\u8fd9\u79cd\u8bb0\u53f7\u7c7b\u578b\u9009\u62e9\u7684\u8bcd\u5178<\/p>\n

dictionary regdictionary \uff1a \u8bc6\u522b\u8be5\u8bb0\u53f7\u7684\u8bcd\u5178\uff0c\u5982\u679c\u6ca1\u6709\u8bcd\u5178\u80fd\u8bc6\u522b\u5219\u4e3aNULL<\/p>\n

lexemes text[] \uff1a<\/p>\n

\u8bc6\u522b\u8be5\u8bb0\u53f7\u7684\u8bcd\u5178\u4ea7\u751f\u7684\u8bcd\u4f4d\uff0c\u5982\u679c\u6ca1\u6709\u8bcd\u5178\u80fd\u8bc6\u522b\u5219\u4e3aNULL\uff1b\u4e00\u4e2a\u7a7a\u6570\u7ec4\uff08{}\uff09\u8868\u793a\u8be5\u8bb0\u53f7\u88ab\u8bc6\u522b\u4e3a\u4e00\u4e2a\u505c\u7528\u8bcd<\/p>\n

\u56e0\u6b64\u6211\u4eec\u4fbf\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u7684\u65b9\u5f0f\u6765\u5bf9URL\u8fdb\u884c\u89e3\u6790\uff1a<\/p>\n

\r\nbill@bill=>SELECT\r\nbill-#     alias\r\nbill-#     ,description\r\nbill-#     ,token\r\nbill-# FROM ts_debug('https:\/\/blog.csdn.net\/weixin_39540651');\r\n  alias   |  description  |             token\r\n----------+---------------+-------------------------------\r\n protocol | Protocol head | https:\/\/\r\n url      | URL           | blog.csdn.net\/weixin_39540651\r\n host     | Host          | blog.csdn.net\r\n url_path | URL path      | \/weixin_39540651\r\n(4 rows)<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u5c3d\u7ba1PostgreSQL\u4e2d\u652f\u6301\u5927\u91cf\u7684\u6570\u636e\u7c7b\u578b\uff0c\u4f46\u662f\u5bf9\u4e8eURL\u4f3c\u4e4e\u5e76\u6ca1\u6709\u4e00\u4e2a\u76f8\u5e94\u7684\u7c7b\u578b\u80fd\u591f\u53bb\u5b58\u50a8\u3002\u90a3\u4e48\u5bf9\u4e8eURL […]<\/p>\n","protected":false},"author":1482,"featured_media":86881,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-233401","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/233401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1482"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=233401"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/233401\/revisions"}],"predecessor-version":[{"id":233404,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/233401\/revisions\/233404"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/86881"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=233401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=233401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=233401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}