home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre4.z / postgre4 / src / lib / H / access / ftree.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  1.0 KB  |  41 lines

  1. /*
  2.  * ftree.h --
  3.  *    Definitions for using functional indexes.
  4.  *    Mostly descriptions of the FUNCINDEX pseudo-catalog relation.
  5.  *
  6.  * Identification:
  7.  *    $Header: /private/postgres/src/lib/H/access/RCS/ftree.h,v 1.4 1990/08/17 08:50:42 cimarron Exp $
  8.  */
  9.  
  10. #ifndef FTreeIncluded
  11. #define FTreeIncluded
  12.  
  13. #include "access/btree.h"
  14.  
  15. /* ----------------
  16.  *    constants should be in a pg_xxx.h file someplace.
  17.  * ----------------
  18.  */
  19. #define    FunctionIndexIndexAttributeNumber        1
  20. #define    FunctionIndexExtractAttributeNumber        2
  21. #define    FunctionIndexCountAttributeNumber        3
  22. #define    FunctionIndexElementAttributeNumber        4
  23. #define    FunctionIndexListifyAttributeNumber        5
  24.  
  25. #define    FunctionIndexRelationNumberOfAttributes        5
  26.  
  27. /* XXX Should be in: cat.h */
  28. typedef struct {
  29.     ObjectId    finindex;
  30.     ObjectId    finextract;
  31.     ObjectId    fincount;
  32.     ObjectId    finelement;
  33.     ObjectId    finlistify;
  34. } FunctionIndexTupleFormData;
  35. typedef    FunctionIndexTupleFormData    *FunctionIndexTupleForm;
  36.  
  37. /* XXX Should be in: name.[ch] */
  38. extern Name    FunctionIndexRelationName;
  39.  
  40. #endif /* !FTreeIncluded */
  41.