File tree Expand file tree Collapse file tree 3 files changed +8406
-5357
lines changed Expand file tree Collapse file tree 3 files changed +8406
-5357
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,8 @@ typedef struct IndexAmRoutine
216
216
uint16 amstrategies;
217
217
/* total number of support functions that this AM uses */
218
218
uint16 amsupport;
219
+ /* opclass options support function number or 0 */
220
+ uint16 amoptsprocnum;
219
221
/* does AM support ORDER BY indexed column's value? */
220
222
bool amcanorder;
221
223
/* does AM support ORDER BY result of an operator on indexed column? */
@@ -242,6 +244,10 @@ typedef struct IndexAmRoutine
242
244
bool amcanparallel;
243
245
/* does AM support columns included with clause INCLUDE? */
244
246
bool amcaninclude;
247
+ /* does AM use maintenance_work_mem? */
248
+ bool amusemaintenanceworkmem;
249
+ /* OR of parallel vacuum flags */
250
+ uint8 amparallelvacuumoptions;
245
251
/* type of data stored in index, or InvalidOid if variable */
246
252
Oid amkeytype;
247
253
@@ -690,7 +696,7 @@ amoptions (ArrayType *reloptions,
690
696
</programlisting>
691
697
分析和验证一个索引的 reloptions 数组。仅当一个索引存在非空 reloptions 数组时才会被调用。<parameter>reloptions</parameter>是一个<type>text</type>数组,包含<replaceable>name</replaceable><literal>=</literal><replaceable>value</replaceable>形式的项。 该函数应当构建一个<type>bytea</type>值,该值将被拷贝进索引的 relcache 项的<structfield>rd_options</structfield>域。<type>bytea</type>值的数据内容是开放由访问方法定义的, 大部分的标准访问方法都使用<structname>StdRdOptions</structname>结构。当<parameter>validate</parameter>为真时,如果任何一个选项都不可识别或者含有非法值,该函数都应当报告一个适当的错误消息;当<parameter>validate</parameter>为假时,非法 项应该被安静地忽略(当正在载入的选项已经在<structname>pg_catalog</structname>中时, <parameter>validate</parameter>为假;仅在访问方法已经改变了选项的规则时才可能找 到非法项,并且在此情况下忽略废弃的项是合适的)。如果想要默认行为,那么返回 NULL 也 OK。
692
698
</para>
693
-
699
+
694
700
<!--==========================orignal english content==========================
695
701
<para>
696
702
<programlisting>
@@ -1031,7 +1037,7 @@ ammarkpos (IndexScanDesc scan);
1031
1037
</programlisting>
1032
1038
标记当前扫描位置。访问方法只需要支持每个扫描里面有一个被标记的扫描位置。
1033
1039
</para>
1034
-
1040
+
1035
1041
<!--==========================orignal english content==========================
1036
1042
<para>
1037
1043
The <function>ammarkpos</function> function need only be provided if the access
You can’t perform that action at this time.
0 commit comments