doc-exports/docs/dws/dev/dws_04_0627.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:24:04 +00:00

98 lines
8.4 KiB
HTML

<a name="EN-US_TOPIC_0000001233681827"></a><a name="EN-US_TOPIC_0000001233681827"></a>
<h1 class="topictitle1">PG_TS_PARSER</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001233681827__en-us_topic_0059777552_p31558278615"><strong id="EN-US_TOPIC_0000001233681827__b15820133312321">PG_TS_PARSER</strong> records entries defining text search parsers. A parser splits input text into lexemes and assigns a token type to each lexeme. Since a parser must be implemented by C functions, parsers can be created only by database administrators.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233681827__t8a8190256bdc4117a82b1de7fae82d5a" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_TS_PARSER columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233681827__r9b0857cec0e240d78b729cce15dfccd1"><th align="left" class="cellrowborder" valign="top" width="18.61%" id="mcps1.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001233681827__a583fa3c70545454c9ef27648a21d26a6">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.66%" id="mcps1.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001233681827__a55965927bfb240429726a4cdb90c3285">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="27.060000000000002%" id="mcps1.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001233681827__ab6be8502c305402cb576159740fb84a6">Reference</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.67%" id="mcps1.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001233681827__af8a3e0a4716d4065b00d386643d08626">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233681827__rd94493e6474e49e8a08223309a87939e"><td class="cellrowborder" valign="top" width="18.61%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681827__a4d626a133a4b4ba2a2fea971a3ee78a4">oid</p>
</td>
<td class="cellrowborder" valign="top" width="11.66%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681827__a169c09152ea5499e9e47620130ea3605">oid</p>
</td>
<td class="cellrowborder" valign="top" width="27.060000000000002%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681827__ac8990ed72a74473e80475505547aaff8">-</p>
</td>
<td class="cellrowborder" valign="top" width="42.67%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681827__abd3f5423d2ff49b389f4d9bdec4b013e">Row identifier (hidden attribute; must be explicitly selected)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681827__r7cf2d3f7eba14296b87253de6477241e"><td class="cellrowborder" valign="top" width="18.61%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681827__a45523445cf7542db98a89c35c03685b7">prsname</p>
</td>
<td class="cellrowborder" valign="top" width="11.66%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681827__a1b5ae828b7af4520a13e7ac97e808556">name</p>
</td>
<td class="cellrowborder" valign="top" width="27.060000000000002%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681827__ac4e4fdc30c4a409bb56d88888c028557">-</p>
</td>
<td class="cellrowborder" valign="top" width="42.67%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681827__a31471bb9a3c64963b911342735bc6c90">Text search parser name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681827__rb4a7715f2d3045d29562c87f579ba6a4"><td class="cellrowborder" valign="top" width="18.61%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681827__a86046fb372534ac4a0aba0131e7ddbf4">prsnamespace</p>
</td>
<td class="cellrowborder" valign="top" width="11.66%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681827__adc6d70080f424af1a8d0c65c114bceb7">oid</p>
</td>
<td class="cellrowborder" valign="top" width="27.060000000000002%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681827__a50581620b0f5437aa4d73eacb9ca1978"><a href="dws_04_0600.html">PG_NAMESPACE</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.67%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681827__ad75541f8114943519c6e768c2827ebdb">OID of the namespace that contains the parser</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681827__r3971ca8b96864ce0966d5f0366436799"><td class="cellrowborder" valign="top" width="18.61%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681827__a2c3fb02d332f4579a681a4190bf5b888">prsstart</p>
</td>
<td class="cellrowborder" valign="top" width="11.66%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681827__a49595750c957427294ad7038e25f3407">regproc</p>
</td>
<td class="cellrowborder" valign="top" width="27.060000000000002%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681827__af6babb9c5aaf4f1ebcbc44cd1f4b0a6c"><a href="dws_04_0608.html">PG_PROC</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.67%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681827__a2ab801269bb24a9cb49029e65e46173a">OID of the parser's startup function</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681827__r12f62dfde8404cacabade365426a5a3d"><td class="cellrowborder" valign="top" width="18.61%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681827__a6cf17e8d4fbb46ee812e374c42fe67a6">prstoken</p>
</td>
<td class="cellrowborder" valign="top" width="11.66%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681827__a7ee791b0177a4d068fe65b718e8c9d8f">regproc</p>
</td>
<td class="cellrowborder" valign="top" width="27.060000000000002%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681827__a178708e57f324c81aedc1f1ac726ce85"><a href="dws_04_0608.html">PG_PROC</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.67%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681827__a18fd9094fde747a2bcffe40959dc20bd">OID of the parser's next-token function</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681827__rd0386aaa37ee4c7ead251f8dbd165ef8"><td class="cellrowborder" valign="top" width="18.61%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681827__a088b6a7fe0764ca49d5b959909db780f">prsend</p>
</td>
<td class="cellrowborder" valign="top" width="11.66%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681827__a99ec10546965420e920fdce5fe8577db">regproc</p>
</td>
<td class="cellrowborder" valign="top" width="27.060000000000002%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681827__acf5ee1bf3c9841e8ac7ee040fea7e3bf"><a href="dws_04_0608.html">PG_PROC</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.67%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681827__a97b5bfb36563436a828660c81bc53bed">OID of the parser's shutdown function</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681827__r3ddf33f6b91f49e1b2405b4ceb088420"><td class="cellrowborder" valign="top" width="18.61%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681827__a531c0825e4944cc9854a004e2eeed217">prsheadline</p>
</td>
<td class="cellrowborder" valign="top" width="11.66%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681827__a511fb0a3f6eb445ca4df3cbaebe10957">regproc</p>
</td>
<td class="cellrowborder" valign="top" width="27.060000000000002%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681827__a0a60d69fca994ef19a311aeaac83c0fc"><a href="dws_04_0608.html">PG_PROC</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.67%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681827__a55f1df60e87d495ab61d39416b7778dc">OID of the parser's headline function</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681827__rd7d5f6d6b26549ed9ab42da69c6f807d"><td class="cellrowborder" valign="top" width="18.61%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681827__a9f30e99c49e142f49a2f45eac91f7290">prslextype</p>
</td>
<td class="cellrowborder" valign="top" width="11.66%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681827__ac822f5357dfb41268e1be80d4a44a378">regproc</p>
</td>
<td class="cellrowborder" valign="top" width="27.060000000000002%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681827__ab3e536e893ae4f98b47eb8610a69d10b"><a href="dws_04_0608.html">PG_PROC</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.67%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681827__add471f645087408ca183b9b2cbcf238f">OID of the parser's lextype function</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0561.html">System Catalogs</a></div>
</div>
</div>