@@ -57,29 +57,28 @@ CREATE ACCESS METHOD <replaceable class="parameter">name</replaceable>
57
57
</varlistentry>
58
58
59
59
<varlistentry>
60
- <term><literal >access_method_type</literal ></term>
60
+ <term><replaceable class="parameter" >access_method_type</replaceable ></term>
61
61
<listitem>
62
62
<para>
63
- This clause specifies type of access method to define.
63
+ This clause specifies the type of access method to define.
64
64
Only <literal>INDEX</literal> is supported at present.
65
65
</para>
66
66
</listitem>
67
67
</varlistentry>
68
68
69
69
<varlistentry>
70
- <term><literal>HANDLER < replaceable class="parameter">handler_function</replaceable></literal ></term>
70
+ <term><replaceable class="parameter">handler_function</replaceable></term>
71
71
<listitem>
72
- <para><replaceable class="parameter">handler_function</replaceable> is the
73
- name of a previously registered function that will be called to
74
- retrieve the struct which contains required parameters and functions
75
- of access method to the core. The handler function must take single
76
- argument of type <type>internal</>, and its return type depends on the
77
- type of access method; for <literal>INDEX</literal> access methods, it
78
- must be <type>index_am_handler</type>.
79
- </para>
80
-
81
72
<para>
82
- See <xref linkend="index-api"> for index access methods API.
73
+ <replaceable class="parameter">handler_function</replaceable> is the
74
+ name (possibly schema-qualified) of a previously registered function
75
+ that represents the access method. The handler function must be
76
+ declared to take a single argument of type <type>internal</>,
77
+ and its return type depends on the type of access method;
78
+ for <literal>INDEX</literal> access methods, it must
79
+ be <type>index_am_handler</type>. The C-level API that the handler
80
+ function must implement varies depending on the type of access method.
81
+ The index access method API is described in <xref linkend="indexam">.
83
82
</para>
84
83
</listitem>
85
84
</varlistentry>
@@ -90,7 +89,7 @@ CREATE ACCESS METHOD <replaceable class="parameter">name</replaceable>
90
89
<title>Examples</title>
91
90
92
91
<para>
93
- Create an access method <literal>heptree</> with
92
+ Create an index access method <literal>heptree</> with
94
93
handler function <literal>heptree_handler</>:
95
94
<programlisting>
96
95
CREATE ACCESS METHOD heptree TYPE INDEX HANDLER heptree_handler;
0 commit comments