gooderp18绿色标准版
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

158 lines
9.5KB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>12.10. psql Support</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="prev" href="textsearch-indexes.html" title="12.9. GIN and GiST Index Types" /><link rel="next" href="textsearch-limitations.html" title="12.11. Limitations" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">12.10. <span xmlns="http://www.w3.org/1999/xhtml" class="application">psql</span> Support</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="textsearch-indexes.html" title="12.9. GIN and GiST Index Types">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="textsearch.html" title="Chapter 12. Full Text Search">Up</a></td><th width="60%" align="center">Chapter 12. Full Text Search</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 12.4 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="textsearch-limitations.html" title="12.11. Limitations">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="TEXTSEARCH-PSQL"><div class="titlepage"><div><div><h2 class="title" style="clear: both">12.10. <span class="application">psql</span> Support</h2></div></div></div><p>
  3. Information about text search configuration objects can be obtained
  4. in <span class="application">psql</span> using a set of commands:
  5. </p><pre class="synopsis">
  6. \dF{d,p,t}[<span class="optional">+</span>] [<span class="optional">PATTERN</span>]
  7. </pre><p>
  8. An optional <code class="literal">+</code> produces more details.
  9. </p><p>
  10. The optional parameter <em class="replaceable"><code>PATTERN</code></em> can be the name of
  11. a text search object, optionally schema-qualified. If
  12. <em class="replaceable"><code>PATTERN</code></em> is omitted then information about all
  13. visible objects will be displayed. <em class="replaceable"><code>PATTERN</code></em> can be a
  14. regular expression and can provide <span class="emphasis"><em>separate</em></span> patterns
  15. for the schema and object names. The following examples illustrate this:
  16. </p><pre class="screen">
  17. =&gt; \dF *fulltext*
  18. List of text search configurations
  19. Schema | Name | Description
  20. --------+--------------+-------------
  21. public | fulltext_cfg |
  22. </pre><p>
  23. </p><pre class="screen">
  24. =&gt; \dF *.fulltext*
  25. List of text search configurations
  26. Schema | Name | Description
  27. ----------+----------------------------
  28. fulltext | fulltext_cfg |
  29. public | fulltext_cfg |
  30. </pre><p>
  31. The available commands are:
  32. </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="literal">\dF[<span class="optional">+</span>] [<span class="optional">PATTERN</span>]</code></span></dt><dd><p>
  33. List text search configurations (add <code class="literal">+</code> for more detail).
  34. </p><pre class="screen">
  35. =&gt; \dF russian
  36. List of text search configurations
  37. Schema | Name | Description
  38. ------------+---------+------------------------------------
  39. pg_catalog | russian | configuration for russian language
  40. =&gt; \dF+ russian
  41. Text search configuration "pg_catalog.russian"
  42. Parser: "pg_catalog.default"
  43. Token | Dictionaries
  44. -----------------+--------------
  45. asciihword | english_stem
  46. asciiword | english_stem
  47. email | simple
  48. file | simple
  49. float | simple
  50. host | simple
  51. hword | russian_stem
  52. hword_asciipart | english_stem
  53. hword_numpart | simple
  54. hword_part | russian_stem
  55. int | simple
  56. numhword | simple
  57. numword | simple
  58. sfloat | simple
  59. uint | simple
  60. url | simple
  61. url_path | simple
  62. version | simple
  63. word | russian_stem
  64. </pre><p>
  65. </p></dd><dt><span class="term"><code class="literal">\dFd[<span class="optional">+</span>] [<span class="optional">PATTERN</span>]</code></span></dt><dd><p>
  66. List text search dictionaries (add <code class="literal">+</code> for more detail).
  67. </p><pre class="screen">
  68. =&gt; \dFd
  69. List of text search dictionaries
  70. Schema | Name | Description
  71. ------------+-----------------+-----------------------------------------------------------
  72. pg_catalog | arabic_stem | snowball stemmer for arabic language
  73. pg_catalog | danish_stem | snowball stemmer for danish language
  74. pg_catalog | dutch_stem | snowball stemmer for dutch language
  75. pg_catalog | english_stem | snowball stemmer for english language
  76. pg_catalog | finnish_stem | snowball stemmer for finnish language
  77. pg_catalog | french_stem | snowball stemmer for french language
  78. pg_catalog | german_stem | snowball stemmer for german language
  79. pg_catalog | hungarian_stem | snowball stemmer for hungarian language
  80. pg_catalog | indonesian_stem | snowball stemmer for indonesian language
  81. pg_catalog | irish_stem | snowball stemmer for irish language
  82. pg_catalog | italian_stem | snowball stemmer for italian language
  83. pg_catalog | lithuanian_stem | snowball stemmer for lithuanian language
  84. pg_catalog | nepali_stem | snowball stemmer for nepali language
  85. pg_catalog | norwegian_stem | snowball stemmer for norwegian language
  86. pg_catalog | portuguese_stem | snowball stemmer for portuguese language
  87. pg_catalog | romanian_stem | snowball stemmer for romanian language
  88. pg_catalog | russian_stem | snowball stemmer for russian language
  89. pg_catalog | simple | simple dictionary: just lower case and check for stopword
  90. pg_catalog | spanish_stem | snowball stemmer for spanish language
  91. pg_catalog | swedish_stem | snowball stemmer for swedish language
  92. pg_catalog | tamil_stem | snowball stemmer for tamil language
  93. pg_catalog | turkish_stem | snowball stemmer for turkish language
  94. </pre><p>
  95. </p></dd><dt><span class="term"><code class="literal">\dFp[<span class="optional">+</span>] [<span class="optional">PATTERN</span>]</code></span></dt><dd><p>
  96. List text search parsers (add <code class="literal">+</code> for more detail).
  97. </p><pre class="screen">
  98. =&gt; \dFp
  99. List of text search parsers
  100. Schema | Name | Description
  101. ------------+---------+---------------------
  102. pg_catalog | default | default word parser
  103. =&gt; \dFp+
  104. Text search parser "pg_catalog.default"
  105. Method | Function | Description
  106. -----------------+----------------+-------------
  107. Start parse | prsd_start |
  108. Get next token | prsd_nexttoken |
  109. End parse | prsd_end |
  110. Get headline | prsd_headline |
  111. Get token types | prsd_lextype |
  112. Token types for parser "pg_catalog.default"
  113. Token name | Description
  114. -----------------+------------------------------------------
  115. asciihword | Hyphenated word, all ASCII
  116. asciiword | Word, all ASCII
  117. blank | Space symbols
  118. email | Email address
  119. entity | XML entity
  120. file | File or path name
  121. float | Decimal notation
  122. host | Host
  123. hword | Hyphenated word, all letters
  124. hword_asciipart | Hyphenated word part, all ASCII
  125. hword_numpart | Hyphenated word part, letters and digits
  126. hword_part | Hyphenated word part, all letters
  127. int | Signed integer
  128. numhword | Hyphenated word, letters and digits
  129. numword | Word, letters and digits
  130. protocol | Protocol head
  131. sfloat | Scientific notation
  132. tag | XML tag
  133. uint | Unsigned integer
  134. url | URL
  135. url_path | URL path
  136. version | Version number
  137. word | Word, all letters
  138. (23 rows)
  139. </pre><p>
  140. </p></dd><dt><span class="term"><code class="literal">\dFt[<span class="optional">+</span>] [<span class="optional">PATTERN</span>]</code></span></dt><dd><p>
  141. List text search templates (add <code class="literal">+</code> for more detail).
  142. </p><pre class="screen">
  143. =&gt; \dFt
  144. List of text search templates
  145. Schema | Name | Description
  146. ------------+-----------+-----------------------------------------------------------
  147. pg_catalog | ispell | ispell dictionary
  148. pg_catalog | simple | simple dictionary: just lower case and check for stopword
  149. pg_catalog | snowball | snowball stemmer
  150. pg_catalog | synonym | synonym dictionary: replace word by its synonym
  151. pg_catalog | thesaurus | thesaurus dictionary: phrase by phrase substitution
  152. </pre><p>
  153. </p></dd></dl></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="textsearch-indexes.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="textsearch.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="textsearch-limitations.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">12.9. GIN and GiST Index Types </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 12.11. Limitations</td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1