mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
pgindent run.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: genam.h,v 1.36 2002/06/20 20:29:42 momjian Exp $
|
||||
* $Id: genam.h,v 1.37 2002/09/04 20:31:36 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -58,16 +58,16 @@ extern InsertIndexResult index_insert(Relation indexRelation,
|
||||
bool check_uniqueness);
|
||||
|
||||
extern IndexScanDesc index_beginscan(Relation heapRelation,
|
||||
Relation indexRelation,
|
||||
Snapshot snapshot,
|
||||
int nkeys, ScanKey key);
|
||||
Relation indexRelation,
|
||||
Snapshot snapshot,
|
||||
int nkeys, ScanKey key);
|
||||
extern void index_rescan(IndexScanDesc scan, ScanKey key);
|
||||
extern void index_endscan(IndexScanDesc scan);
|
||||
extern void index_markpos(IndexScanDesc scan);
|
||||
extern void index_restrpos(IndexScanDesc scan);
|
||||
extern HeapTuple index_getnext(IndexScanDesc scan, ScanDirection direction);
|
||||
extern bool index_getnext_indexitem(IndexScanDesc scan,
|
||||
ScanDirection direction);
|
||||
ScanDirection direction);
|
||||
|
||||
extern IndexBulkDeleteResult *index_bulk_delete(Relation indexRelation,
|
||||
IndexBulkDeleteCallback callback,
|
||||
@@ -82,17 +82,17 @@ extern struct FmgrInfo *index_getprocinfo(Relation irel, AttrNumber attnum,
|
||||
* index access method support routines (in genam.c)
|
||||
*/
|
||||
extern IndexScanDesc RelationGetIndexScan(Relation indexRelation,
|
||||
int nkeys, ScanKey key);
|
||||
int nkeys, ScanKey key);
|
||||
extern void IndexScanEnd(IndexScanDesc scan);
|
||||
|
||||
/*
|
||||
* heap-or-index access to system catalogs (in genam.c)
|
||||
*/
|
||||
extern SysScanDesc systable_beginscan(Relation heapRelation,
|
||||
const char *indexRelname,
|
||||
bool indexOK,
|
||||
Snapshot snapshot,
|
||||
int nkeys, ScanKey key);
|
||||
const char *indexRelname,
|
||||
bool indexOK,
|
||||
Snapshot snapshot,
|
||||
int nkeys, ScanKey key);
|
||||
extern HeapTuple systable_getnext(SysScanDesc sysscan);
|
||||
extern void systable_endscan(SysScanDesc sysscan);
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: heapam.h,v 1.78 2002/07/20 05:16:59 momjian Exp $
|
||||
* $Id: heapam.h,v 1.79 2002/09/04 20:31:36 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -147,26 +147,26 @@ extern Relation heap_openr(const char *sysRelationName, LOCKMODE lockmode);
|
||||
#define heap_close(r,l) relation_close(r,l)
|
||||
|
||||
extern HeapScanDesc heap_beginscan(Relation relation, Snapshot snapshot,
|
||||
int nkeys, ScanKey key);
|
||||
int nkeys, ScanKey key);
|
||||
extern void heap_rescan(HeapScanDesc scan, ScanKey key);
|
||||
extern void heap_endscan(HeapScanDesc scan);
|
||||
extern HeapTuple heap_getnext(HeapScanDesc scan, ScanDirection direction);
|
||||
|
||||
extern bool heap_fetch(Relation relation, Snapshot snapshot,
|
||||
HeapTuple tuple, Buffer *userbuf, bool keep_buf,
|
||||
PgStat_Info *pgstat_info);
|
||||
HeapTuple tuple, Buffer *userbuf, bool keep_buf,
|
||||
PgStat_Info *pgstat_info);
|
||||
|
||||
extern ItemPointer heap_get_latest_tid(Relation relation, Snapshot snapshot,
|
||||
ItemPointer tid);
|
||||
ItemPointer tid);
|
||||
extern void setLastTid(const ItemPointer tid);
|
||||
|
||||
extern Oid heap_insert(Relation relation, HeapTuple tup, CommandId cid);
|
||||
extern int heap_delete(Relation relation, ItemPointer tid, ItemPointer ctid,
|
||||
CommandId cid);
|
||||
extern int heap_delete(Relation relation, ItemPointer tid, ItemPointer ctid,
|
||||
CommandId cid);
|
||||
extern int heap_update(Relation relation, ItemPointer otid, HeapTuple tup,
|
||||
ItemPointer ctid, CommandId cid);
|
||||
extern int heap_mark4update(Relation relation, HeapTuple tup,
|
||||
Buffer *userbuf, CommandId cid);
|
||||
ItemPointer ctid, CommandId cid);
|
||||
extern int heap_mark4update(Relation relation, HeapTuple tup,
|
||||
Buffer *userbuf, CommandId cid);
|
||||
|
||||
extern Oid simple_heap_insert(Relation relation, HeapTuple tup);
|
||||
extern void simple_heap_delete(Relation relation, ItemPointer tid);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: htup.h,v 1.59 2002/09/02 01:05:06 tgl Exp $
|
||||
* $Id: htup.h,v 1.60 2002/09/04 20:31:37 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -29,7 +29,7 @@
|
||||
* so that alterations in HeapTupleHeaderData layout won't change the
|
||||
* supported max number of columns.
|
||||
*/
|
||||
#define MaxTupleAttributeNumber 1664 /* 8 * 208 */
|
||||
#define MaxTupleAttributeNumber 1664 /* 8 * 208 */
|
||||
|
||||
/*----------
|
||||
* MaxHeapAttributeNumber limits the number of (user) columns in a table.
|
||||
@@ -79,7 +79,7 @@
|
||||
* valid unneeded valid valid invalid
|
||||
*
|
||||
* MOVED BY VACUUM FULL:
|
||||
* valid unneeded maybe-valid unneeded valid
|
||||
* valid unneeded maybe-valid unneeded valid
|
||||
*
|
||||
* This assumes that VACUUM FULL never tries to move a tuple whose Cmin or
|
||||
* Cmax is still interesting (ie, insert-in-progress or delete-in-progress).
|
||||
@@ -89,26 +89,28 @@
|
||||
* time. Nor do we need to store Cmax and Xvac at the same time.
|
||||
*
|
||||
* Following the fixed header fields, the nulls bitmap is stored (beginning
|
||||
* at t_bits). The bitmap is *not* stored if t_infomask shows that there
|
||||
* at t_bits). The bitmap is *not* stored if t_infomask shows that there
|
||||
* are no nulls in the tuple. If an OID field is present (as indicated by
|
||||
* t_infomask), then it is stored just before the user data, which begins at
|
||||
* the offset shown by t_hoff. Note that t_hoff must be a multiple of
|
||||
* the offset shown by t_hoff. Note that t_hoff must be a multiple of
|
||||
* MAXALIGN.
|
||||
*----------
|
||||
*/
|
||||
typedef struct HeapTupleHeaderData
|
||||
{
|
||||
TransactionId t_xmin; /* inserting xact ID */
|
||||
TransactionId t_xmin; /* inserting xact ID */
|
||||
|
||||
union {
|
||||
union
|
||||
{
|
||||
CommandId t_cmin; /* inserting command ID */
|
||||
TransactionId t_xmax; /* deleting xact ID */
|
||||
} t_field2;
|
||||
} t_field2;
|
||||
|
||||
union {
|
||||
union
|
||||
{
|
||||
CommandId t_cmax; /* deleting command ID */
|
||||
TransactionId t_xvac; /* VACUUM FULL xact ID */
|
||||
} t_field3;
|
||||
} t_field3;
|
||||
|
||||
ItemPointerData t_ctid; /* current TID of this or newer tuple */
|
||||
|
||||
@@ -139,8 +141,8 @@ typedef HeapTupleHeaderData *HeapTupleHeader;
|
||||
#define HEAP_HASEXTENDED 0x000C /* the two above combined */
|
||||
#define HEAP_HASOID 0x0010 /* has an object-id field */
|
||||
/* bit 0x0020 is presently unused */
|
||||
#define HEAP_XMAX_IS_XMIN 0x0040 /* created and deleted in the
|
||||
* same transaction */
|
||||
#define HEAP_XMAX_IS_XMIN 0x0040 /* created and deleted in the same
|
||||
* transaction */
|
||||
#define HEAP_XMAX_UNLOGGED 0x0080 /* to lock tuple for update
|
||||
* without logging */
|
||||
#define HEAP_XMIN_COMMITTED 0x0100 /* t_xmin committed */
|
||||
@@ -161,7 +163,7 @@ typedef HeapTupleHeaderData *HeapTupleHeader;
|
||||
/*
|
||||
* HeapTupleHeader accessor macros
|
||||
*
|
||||
* Note: beware of multiple evaluations of "tup" argument. But the Set
|
||||
* Note: beware of multiple evaluations of "tup" argument. But the Set
|
||||
* macros evaluate their other argument only once.
|
||||
*/
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: istrat.h,v 1.25 2002/06/20 20:29:43 momjian Exp $
|
||||
* $Id: istrat.h,v 1.26 2002/09/04 20:31:37 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -48,7 +48,7 @@
|
||||
#define IndexStrategyIsValid(s) PointerIsValid(s)
|
||||
|
||||
extern ScanKey StrategyMapGetScanKeyEntry(StrategyMap map,
|
||||
StrategyNumber strategyNumber);
|
||||
StrategyNumber strategyNumber);
|
||||
extern StrategyMap IndexStrategyGetStrategyMap(IndexStrategy indexStrategy,
|
||||
StrategyNumber maxStrategyNum, AttrNumber attrNum);
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: printtup.h,v 1.21 2002/08/22 00:01:47 tgl Exp $
|
||||
* $Id: printtup.h,v 1.22 2002/09/04 20:31:37 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -19,9 +19,9 @@
|
||||
extern DestReceiver *printtup_create_DR(bool isBinary);
|
||||
|
||||
extern void debugSetup(DestReceiver *self, int operation,
|
||||
const char *portalName, TupleDesc typeinfo);
|
||||
const char *portalName, TupleDesc typeinfo);
|
||||
extern void debugtup(HeapTuple tuple, TupleDesc typeinfo,
|
||||
DestReceiver *self);
|
||||
DestReceiver *self);
|
||||
|
||||
/* XXX this one is really in executor/spi.c */
|
||||
extern void spi_printtup(HeapTuple tuple, TupleDesc tupdesc,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: relscan.h,v 1.28 2002/06/20 20:29:43 momjian Exp $
|
||||
* $Id: relscan.h,v 1.29 2002/09/04 20:31:37 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -58,11 +58,11 @@ typedef struct IndexScanDescData
|
||||
void *opaque; /* access-method-specific info */
|
||||
ItemPointerData currentItemData; /* current index pointer */
|
||||
ItemPointerData currentMarkData; /* marked position, if any */
|
||||
|
||||
/*
|
||||
* xs_ctup/xs_cbuf are valid after a successful index_getnext.
|
||||
* After index_getnext_indexitem, xs_ctup.t_self contains the
|
||||
* heap tuple TID from the index entry, but its other fields are
|
||||
* not valid.
|
||||
* xs_ctup/xs_cbuf are valid after a successful index_getnext. After
|
||||
* index_getnext_indexitem, xs_ctup.t_self contains the heap tuple TID
|
||||
* from the index entry, but its other fields are not valid.
|
||||
*/
|
||||
HeapTupleData xs_ctup; /* current heap tuple, if any */
|
||||
Buffer xs_cbuf; /* current heap buffer in scan, if any */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: tupdesc.h,v 1.38 2002/09/02 01:05:06 tgl Exp $
|
||||
* $Id: tupdesc.h,v 1.39 2002/09/04 20:31:37 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -58,7 +58,7 @@ typedef struct tupleDesc
|
||||
extern TupleDesc CreateTemplateTupleDesc(int natts, bool hasoid);
|
||||
|
||||
extern TupleDesc CreateTupleDesc(int natts, bool hasoid,
|
||||
Form_pg_attribute *attrs);
|
||||
Form_pg_attribute *attrs);
|
||||
|
||||
extern TupleDesc CreateTupleDescCopy(TupleDesc tupdesc);
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 2000, PostgreSQL Development Team
|
||||
*
|
||||
* $Id: tuptoaster.h,v 1.14 2002/03/05 05:33:25 momjian Exp $
|
||||
* $Id: tuptoaster.h,v 1.15 2002/09/04 20:31:37 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -102,13 +102,13 @@ extern varattrib *heap_tuple_untoast_attr(varattrib *attr);
|
||||
/* ----------
|
||||
* heap_tuple_untoast_attr_slice() -
|
||||
*
|
||||
* Fetches only the specified portion of an attribute.
|
||||
* (Handles all cases for attribute storage)
|
||||
* Fetches only the specified portion of an attribute.
|
||||
* (Handles all cases for attribute storage)
|
||||
* ----------
|
||||
*/
|
||||
extern varattrib *heap_tuple_untoast_attr_slice(varattrib *attr,
|
||||
int32 sliceoffset,
|
||||
int32 slicelength);
|
||||
extern varattrib *heap_tuple_untoast_attr_slice(varattrib *attr,
|
||||
int32 sliceoffset,
|
||||
int32 slicelength);
|
||||
|
||||
/* ----------
|
||||
* toast_compress_datum -
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: valid.h,v 1.28 2002/06/20 20:29:43 momjian Exp $
|
||||
* $Id: valid.h,v 1.29 2002/09/04 20:31:37 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -78,7 +78,7 @@ do \
|
||||
* HeapTupleSatisfies
|
||||
*
|
||||
* res is set TRUE if the HeapTuple satisfies the timequal and keytest,
|
||||
* otherwise it is set FALSE. Note that the hint bits in the HeapTuple's
|
||||
* otherwise it is set FALSE. Note that the hint bits in the HeapTuple's
|
||||
* t_infomask may be updated as a side effect.
|
||||
*
|
||||
* on 8/21/92 mao says: i rearranged the tests here to do keytest before
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: xlog.h,v 1.36 2002/08/30 16:50:50 momjian Exp $
|
||||
* $Id: xlog.h,v 1.37 2002/09/04 20:31:37 momjian Exp $
|
||||
*/
|
||||
#ifndef XLOG_H
|
||||
#define XLOG_H
|
||||
@@ -217,6 +217,6 @@ extern XLogRecPtr GetRedoRecPtr(void);
|
||||
extern XLogRecPtr GetUndoRecPtr(void);
|
||||
|
||||
extern const char *assign_xlog_sync_method(const char *method,
|
||||
bool doit, bool interactive);
|
||||
bool doit, bool interactive);
|
||||
|
||||
#endif /* XLOG_H */
|
||||
|
||||
Reference in New Issue
Block a user