1CREATE ACCESS METHOD(7) PostgreSQL 11.6 Documentation CREATE ACCESS METHOD(7)
2
3
4
6 CREATE_ACCESS_METHOD - define a new access method
7
9 CREATE ACCESS METHOD name
10 TYPE access_method_type
11 HANDLER handler_function
12
14 CREATE ACCESS METHOD creates a new access method.
15
16 The access method name must be unique within the database.
17
18 Only superusers can define new access methods.
19
21 name
22 The name of the access method to be created.
23
24 access_method_type
25 This clause specifies the type of access method to define. Only
26 INDEX is supported at present.
27
28 handler_function
29 handler_function is the name (possibly schema-qualified) of a
30 previously registered function that represents the access method.
31 The handler function must be declared to take a single argument of
32 type internal, and its return type depends on the type of access
33 method; for INDEX access methods, it must be index_am_handler. The
34 C-level API that the handler function must implement varies
35 depending on the type of access method. The index access method API
36 is described in Chapter 61.
37
39 Create an index access method heptree with handler function
40 heptree_handler:
41
42 CREATE ACCESS METHOD heptree TYPE INDEX HANDLER heptree_handler;
43
45 CREATE ACCESS METHOD is a PostgreSQL extension.
46
48 DROP ACCESS METHOD (DROP_ACCESS_METHOD(7)), CREATE OPERATOR CLASS
49 (CREATE_OPERATOR_CLASS(7)), CREATE OPERATOR FAMILY
50 (CREATE_OPERATOR_FAMILY(7))
51
52
53
54PostgreSQL 11.6 2019 CREATE ACCESS METHOD(7)