mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-08 05:59:21 +02:00
7971539020
no longer returns buffer pointer, can be gotten from scan; descriptor; bootstrap can create multi-key indexes; pg_procname index now is multi-key index; oidint2, oidint4, oidname are gone (must be removed from regression tests); use System Cache rather than sequential scan in many places; heap_modifytuple no longer takes buffer parameter; remove unused buffer parameter in a few other functions; oid8 is not index-able; remove some use of single-character variable names; cleanup Buffer variables usage and scan descriptor looping; cleaned up allocation and freeing of tuples; 18k lines of diff;
60 lines
1.8 KiB
C
60 lines
1.8 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* genam.h--
|
|
* POSTGRES general access method definitions.
|
|
*
|
|
*
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: genam.h,v 1.14 1998/08/19 02:03:35 momjian 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,
|
|
Relation heapRel);
|
|
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);
|
|
|
|
/* in genam.c */
|
|
extern IndexScanDesc
|
|
RelationGetIndexScan(Relation relation, bool scanFromEnd,
|
|
uint16 numberOfKeys, ScanKey key);
|
|
extern void IndexScanMarkPosition(IndexScanDesc scan);
|
|
extern void IndexScanRestorePosition(IndexScanDesc scan);
|
|
|
|
#endif /* GENAM_H */
|