gooderp18绿色标准版
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

426 行
26KB

  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>61.2. Index Access Method Functions</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="index-api.html" title="61.1. Basic API Structure for Indexes" /><link rel="next" href="index-scanning.html" title="61.3. Index Scanning" /></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">61.2. Index Access Method Functions</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="index-api.html" title="61.1. Basic API Structure for Indexes">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="indexam.html" title="Chapter 61. Index Access Method Interface Definition">Up</a></td><th width="60%" align="center">Chapter 61. Index Access Method Interface Definition</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="index-scanning.html" title="61.3. Index Scanning">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="INDEX-FUNCTIONS"><div class="titlepage"><div><div><h2 class="title" style="clear: both">61.2. Index Access Method Functions</h2></div></div></div><p>
  3. The index construction and maintenance functions that an index access
  4. method must provide in <code class="structname">IndexAmRoutine</code> are:
  5. </p><p>
  6. </p><pre class="programlisting">
  7. IndexBuildResult *
  8. ambuild (Relation heapRelation,
  9. Relation indexRelation,
  10. IndexInfo *indexInfo);
  11. </pre><p>
  12. Build a new index. The index relation has been physically created,
  13. but is empty. It must be filled in with whatever fixed data the
  14. access method requires, plus entries for all tuples already existing
  15. in the table. Ordinarily the <code class="function">ambuild</code> function will call
  16. <code class="function">table_index_build_scan()</code> to scan the table for existing tuples
  17. and compute the keys that need to be inserted into the index.
  18. The function must return a palloc'd struct containing statistics about
  19. the new index.
  20. </p><p>
  21. </p><pre class="programlisting">
  22. void
  23. ambuildempty (Relation indexRelation);
  24. </pre><p>
  25. Build an empty index, and write it to the initialization fork (<code class="symbol">INIT_FORKNUM</code>)
  26. of the given relation. This method is called only for unlogged indexes; the
  27. empty index written to the initialization fork will be copied over the main
  28. relation fork on each server restart.
  29. </p><p>
  30. </p><pre class="programlisting">
  31. bool
  32. aminsert (Relation indexRelation,
  33. Datum *values,
  34. bool *isnull,
  35. ItemPointer heap_tid,
  36. Relation heapRelation,
  37. IndexUniqueCheck checkUnique,
  38. IndexInfo *indexInfo);
  39. </pre><p>
  40. Insert a new tuple into an existing index. The <code class="literal">values</code> and
  41. <code class="literal">isnull</code> arrays give the key values to be indexed, and
  42. <code class="literal">heap_tid</code> is the TID to be indexed.
  43. If the access method supports unique indexes (its
  44. <code class="structfield">amcanunique</code> flag is true) then
  45. <code class="literal">checkUnique</code> indicates the type of uniqueness check to
  46. perform. This varies depending on whether the unique constraint is
  47. deferrable; see <a class="xref" href="index-unique-checks.html" title="61.5. Index Uniqueness Checks">Section 61.5</a> for details.
  48. Normally the access method only needs the <code class="literal">heapRelation</code>
  49. parameter when performing uniqueness checking (since then it will have to
  50. look into the heap to verify tuple liveness).
  51. </p><p>
  52. The function's Boolean result value is significant only when
  53. <code class="literal">checkUnique</code> is <code class="literal">UNIQUE_CHECK_PARTIAL</code>.
  54. In this case a true result means the new entry is known unique, whereas
  55. false means it might be non-unique (and a deferred uniqueness check must
  56. be scheduled). For other cases a constant false result is recommended.
  57. </p><p>
  58. Some indexes might not index all tuples. If the tuple is not to be
  59. indexed, <code class="function">aminsert</code> should just return without doing anything.
  60. </p><p>
  61. If the index AM wishes to cache data across successive index insertions
  62. within a SQL statement, it can allocate space
  63. in <code class="literal">indexInfo-&gt;ii_Context</code> and store a pointer to the
  64. data in <code class="literal">indexInfo-&gt;ii_AmCache</code> (which will be NULL
  65. initially).
  66. </p><p>
  67. </p><pre class="programlisting">
  68. IndexBulkDeleteResult *
  69. ambulkdelete (IndexVacuumInfo *info,
  70. IndexBulkDeleteResult *stats,
  71. IndexBulkDeleteCallback callback,
  72. void *callback_state);
  73. </pre><p>
  74. Delete tuple(s) from the index. This is a <span class="quote">“<span class="quote">bulk delete</span>”</span> operation
  75. that is intended to be implemented by scanning the whole index and checking
  76. each entry to see if it should be deleted.
  77. The passed-in <code class="literal">callback</code> function must be called, in the style
  78. <code class="literal">callback(<em class="replaceable"><code>TID</code></em>, callback_state) returns bool</code>,
  79. to determine whether any particular index entry, as identified by its
  80. referenced TID, is to be deleted. Must return either NULL or a palloc'd
  81. struct containing statistics about the effects of the deletion operation.
  82. It is OK to return NULL if no information needs to be passed on to
  83. <code class="function">amvacuumcleanup</code>.
  84. </p><p>
  85. Because of limited <code class="varname">maintenance_work_mem</code>,
  86. <code class="function">ambulkdelete</code> might need to be called more than once when many
  87. tuples are to be deleted. The <code class="literal">stats</code> argument is the result
  88. of the previous call for this index (it is NULL for the first call within a
  89. <code class="command">VACUUM</code> operation). This allows the AM to accumulate statistics
  90. across the whole operation. Typically, <code class="function">ambulkdelete</code> will
  91. modify and return the same struct if the passed <code class="literal">stats</code> is not
  92. null.
  93. </p><p>
  94. </p><pre class="programlisting">
  95. IndexBulkDeleteResult *
  96. amvacuumcleanup (IndexVacuumInfo *info,
  97. IndexBulkDeleteResult *stats);
  98. </pre><p>
  99. Clean up after a <code class="command">VACUUM</code> operation (zero or more
  100. <code class="function">ambulkdelete</code> calls). This does not have to do anything
  101. beyond returning index statistics, but it might perform bulk cleanup
  102. such as reclaiming empty index pages. <code class="literal">stats</code> is whatever the
  103. last <code class="function">ambulkdelete</code> call returned, or NULL if
  104. <code class="function">ambulkdelete</code> was not called because no tuples needed to be
  105. deleted. If the result is not NULL it must be a palloc'd struct.
  106. The statistics it contains will be used to update <code class="structname">pg_class</code>,
  107. and will be reported by <code class="command">VACUUM</code> if <code class="literal">VERBOSE</code> is given.
  108. It is OK to return NULL if the index was not changed at all during the
  109. <code class="command">VACUUM</code> operation, but otherwise correct stats should
  110. be returned.
  111. </p><p>
  112. As of <span class="productname">PostgreSQL</span> 8.4,
  113. <code class="function">amvacuumcleanup</code> will also be called at completion of an
  114. <code class="command">ANALYZE</code> operation. In this case <code class="literal">stats</code> is always
  115. NULL and any return value will be ignored. This case can be distinguished
  116. by checking <code class="literal">info-&gt;analyze_only</code>. It is recommended
  117. that the access method do nothing except post-insert cleanup in such a
  118. call, and that only in an autovacuum worker process.
  119. </p><p>
  120. </p><pre class="programlisting">
  121. bool
  122. amcanreturn (Relation indexRelation, int attno);
  123. </pre><p>
  124. Check whether the index can support <a class="link" href="indexes-index-only-scans.html" title="11.9. Index-Only Scans and Covering Indexes"><em class="firstterm">index-only scans</em></a> on
  125. the given column, by returning the indexed column values for an index entry
  126. in the form of an <code class="structname">IndexTuple</code>. The attribute number
  127. is 1-based, i.e. the first column's attno is 1. Returns true if supported,
  128. else false. If the access method does not support index-only scans at all,
  129. the <code class="structfield">amcanreturn</code> field in its <code class="structname">IndexAmRoutine</code>
  130. struct can be set to NULL.
  131. </p><p>
  132. </p><pre class="programlisting">
  133. void
  134. amcostestimate (PlannerInfo *root,
  135. IndexPath *path,
  136. double loop_count,
  137. Cost *indexStartupCost,
  138. Cost *indexTotalCost,
  139. Selectivity *indexSelectivity,
  140. double *indexCorrelation,
  141. double *indexPages);
  142. </pre><p>
  143. Estimate the costs of an index scan. This function is described fully
  144. in <a class="xref" href="index-cost-estimation.html" title="61.6. Index Cost Estimation Functions">Section 61.6</a>, below.
  145. </p><p>
  146. </p><pre class="programlisting">
  147. bytea *
  148. amoptions (ArrayType *reloptions,
  149. bool validate);
  150. </pre><p>
  151. Parse and validate the reloptions array for an index. This is called only
  152. when a non-null reloptions array exists for the index.
  153. <em class="parameter"><code>reloptions</code></em> is a <code class="type">text</code> array containing entries of the
  154. form <em class="replaceable"><code>name</code></em><code class="literal">=</code><em class="replaceable"><code>value</code></em>.
  155. The function should construct a <code class="type">bytea</code> value, which will be copied
  156. into the <code class="structfield">rd_options</code> field of the index's relcache entry.
  157. The data contents of the <code class="type">bytea</code> value are open for the access
  158. method to define; most of the standard access methods use struct
  159. <code class="structname">StdRdOptions</code>.
  160. When <em class="parameter"><code>validate</code></em> is true, the function should report a suitable
  161. error message if any of the options are unrecognized or have invalid
  162. values; when <em class="parameter"><code>validate</code></em> is false, invalid entries should be
  163. silently ignored. (<em class="parameter"><code>validate</code></em> is false when loading options
  164. already stored in <code class="structname">pg_catalog</code>; an invalid entry could only
  165. be found if the access method has changed its rules for options, and in
  166. that case ignoring obsolete entries is appropriate.)
  167. It is OK to return NULL if default behavior is wanted.
  168. </p><p>
  169. </p><pre class="programlisting">
  170. bool
  171. amproperty (Oid index_oid, int attno,
  172. IndexAMProperty prop, const char *propname,
  173. bool *res, bool *isnull);
  174. </pre><p>
  175. The <code class="function">amproperty</code> method allows index access methods to override
  176. the default behavior of <code class="function">pg_index_column_has_property</code>
  177. and related functions.
  178. If the access method does not have any special behavior for index property
  179. inquiries, the <code class="structfield">amproperty</code> field in
  180. its <code class="structname">IndexAmRoutine</code> struct can be set to NULL.
  181. Otherwise, the <code class="function">amproperty</code> method will be called with
  182. <em class="parameter"><code>index_oid</code></em> and <em class="parameter"><code>attno</code></em> both zero for
  183. <code class="function">pg_indexam_has_property</code> calls,
  184. or with <em class="parameter"><code>index_oid</code></em> valid and <em class="parameter"><code>attno</code></em> zero for
  185. <code class="function">pg_index_has_property</code> calls,
  186. or with <em class="parameter"><code>index_oid</code></em> valid and <em class="parameter"><code>attno</code></em> greater than
  187. zero for <code class="function">pg_index_column_has_property</code> calls.
  188. <em class="parameter"><code>prop</code></em> is an enum value identifying the property being tested,
  189. while <em class="parameter"><code>propname</code></em> is the original property name string.
  190. If the core code does not recognize the property name
  191. then <em class="parameter"><code>prop</code></em> is <code class="literal">AMPROP_UNKNOWN</code>.
  192. Access methods can define custom property names by
  193. checking <em class="parameter"><code>propname</code></em> for a match (use <code class="function">pg_strcasecmp</code>
  194. to match, for consistency with the core code); for names known to the core
  195. code, it's better to inspect <em class="parameter"><code>prop</code></em>.
  196. If the <code class="structfield">amproperty</code> method returns <code class="literal">true</code> then
  197. it has determined the property test result: it must set <code class="literal">*res</code>
  198. to the boolean value to return, or set <code class="literal">*isnull</code>
  199. to <code class="literal">true</code> to return a NULL. (Both of the referenced variables
  200. are initialized to <code class="literal">false</code> before the call.)
  201. If the <code class="structfield">amproperty</code> method returns <code class="literal">false</code> then
  202. the core code will proceed with its normal logic for determining the
  203. property test result.
  204. </p><p>
  205. Access methods that support ordering operators should
  206. implement <code class="literal">AMPROP_DISTANCE_ORDERABLE</code> property testing, as the
  207. core code does not know how to do that and will return NULL. It may
  208. also be advantageous to implement <code class="literal">AMPROP_RETURNABLE</code> testing,
  209. if that can be done more cheaply than by opening the index and calling
  210. <code class="structfield">amcanreturn</code>, which is the core code's default behavior.
  211. The default behavior should be satisfactory for all other standard
  212. properties.
  213. </p><p>
  214. </p><pre class="programlisting">
  215. char *
  216. ambuildphasename (int64 phasenum);
  217. </pre><p>
  218. Return the textual name of the given build phase number.
  219. The phase numbers are those reported during an index build via the
  220. <code class="function">pgstat_progress_update_param</code> interface.
  221. The phase names are then exposed in the
  222. <code class="structname">pg_stat_progress_create_index</code> view.
  223. </p><p>
  224. </p><pre class="programlisting">
  225. bool
  226. amvalidate (Oid opclassoid);
  227. </pre><p>
  228. Validate the catalog entries for the specified operator class, so far as
  229. the access method can reasonably do that. For example, this might include
  230. testing that all required support functions are provided.
  231. The <code class="function">amvalidate</code> function must return false if the opclass is
  232. invalid. Problems should be reported with <code class="function">ereport</code> messages.
  233. </p><p>
  234. The purpose of an index, of course, is to support scans for tuples matching
  235. an indexable <code class="literal">WHERE</code> condition, often called a
  236. <em class="firstterm">qualifier</em> or <em class="firstterm">scan key</em>. The semantics of
  237. index scanning are described more fully in <a class="xref" href="index-scanning.html" title="61.3. Index Scanning">Section 61.3</a>,
  238. below. An index access method can support <span class="quote">“<span class="quote">plain</span>”</span> index scans,
  239. <span class="quote">“<span class="quote">bitmap</span>”</span> index scans, or both. The scan-related functions that an
  240. index access method must or may provide are:
  241. </p><p>
  242. </p><pre class="programlisting">
  243. IndexScanDesc
  244. ambeginscan (Relation indexRelation,
  245. int nkeys,
  246. int norderbys);
  247. </pre><p>
  248. Prepare for an index scan. The <code class="literal">nkeys</code> and <code class="literal">norderbys</code>
  249. parameters indicate the number of quals and ordering operators that will be
  250. used in the scan; these may be useful for space allocation purposes.
  251. Note that the actual values of the scan keys aren't provided yet.
  252. The result must be a palloc'd struct.
  253. For implementation reasons the index access method
  254. <span class="emphasis"><em>must</em></span> create this struct by calling
  255. <code class="function">RelationGetIndexScan()</code>. In most cases
  256. <code class="function">ambeginscan</code> does little beyond making that call and perhaps
  257. acquiring locks;
  258. the interesting parts of index-scan startup are in <code class="function">amrescan</code>.
  259. </p><p>
  260. </p><pre class="programlisting">
  261. void
  262. amrescan (IndexScanDesc scan,
  263. ScanKey keys,
  264. int nkeys,
  265. ScanKey orderbys,
  266. int norderbys);
  267. </pre><p>
  268. Start or restart an index scan, possibly with new scan keys. (To restart
  269. using previously-passed keys, NULL is passed for <code class="literal">keys</code> and/or
  270. <code class="literal">orderbys</code>.) Note that it is not allowed for
  271. the number of keys or order-by operators to be larger than
  272. what was passed to <code class="function">ambeginscan</code>. In practice the restart
  273. feature is used when a new outer tuple is selected by a nested-loop join
  274. and so a new key comparison value is needed, but the scan key structure
  275. remains the same.
  276. </p><p>
  277. </p><pre class="programlisting">
  278. boolean
  279. amgettuple (IndexScanDesc scan,
  280. ScanDirection direction);
  281. </pre><p>
  282. Fetch the next tuple in the given scan, moving in the given
  283. direction (forward or backward in the index). Returns true if a tuple was
  284. obtained, false if no matching tuples remain. In the true case the tuple
  285. TID is stored into the <code class="literal">scan</code> structure. Note that
  286. <span class="quote">“<span class="quote">success</span>”</span> means only that the index contains an entry that matches
  287. the scan keys, not that the tuple necessarily still exists in the heap or
  288. will pass the caller's snapshot test. On success, <code class="function">amgettuple</code>
  289. must also set <code class="literal">scan-&gt;xs_recheck</code> to true or false.
  290. False means it is certain that the index entry matches the scan keys.
  291. true means this is not certain, and the conditions represented by the
  292. scan keys must be rechecked against the heap tuple after fetching it.
  293. This provision supports <span class="quote">“<span class="quote">lossy</span>”</span> index operators.
  294. Note that rechecking will extend only to the scan conditions; a partial
  295. index predicate (if any) is never rechecked by <code class="function">amgettuple</code>
  296. callers.
  297. </p><p>
  298. If the index supports <a class="link" href="indexes-index-only-scans.html" title="11.9. Index-Only Scans and Covering Indexes">index-only
  299. scans</a> (i.e., <code class="function">amcanreturn</code> returns true for it),
  300. then on success the AM must also check <code class="literal">scan-&gt;xs_want_itup</code>,
  301. and if that is true it must return the originally indexed data for the
  302. index entry. The data can be returned in the form of an
  303. <code class="structname">IndexTuple</code> pointer stored at <code class="literal">scan-&gt;xs_itup</code>,
  304. with tuple descriptor <code class="literal">scan-&gt;xs_itupdesc</code>; or in the form of
  305. a <code class="structname">HeapTuple</code> pointer stored at <code class="literal">scan-&gt;xs_hitup</code>,
  306. with tuple descriptor <code class="literal">scan-&gt;xs_hitupdesc</code>. (The latter
  307. format should be used when reconstructing data that might possibly not fit
  308. into an <code class="structname">IndexTuple</code>.) In either case,
  309. management of the data referenced by the pointer is the access method's
  310. responsibility. The data must remain good at least until the next
  311. <code class="function">amgettuple</code>, <code class="function">amrescan</code>, or <code class="function">amendscan</code>
  312. call for the scan.
  313. </p><p>
  314. The <code class="function">amgettuple</code> function need only be provided if the access
  315. method supports <span class="quote">“<span class="quote">plain</span>”</span> index scans. If it doesn't, the
  316. <code class="structfield">amgettuple</code> field in its <code class="structname">IndexAmRoutine</code>
  317. struct must be set to NULL.
  318. </p><p>
  319. </p><pre class="programlisting">
  320. int64
  321. amgetbitmap (IndexScanDesc scan,
  322. TIDBitmap *tbm);
  323. </pre><p>
  324. Fetch all tuples in the given scan and add them to the caller-supplied
  325. <code class="type">TIDBitmap</code> (that is, OR the set of tuple IDs into whatever set is already
  326. in the bitmap). The number of tuples fetched is returned (this might be
  327. just an approximate count, for instance some AMs do not detect duplicates).
  328. While inserting tuple IDs into the bitmap, <code class="function">amgetbitmap</code> can
  329. indicate that rechecking of the scan conditions is required for specific
  330. tuple IDs. This is analogous to the <code class="literal">xs_recheck</code> output parameter
  331. of <code class="function">amgettuple</code>. Note: in the current implementation, support
  332. for this feature is conflated with support for lossy storage of the bitmap
  333. itself, and therefore callers recheck both the scan conditions and the
  334. partial index predicate (if any) for recheckable tuples. That might not
  335. always be true, however.
  336. <code class="function">amgetbitmap</code> and
  337. <code class="function">amgettuple</code> cannot be used in the same index scan; there
  338. are other restrictions too when using <code class="function">amgetbitmap</code>, as explained
  339. in <a class="xref" href="index-scanning.html" title="61.3. Index Scanning">Section 61.3</a>.
  340. </p><p>
  341. The <code class="function">amgetbitmap</code> function need only be provided if the access
  342. method supports <span class="quote">“<span class="quote">bitmap</span>”</span> index scans. If it doesn't, the
  343. <code class="structfield">amgetbitmap</code> field in its <code class="structname">IndexAmRoutine</code>
  344. struct must be set to NULL.
  345. </p><p>
  346. </p><pre class="programlisting">
  347. void
  348. amendscan (IndexScanDesc scan);
  349. </pre><p>
  350. End a scan and release resources. The <code class="literal">scan</code> struct itself
  351. should not be freed, but any locks or pins taken internally by the
  352. access method must be released, as well as any other memory allocated
  353. by <code class="function">ambeginscan</code> and other scan-related functions.
  354. </p><p>
  355. </p><pre class="programlisting">
  356. void
  357. ammarkpos (IndexScanDesc scan);
  358. </pre><p>
  359. Mark current scan position. The access method need only support one
  360. remembered scan position per scan.
  361. </p><p>
  362. The <code class="function">ammarkpos</code> function need only be provided if the access
  363. method supports ordered scans. If it doesn't,
  364. the <code class="structfield">ammarkpos</code> field in its <code class="structname">IndexAmRoutine</code>
  365. struct may be set to NULL.
  366. </p><p>
  367. </p><pre class="programlisting">
  368. void
  369. amrestrpos (IndexScanDesc scan);
  370. </pre><p>
  371. Restore the scan to the most recently marked position.
  372. </p><p>
  373. The <code class="function">amrestrpos</code> function need only be provided if the access
  374. method supports ordered scans. If it doesn't,
  375. the <code class="structfield">amrestrpos</code> field in its <code class="structname">IndexAmRoutine</code>
  376. struct may be set to NULL.
  377. </p><p>
  378. In addition to supporting ordinary index scans, some types of index
  379. may wish to support <em class="firstterm">parallel index scans</em>, which allow
  380. multiple backends to cooperate in performing an index scan. The
  381. index access method should arrange things so that each cooperating
  382. process returns a subset of the tuples that would be performed by
  383. an ordinary, non-parallel index scan, but in such a way that the
  384. union of those subsets is equal to the set of tuples that would be
  385. returned by an ordinary, non-parallel index scan. Furthermore, while
  386. there need not be any global ordering of tuples returned by a parallel
  387. scan, the ordering of that subset of tuples returned within each
  388. cooperating backend must match the requested ordering. The following
  389. functions may be implemented to support parallel index scans:
  390. </p><p>
  391. </p><pre class="programlisting">
  392. Size
  393. amestimateparallelscan (void);
  394. </pre><p>
  395. Estimate and return the number of bytes of dynamic shared memory which
  396. the access method will be needed to perform a parallel scan. (This number
  397. is in addition to, not in lieu of, the amount of space needed for
  398. AM-independent data in <code class="structname">ParallelIndexScanDescData</code>.)
  399. </p><p>
  400. It is not necessary to implement this function for access methods which
  401. do not support parallel scans or for which the number of additional bytes
  402. of storage required is zero.
  403. </p><p>
  404. </p><pre class="programlisting">
  405. void
  406. aminitparallelscan (void *target);
  407. </pre><p>
  408. This function will be called to initialize dynamic shared memory at the
  409. beginning of a parallel scan. <em class="parameter"><code>target</code></em> will point to at least
  410. the number of bytes previously returned by
  411. <code class="function">amestimateparallelscan</code>, and this function may use that
  412. amount of space to store whatever data it wishes.
  413. </p><p>
  414. It is not necessary to implement this function for access methods which
  415. do not support parallel scans or in cases where the shared memory space
  416. required needs no initialization.
  417. </p><p>
  418. </p><pre class="programlisting">
  419. void
  420. amparallelrescan (IndexScanDesc scan);
  421. </pre><p>
  422. This function, if implemented, will be called when a parallel index scan
  423. must be restarted. It should reset any shared state set up by
  424. <code class="function">aminitparallelscan</code> such that the scan will be restarted from
  425. the beginning.
  426. </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="index-api.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="indexam.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="index-scanning.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">61.1. Basic API Structure for Indexes </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 61.3. Index Scanning</td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1