The database server calls am_create to process a CREATE INDEX statement. The am_create function creates the index, based on the information in the table descriptor, which describes the keys in an index.
mi_integer am_create(MI_AM_TABLE_DESC *tableDesc)
Even if the access method does not provide an am_create function, the database server automatically adds the created object to the system catalog tables, such as systablessysindexes. For example, a user might issue the CREATE INDEX command to register an existing, external index in the database server system catalog.
The am_create function typically:
The access method might supply the support functions or execute UDRs from outside the access-method shared-object library. For more information, refer to Using FastPath.
MI_OK indicates success. MI_ERROR indicates failure.
In this manual, see the description of:
In the IBM Informix: DataBlade API Programmer's Guide, see the descriptions of: