summaryrefslogtreecommitdiff
path: root/src/include/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/commands')
-rw-r--r--src/include/commands/async.h20
-rw-r--r--src/include/commands/cluster.h16
-rw-r--r--src/include/commands/command.h30
-rw-r--r--src/include/commands/copy.h13
-rw-r--r--src/include/commands/creatinh.h12
-rw-r--r--src/include/commands/defrem.h47
-rw-r--r--src/include/commands/explain.h12
-rw-r--r--src/include/commands/purge.h17
-rw-r--r--src/include/commands/recipe.h8
-rw-r--r--src/include/commands/rename.h24
-rw-r--r--src/include/commands/sequence.h36
-rw-r--r--src/include/commands/trigger.h79
-rw-r--r--src/include/commands/vacuum.h169
-rw-r--r--src/include/commands/version.h8
-rw-r--r--src/include/commands/view.h16
15 files changed, 270 insertions, 237 deletions
diff --git a/src/include/commands/async.h b/src/include/commands/async.h
index 7bae5c6f4b4..4f63c7fde71 100644
--- a/src/include/commands/async.h
+++ b/src/include/commands/async.h
@@ -1,26 +1,26 @@
/*-------------------------------------------------------------------------
*
* async.h--
- *
+ *
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: async.h,v 1.5 1997/08/19 21:38:03 momjian Exp $
+ * $Id: async.h,v 1.6 1997/09/07 04:57:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#ifndef ASYNC_H
-#define ASYNC_H
+#ifndef ASYNC_H
+#define ASYNC_H
#include <nodes/memnodes.h>
-extern void Async_NotifyHandler(SIGNAL_ARGS);
-extern void Async_Notify(char *relname);
-extern void Async_NotifyAtCommit(void);
-extern void Async_NotifyAtAbort(void);
-extern void Async_Listen(char *relname, int pid);
+extern void Async_NotifyHandler(SIGNAL_ARGS);
+extern void Async_Notify(char *relname);
+extern void Async_NotifyAtCommit(void);
+extern void Async_NotifyAtAbort(void);
+extern void Async_Listen(char *relname, int pid);
extern GlobalMemory notifyContext;
-#endif /* ASYNC_H */
+#endif /* ASYNC_H */
diff --git a/src/include/commands/cluster.h b/src/include/commands/cluster.h
index 45ba116212e..7f305c60144 100644
--- a/src/include/commands/cluster.h
+++ b/src/include/commands/cluster.h
@@ -1,27 +1,27 @@
/*-------------------------------------------------------------------------
*
* cluster.h--
- * header file for postgres cluster command stuff
+ * header file for postgres cluster command stuff
*
* Copyright (c) 1994-5, Regents of the University of California
*
- * $Id: cluster.h,v 1.2 1997/08/19 21:38:06 momjian Exp $
+ * $Id: cluster.h,v 1.3 1997/09/07 04:57:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#ifndef CLUSTER_H
-#define CLUSTER_H
+#ifndef CLUSTER_H
+#define CLUSTER_H
/*
* defines for contant stuff
*/
-#define _TEMP_RELATION_KEY_ "clXXXXXXXX"
-#define _SIZE_OF_TEMP_RELATION_KEY_ 11
+#define _TEMP_RELATION_KEY_ "clXXXXXXXX"
+#define _SIZE_OF_TEMP_RELATION_KEY_ 11
/*
* functions
*/
-extern void cluster(char oldrelname[], char oldindexname[]);
+extern void cluster(char oldrelname[], char oldindexname[]);
-#endif /* CLUSTER_H */
+#endif /* CLUSTER_H */
diff --git a/src/include/commands/command.h b/src/include/commands/command.h
index d91d7b3a913..78c4aa5ea0e 100644
--- a/src/include/commands/command.h
+++ b/src/include/commands/command.h
@@ -1,12 +1,12 @@
/*-------------------------------------------------------------------------
*
* command.h--
- * prototypes for command.c.
+ * prototypes for command.c.
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: command.h,v 1.4 1997/08/19 21:38:07 momjian Exp $
+ * $Id: command.h,v 1.5 1997/09/07 04:57:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -19,29 +19,31 @@ extern MemoryContext PortalExecutorHeapMemory;
/*
* PerformPortalFetch --
- * Performs the POSTQUEL function FETCH. Fetches count (or all if 0)
+ * Performs the POSTQUEL function FETCH. Fetches count (or all if 0)
* tuples in portal with name in the forward direction iff goForward.
*
* Exceptions:
- * BadArg if forward invalid.
- * "WARN" if portal not found.
+ * BadArg if forward invalid.
+ * "WARN" if portal not found.
*/
-extern void PerformPortalFetch(char *name, bool forward, int count,
- char *tag, CommandDest dest);
+extern void
+PerformPortalFetch(char *name, bool forward, int count,
+ char *tag, CommandDest dest);
/*
* PerformPortalClose --
- * Performs the POSTQUEL function CLOSE.
+ * Performs the POSTQUEL function CLOSE.
*/
-extern void PerformPortalClose(char *name, CommandDest dest);
+extern void PerformPortalClose(char *name, CommandDest dest);
-extern void PortalCleanup(Portal portal);
+extern void PortalCleanup(Portal portal);
/*
* PerformAddAttribute --
- * Performs the POSTQUEL function ADD.
+ * Performs the POSTQUEL function ADD.
*/
-extern void PerformAddAttribute(char *relationName, char *userName,
- bool inh, ColumnDef *colDef);
+extern void
+PerformAddAttribute(char *relationName, char *userName,
+ bool inh, ColumnDef * colDef);
-#endif /* COMMAND_H */
+#endif /* COMMAND_H */
diff --git a/src/include/commands/copy.h b/src/include/commands/copy.h
index 1a1228b142d..e1fb6a37838 100644
--- a/src/include/commands/copy.h
+++ b/src/include/commands/copy.h
@@ -1,20 +1,21 @@
/*-------------------------------------------------------------------------
*
* copy.h--
- * Definitions for using the POSTGRES copy command.
+ * Definitions for using the POSTGRES copy command.
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: copy.h,v 1.2 1996/10/31 09:48:12 scrappy Exp $
+ * $Id: copy.h,v 1.3 1997/09/07 04:57:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef COPY_H
-#define COPY_H
+#define COPY_H
-void DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe, char *filename,
- char *delim);
+void
+DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe, char *filename,
+ char *delim);
-#endif /* COPY_H */
+#endif /* COPY_H */
diff --git a/src/include/commands/creatinh.h b/src/include/commands/creatinh.h
index 1728a577a92..52926dbe9f8 100644
--- a/src/include/commands/creatinh.h
+++ b/src/include/commands/creatinh.h
@@ -1,20 +1,20 @@
/*-------------------------------------------------------------------------
*
* creatinh.h--
- * prototypes for creatinh.c.
+ * prototypes for creatinh.c.
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: creatinh.h,v 1.1 1996/08/28 07:21:45 scrappy Exp $
+ * $Id: creatinh.h,v 1.2 1997/09/07 04:57:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef CREATINH_H
#define CREATINH_H
-extern void DefineRelation(CreateStmt *stmt);
-extern void RemoveRelation(char *name);
-extern char* MakeArchiveName(Oid relid);
+extern void DefineRelation(CreateStmt * stmt);
+extern void RemoveRelation(char *name);
+extern char *MakeArchiveName(Oid relid);
-#endif /* CREATINH_H */
+#endif /* CREATINH_H */
diff --git a/src/include/commands/defrem.h b/src/include/commands/defrem.h
index f47e7a343ea..8d916477380 100644
--- a/src/include/commands/defrem.h
+++ b/src/include/commands/defrem.h
@@ -1,16 +1,16 @@
/*-------------------------------------------------------------------------
*
* defrem.h--
- * POSTGRES define and remove utility definitions.
+ * POSTGRES define and remove utility definitions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: defrem.h,v 1.7 1997/05/22 00:15:47 scrappy Exp $
+ * $Id: defrem.h,v 1.8 1997/09/07 04:57:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#ifndef DEFREM_H
+#ifndef DEFREM_H
#define DEFREM_H
#include <tcop/dest.h>
@@ -19,35 +19,38 @@
/*
* prototypes in defind.c
*/
-extern void DefineIndex(char *heapRelationName,
+extern void
+DefineIndex(char *heapRelationName,
char *indexRelationName,
char *accessMethodName,
- List *attributeList,
- List *parameterList,
+ List * attributeList,
+ List * parameterList,
bool unique,
- Expr *predicate,
- List *rangetable);
-extern void ExtendIndex(char *indexRelationName,
- Expr *predicate,
- List *rangetable);
-extern void RemoveIndex(char *name);
+ Expr * predicate,
+ List * rangetable);
+extern void
+ExtendIndex(char *indexRelationName,
+ Expr * predicate,
+ List * rangetable);
+extern void RemoveIndex(char *name);
/*
* prototypes in define.c
*/
-extern void CreateFunction(ProcedureStmt *stmt, CommandDest dest);
-extern void DefineOperator(char *name, List *parameters);
-extern void DefineAggregate(char *name, List *parameters);
-extern void DefineType(char *name, List *parameters);
-extern void CreateFunction(ProcedureStmt *stmt, CommandDest dest);
+extern void CreateFunction(ProcedureStmt * stmt, CommandDest dest);
+extern void DefineOperator(char *name, List * parameters);
+extern void DefineAggregate(char *name, List * parameters);
+extern void DefineType(char *name, List * parameters);
+extern void CreateFunction(ProcedureStmt * stmt, CommandDest dest);
/*
* prototypes in remove.c
*/
-extern void RemoveFunction(char *functionName, int nargs, List *argNameList);
-extern void RemoveOperator(char *operatorName,
+extern void RemoveFunction(char *functionName, int nargs, List * argNameList);
+extern void
+RemoveOperator(char *operatorName,
char *typeName1, char *typeName2);
-extern void RemoveType(char *typeName);
-extern void RemoveAggregate(char *aggName, char *aggType);
+extern void RemoveType(char *typeName);
+extern void RemoveAggregate(char *aggName, char *aggType);
-#endif /* DEFREM_H */
+#endif /* DEFREM_H */
diff --git a/src/include/commands/explain.h b/src/include/commands/explain.h
index cac3c59999c..f41f4dfa885 100644
--- a/src/include/commands/explain.h
+++ b/src/include/commands/explain.h
@@ -1,17 +1,17 @@
/*-------------------------------------------------------------------------
*
* explain.h--
- * prototypes for explain.c
+ * prototypes for explain.c
*
* Copyright (c) 1994-5, Regents of the University of California
*
- * $Id: explain.h,v 1.2 1997/01/16 14:56:34 momjian Exp $
+ * $Id: explain.h,v 1.3 1997/09/07 04:57:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#ifndef EXPLAIN_H
-#define EXPLAIN_H
+#ifndef EXPLAIN_H
+#define EXPLAIN_H
-extern void ExplainQuery(Query *query, bool verbose, CommandDest dest);
+extern void ExplainQuery(Query * query, bool verbose, CommandDest dest);
-#endif /* EXPLAIN_H*/
+#endif /* EXPLAIN_H */
diff --git a/src/include/commands/purge.h b/src/include/commands/purge.h
index 5f483b26385..7c4d276afdb 100644
--- a/src/include/commands/purge.h
+++ b/src/include/commands/purge.h
@@ -1,20 +1,21 @@
/*-------------------------------------------------------------------------
*
* purge.h--
- *
+ *
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: purge.h,v 1.1 1996/08/28 07:21:48 scrappy Exp $
+ * $Id: purge.h,v 1.2 1997/09/07 04:57:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#ifndef PURGE_H
-#define PURGE_H
+#ifndef PURGE_H
+#define PURGE_H
-extern int32 RelationPurge(char *relationName,
- char *absoluteTimeString,
- char *relativeTimeString);
+extern int32
+RelationPurge(char *relationName,
+ char *absoluteTimeString,
+ char *relativeTimeString);
-#endif /* PURGE_H */
+#endif /* PURGE_H */
diff --git a/src/include/commands/recipe.h b/src/include/commands/recipe.h
index 3c8615abb9c..82a3e01cae0 100644
--- a/src/include/commands/recipe.h
+++ b/src/include/commands/recipe.h
@@ -1,17 +1,17 @@
/*-------------------------------------------------------------------------
*
* recipe.h--
- * recipe handling routines
+ * recipe handling routines
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: recipe.h,v 1.1 1996/08/28 07:21:50 scrappy Exp $
+ * $Id: recipe.h,v 1.2 1997/09/07 04:57:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef RECIPE_H
#define RECIPE_H
-extern void beginRecipe(RecipeStmt* stmt);
+extern void beginRecipe(RecipeStmt * stmt);
-#endif /* RECIPE_H */
+#endif /* RECIPE_H */
diff --git a/src/include/commands/rename.h b/src/include/commands/rename.h
index f559a5c76ee..3675011dbd6 100644
--- a/src/include/commands/rename.h
+++ b/src/include/commands/rename.h
@@ -1,24 +1,26 @@
/*-------------------------------------------------------------------------
*
* rename.h--
- *
+ *
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: rename.h,v 1.1 1996/08/28 07:21:51 scrappy Exp $
+ * $Id: rename.h,v 1.2 1997/09/07 04:57:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#ifndef RENAME_H
-#define RENAME_H
+#ifndef RENAME_H
+#define RENAME_H
-extern void renameatt(char *relname,
- char *oldattname,
- char *newattname,
- char *userName, int recurse);
+extern void
+renameatt(char *relname,
+ char *oldattname,
+ char *newattname,
+ char *userName, int recurse);
-extern void renamerel(char *oldrelname,
- char *newrelname);
+extern void
+renamerel(char *oldrelname,
+ char *newrelname);
-#endif /* RENAME_H */
+#endif /* RENAME_H */
diff --git a/src/include/commands/sequence.h b/src/include/commands/sequence.h
index 4e341e9277d..88497253b32 100644
--- a/src/include/commands/sequence.h
+++ b/src/include/commands/sequence.h
@@ -1,7 +1,7 @@
/*-------------------------------------------------------------------------
*
* sequence.h--
- * prototypes for sequence.c.
+ * prototypes for sequence.c.
*
*
*-------------------------------------------------------------------------
@@ -9,25 +9,25 @@
#ifndef SEQUENCE_H
#define SEQUENCE_H
-/*
+/*
* Columns of a sequnece relation
*/
-
-#define SEQ_COL_NAME 1
-#define SEQ_COL_LASTVAL 2
-#define SEQ_COL_INCBY 3
-#define SEQ_COL_MAXVALUE 4
-#define SEQ_COL_MINVALUE 5
-#define SEQ_COL_CACHE 6
-#define SEQ_COL_CYCLE 7
-#define SEQ_COL_CALLED 8
-#define SEQ_COL_FIRSTCOL SEQ_COL_NAME
-#define SEQ_COL_LASTCOL SEQ_COL_CALLED
+#define SEQ_COL_NAME 1
+#define SEQ_COL_LASTVAL 2
+#define SEQ_COL_INCBY 3
+#define SEQ_COL_MAXVALUE 4
+#define SEQ_COL_MINVALUE 5
+#define SEQ_COL_CACHE 6
+#define SEQ_COL_CYCLE 7
+#define SEQ_COL_CALLED 8
-extern void DefineSequence (CreateSeqStmt *stmt);
-extern int4 nextval (struct varlena *seqname);
-extern int4 currval (struct varlena *seqname);
-extern void CloseSequences (void);
+#define SEQ_COL_FIRSTCOL SEQ_COL_NAME
+#define SEQ_COL_LASTCOL SEQ_COL_CALLED
-#endif /* SEQUENCE_H */
+extern void DefineSequence(CreateSeqStmt * stmt);
+extern int4 nextval(struct varlena * seqname);
+extern int4 currval(struct varlena * seqname);
+extern void CloseSequences(void);
+
+#endif /* SEQUENCE_H */
diff --git a/src/include/commands/trigger.h b/src/include/commands/trigger.h
index 8cbfe0c5a1b..0f125a0de6a 100644
--- a/src/include/commands/trigger.h
+++ b/src/include/commands/trigger.h
@@ -1,7 +1,7 @@
/*-------------------------------------------------------------------------
*
* trigger.h--
- * prototypes for trigger.c.
+ * prototypes for trigger.c.
*
*
*-------------------------------------------------------------------------
@@ -13,59 +13,60 @@
#include "access/htup.h"
#include "utils/rel.h"
-typedef uint32 TriggerEvent;
+typedef uint32 TriggerEvent;
-typedef struct TriggerData {
- TriggerEvent tg_event;
- Relation tg_relation;
- HeapTuple tg_trigtuple;
- HeapTuple tg_newtuple;
- Trigger *tg_trigger;
-} TriggerData;
+typedef struct TriggerData
+{
+ TriggerEvent tg_event;
+ Relation tg_relation;
+ HeapTuple tg_trigtuple;
+ HeapTuple tg_newtuple;
+ Trigger *tg_trigger;
+} TriggerData;
extern TriggerData *CurrentTriggerData;
-#define TRIGGER_EVENT_INSERT 0x00000000
-#define TRIGGER_EVENT_DELETE 0x00000001
-#define TRIGGER_EVENT_UPDATE 0x00000002
-#define TRIGGER_EVENT_OPMASK 0x00000003
-#define TRIGGER_EVENT_ROW 0x00000004
-#define TRIGGER_EVENT_BEFORE 0x00000008
+#define TRIGGER_EVENT_INSERT 0x00000000
+#define TRIGGER_EVENT_DELETE 0x00000001
+#define TRIGGER_EVENT_UPDATE 0x00000002
+#define TRIGGER_EVENT_OPMASK 0x00000003
+#define TRIGGER_EVENT_ROW 0x00000004
+#define TRIGGER_EVENT_BEFORE 0x00000008
#define TRIGGER_FIRED_BY_INSERT(event) \
- (((TriggerEvent) (event) & TRIGGER_EVENT_OPMASK) == \
- TRIGGER_EVENT_INSERT)
+ (((TriggerEvent) (event) & TRIGGER_EVENT_OPMASK) == \
+ TRIGGER_EVENT_INSERT)
#define TRIGGER_FIRED_BY_DELETE(event) \
- (((TriggerEvent) (event) & TRIGGER_EVENT_OPMASK) == \
- TRIGGER_EVENT_DELETE)
+ (((TriggerEvent) (event) & TRIGGER_EVENT_OPMASK) == \
+ TRIGGER_EVENT_DELETE)
#define TRIGGER_FIRED_BY_UPDATE(event) \
- (((TriggerEvent) (event) & TRIGGER_EVENT_OPMASK) == \
- TRIGGER_EVENT_UPDATE)
+ (((TriggerEvent) (event) & TRIGGER_EVENT_OPMASK) == \
+ TRIGGER_EVENT_UPDATE)
-#define TRIGGER_FIRED_FOR_ROW(event) \
- ((TriggerEvent) (event) & TRIGGER_EVENT_ROW)
+#define TRIGGER_FIRED_FOR_ROW(event) \
+ ((TriggerEvent) (event) & TRIGGER_EVENT_ROW)
-#define TRIGGER_FIRED_FOR_STATEMENT(event) \
- (!TRIGGER_FIRED_FOR_ROW (event))
+#define TRIGGER_FIRED_FOR_STATEMENT(event) \
+ (!TRIGGER_FIRED_FOR_ROW (event))
-#define TRIGGER_FIRED_BEFORE(event) \
- ((TriggerEvent) (event) & TRIGGER_EVENT_BEFORE)
+#define TRIGGER_FIRED_BEFORE(event) \
+ ((TriggerEvent) (event) & TRIGGER_EVENT_BEFORE)
-#define TRIGGER_FIRED_AFTER(event) \
- (!TRIGGER_FIRED_BEFORE (event))
+#define TRIGGER_FIRED_AFTER(event) \
+ (!TRIGGER_FIRED_BEFORE (event))
-extern void CreateTrigger (CreateTrigStmt *stmt);
-extern void DropTrigger (DropTrigStmt *stmt);
-extern void RelationRemoveTriggers (Relation rel);
+extern void CreateTrigger(CreateTrigStmt * stmt);
+extern void DropTrigger(DropTrigStmt * stmt);
+extern void RelationRemoveTriggers(Relation rel);
-extern HeapTuple ExecBRInsertTriggers (Relation rel, HeapTuple tuple);
-extern void ExecARInsertTriggers (Relation rel, HeapTuple tuple);
-extern bool ExecBRDeleteTriggers (Relation rel, ItemPointer tupleid);
-extern void ExecARDeleteTriggers (Relation rel, ItemPointer tupleid);
-extern HeapTuple ExecBRUpdateTriggers (Relation rel, ItemPointer tupleid, HeapTuple tuple);
-extern void ExecARUpdateTriggers (Relation rel, ItemPointer tupleid, HeapTuple tuple);
+extern HeapTuple ExecBRInsertTriggers(Relation rel, HeapTuple tuple);
+extern void ExecARInsertTriggers(Relation rel, HeapTuple tuple);
+extern bool ExecBRDeleteTriggers(Relation rel, ItemPointer tupleid);
+extern void ExecARDeleteTriggers(Relation rel, ItemPointer tupleid);
+extern HeapTuple ExecBRUpdateTriggers(Relation rel, ItemPointer tupleid, HeapTuple tuple);
+extern void ExecARUpdateTriggers(Relation rel, ItemPointer tupleid, HeapTuple tuple);
-#endif /* TRIGGER_H */
+#endif /* TRIGGER_H */
diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h
index 6ed66f6bc81..59863f2d574 100644
--- a/src/include/commands/vacuum.h
+++ b/src/include/commands/vacuum.h
@@ -1,87 +1,110 @@
/*-------------------------------------------------------------------------
*
* vacuum.h--
- * header file for postgres vacuum cleaner
+ * header file for postgres vacuum cleaner
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: vacuum.h,v 1.7 1997/04/23 06:28:48 vadim Exp $
+ * $Id: vacuum.h,v 1.8 1997/09/07 04:57:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#ifndef VACUUM_H
-#define VACUUM_H
+#ifndef VACUUM_H
+#define VACUUM_H
#include <access/funcindex.h>
#include <catalog/pg_index.h>
-typedef struct VAttListData {
- int val_dummy;
- struct VAttListData *val_next;
-} VAttListData;
-
-typedef VAttListData *VAttList;
-
-typedef struct VPageDescrData {
- BlockNumber vpd_blkno; /* BlockNumber of this Page */
- Size vpd_free; /* FreeSpace on this Page */
- uint16 vpd_nusd; /* Number of OffNums used by vacuum */
- uint16 vpd_noff; /* Number of OffNums free or to be free */
- OffsetNumber vpd_voff[1]; /* Array of its OffNums */
-} VPageDescrData;
-
-typedef VPageDescrData *VPageDescr;
-
-typedef struct VPageListData {
- int vpl_nemend; /* Number of "empty" end-pages */
- int vpl_npages; /* Number of pages in vpl_pgdesc */
- VPageDescr *vpl_pgdesc; /* Descriptions of pages */
-} VPageListData;
-
-typedef VPageListData *VPageList;
-
-typedef struct {
- FuncIndexInfo finfo;
- FuncIndexInfo *finfoP;
- IndexTupleForm tform;
- int natts;
-} IndDesc;
-
-typedef struct {
- AttributeTupleForm attr;
- Datum best, guess1, guess2, max, min;
- int16 best_len, guess1_len, guess2_len, max_len, min_len;
- int32 best_cnt, guess1_cnt, guess1_hits, guess2_hits, null_cnt,nonnull_cnt;
- int32 max_cnt, min_cnt;
- func_ptr f_cmpeq, f_cmplt, f_cmpgt;
- regproc outfunc;
- bool initialized;
-} VacAttrStats;
-
-typedef struct VRelListData {
- Oid vrl_relid;
- struct VRelListData *vrl_next;
-} VRelListData;
-
-typedef VRelListData *VRelList;
-
-typedef struct VRelStats {
- Oid relid;
- int ntups;
- int npages;
- Size min_tlen;
- Size max_tlen;
- bool hasindex;
- int va_natts; /* number of attrs being analyzed */
- VacAttrStats *vacattrstats;
-} VRelStats;
-
-extern bool VacuumRunning;
-
-extern void vc_abort(void);
-extern void vacuum(char *vacrel, bool verbose, bool analyze, List *va_spec);
-
-#define ATTNVALS_SCALE 1000000000 /* XXX so it can act as a float4 */
-
-#endif /* VACUUM_H */
+typedef struct VAttListData
+{
+ int val_dummy;
+ struct VAttListData *val_next;
+} VAttListData;
+
+typedef VAttListData *VAttList;
+
+typedef struct VPageDescrData
+{
+ BlockNumber vpd_blkno; /* BlockNumber of this Page */
+ Size vpd_free; /* FreeSpace on this Page */
+ uint16 vpd_nusd; /* Number of OffNums used by vacuum */
+ uint16 vpd_noff; /* Number of OffNums free or to be free */
+ OffsetNumber vpd_voff[1];/* Array of its OffNums */
+} VPageDescrData;
+
+typedef VPageDescrData *VPageDescr;
+
+typedef struct VPageListData
+{
+ int vpl_nemend; /* Number of "empty" end-pages */
+ int vpl_npages; /* Number of pages in vpl_pgdesc */
+ VPageDescr *vpl_pgdesc; /* Descriptions of pages */
+} VPageListData;
+
+typedef VPageListData *VPageList;
+
+typedef struct
+{
+ FuncIndexInfo finfo;
+ FuncIndexInfo *finfoP;
+ IndexTupleForm tform;
+ int natts;
+} IndDesc;
+
+typedef struct
+{
+ AttributeTupleForm attr;
+ Datum best,
+ guess1,
+ guess2,
+ max,
+ min;
+ int16 best_len,
+ guess1_len,
+ guess2_len,
+ max_len,
+ min_len;
+ int32 best_cnt,
+ guess1_cnt,
+ guess1_hits,
+ guess2_hits,
+ null_cnt,
+ nonnull_cnt;
+ int32 max_cnt,
+ min_cnt;
+ func_ptr f_cmpeq,
+ f_cmplt,
+ f_cmpgt;
+ regproc outfunc;
+ bool initialized;
+} VacAttrStats;
+
+typedef struct VRelListData
+{
+ Oid vrl_relid;
+ struct VRelListData *vrl_next;
+} VRelListData;
+
+typedef VRelListData *VRelList;
+
+typedef struct VRelStats
+{
+ Oid relid;
+ int ntups;
+ int npages;
+ Size min_tlen;
+ Size max_tlen;
+ bool hasindex;
+ int va_natts; /* number of attrs being analyzed */
+ VacAttrStats *vacattrstats;
+} VRelStats;
+
+extern bool VacuumRunning;
+
+extern void vc_abort(void);
+extern void vacuum(char *vacrel, bool verbose, bool analyze, List * va_spec);
+
+#define ATTNVALS_SCALE 1000000000 /* XXX so it can act as a float4 */
+
+#endif /* VACUUM_H */
diff --git a/src/include/commands/version.h b/src/include/commands/version.h
index 1b3e5169d99..7365a829629 100644
--- a/src/include/commands/version.h
+++ b/src/include/commands/version.h
@@ -1,16 +1,16 @@
/*-------------------------------------------------------------------------
*
* version.h--
- * Header file for versions.
+ * Header file for versions.
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: version.h,v 1.4 1997/08/19 21:38:10 momjian Exp $
+ * $Id: version.h,v 1.5 1997/09/07 04:57:35 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef VERSION_H
#define VERSION_H
-
-#endif /* VERSION_H */
+
+#endif /* VERSION_H */
diff --git a/src/include/commands/view.h b/src/include/commands/view.h
index da37d3fe2b9..2e46fb6f4df 100644
--- a/src/include/commands/view.h
+++ b/src/include/commands/view.h
@@ -1,20 +1,20 @@
/*-------------------------------------------------------------------------
*
* view.h--
- *
+ *
*
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: view.h,v 1.1 1996/08/28 07:21:54 scrappy Exp $
+ * $Id: view.h,v 1.2 1997/09/07 04:57:40 momjian Exp $
*
*-------------------------------------------------------------------------
*/
-#ifndef VIEW_H
-#define VIEW_H
+#ifndef VIEW_H
+#define VIEW_H
-extern char *MakeRetrieveViewRuleName(char *view_name);
-extern void DefineView(char *view_name, Query *view_parse);
-extern void RemoveView(char *view_name);
+extern char *MakeRetrieveViewRuleName(char *view_name);
+extern void DefineView(char *view_name, Query * view_parse);
+extern void RemoveView(char *view_name);
-#endif /* VIEW_H */
+#endif /* VIEW_H */