1CREATE ACCESS METHOD(7)  PostgreSQL 15.4 Documentation CREATE ACCESS METHOD(7)
2
3
4

NAME

6       CREATE_ACCESS_METHOD - define a new access method
7

SYNOPSIS

9       CREATE ACCESS METHOD name
10           TYPE access_method_type
11           HANDLER handler_function
12

DESCRIPTION

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

PARAMETERS

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           TABLE and INDEX are 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 TABLE access methods, it must be table_am_handler and
34           for INDEX access methods, it must be index_am_handler. The C-level
35           API that the handler function must implement varies depending on
36           the type of access method. The table access method API is described
37           in Chapter 63 and the index access method API is described in
38           Chapter 64.
39

EXAMPLES

41       Create an index access method heptree with handler function
42       heptree_handler:
43
44           CREATE ACCESS METHOD heptree TYPE INDEX HANDLER heptree_handler;
45

COMPATIBILITY

47       CREATE ACCESS METHOD is a PostgreSQL extension.
48

SEE ALSO

50       DROP ACCESS METHOD (DROP_ACCESS_METHOD(7)), CREATE OPERATOR CLASS
51       (CREATE_OPERATOR_CLASS(7)), CREATE OPERATOR FAMILY
52       (CREATE_OPERATOR_FAMILY(7))
53
54
55
56PostgreSQL 15.4                      2023              CREATE ACCESS METHOD(7)
Impressum