Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

genam.h

Blame
  • genam.h 1.96 KiB
    /*-------------------------------------------------------------------------
     *
     * genam.h--
     *    POSTGRES general access method definitions.
     *
     *
     * Copyright (c) 1994, Regents of the University of California
     *
     * $Id: genam.h,v 1.4 1996/11/05 08:18:09 scrappy Exp $
     *
     *-------------------------------------------------------------------------
     */
    #ifndef	GENAM_H
    #define GENAM_H
    
    #include <access/sdir.h>
    #include <access/funcindex.h>
    #include <access/relscan.h>
    #include <access/itup.h>
    
    /* ----------------
     *	generalized index_ interface routines
     * ----------------
     */
    extern Relation index_open(Oid relationId);
    extern Relation index_openr(char *relationName);
    extern void index_close(Relation relation);
    extern InsertIndexResult index_insert(Relation relation,
    				      Datum *datum, char *nulls,
    				      ItemPointer heap_t_ctid);
    extern void index_delete(Relation relation, ItemPointer indexItem);
    extern IndexScanDesc index_beginscan(Relation relation, bool scanFromEnd,
         uint16 numberOfKeys, ScanKey key);
    extern void index_rescan(IndexScanDesc scan, bool scanFromEnd, ScanKey key);
    extern void index_endscan(IndexScanDesc scan);
    extern void index_markpos(IndexScanDesc scan);
    extern void index_restrpos(IndexScanDesc scan);
    extern RetrieveIndexResult index_getnext(IndexScanDesc scan,
    					 ScanDirection direction);
    extern RegProcedure index_getprocid(Relation irel, AttrNumber attnum,
    				    uint16 procnum);
    extern Datum GetIndexValue(HeapTuple tuple, TupleDesc hTupDesc,
         int attOff, AttrNumber attrNums[], FuncIndexInfo *fInfo,
         bool *attNull, Buffer buffer);
    
    /* in genam.c */
    extern IndexScanDesc RelationGetIndexScan(Relation relation, bool scanFromEnd,
    					  uint16 numberOfKeys, ScanKey key);
    extern void IndexScanRestart(IndexScanDesc scan, bool scanFromEnd,
    			     ScanKey key);
    extern void IndexScanEnd(IndexScanDesc scan);
    extern void IndexScanMarkPosition(IndexScanDesc scan);
    extern void IndexScanRestorePosition(IndexScanDesc scan);
    
    #endif	/* GENAM_H */