Distributed Tuning Interface Reference : PvDropIndex()
 
PvDropIndex()
Drops the index from dictionary and data files, given the index number.
Header File: ddf.h (See also Header Files)
Function First Available In Library: w3dbav75.dll (Windows), libpsqldti.so (Linux), libpsqldti.dylib (macOS) (See also Link Libraries)
Syntax
PRESULT PvDropIndex(
   WORD            dictHandle,
   LPCSTR          tableName,
   WORD            indexNumber,
   BOOL            renumber);
Arguments
 
In
dictHandle
Handle of an open dictionary returned by PvOpenDatabase().
In
tableName
Name of the table with the index to be dropped.
In
indexNumber
Number of the index to be dropped.
In
renumber
Indicates whether the remaining indexes should be renumbered.
Return Values
 
PCM_Success
The operation was successful.
PCM_errFailed
The operation was not successful.
PCM_errInvalidDictionaryHandle
The specified dictionary handle does not exist.
PCM_errTableNotFound
The specified table was not found.
PCM_errInvalidIndex
The specified index was not found.
Remarks
You must first open a dictionary successfully using PvOpenDatabase().
The table specified by tableName must exist in the dictionary specified by dictHandle.
See Also
PvStart()
PvOpenDatabase()
PvDropIndexByName()
PvAddIndex()
PvCloseDictionary()
PvStop()