mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Massive commit to run PGINDENT on all *.c and *.h files.
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 struct VAttListData
|
||||
{
|
||||
int val_dummy;
|
||||
struct VAttListData *val_next;
|
||||
} VAttListData;
|
||||
|
||||
typedef VAttListData *VAttList;
|
||||
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 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 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 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 VPageListData *VPageList;
|
||||
|
||||
typedef struct {
|
||||
FuncIndexInfo finfo;
|
||||
FuncIndexInfo *finfoP;
|
||||
IndexTupleForm tform;
|
||||
int natts;
|
||||
} IndDesc;
|
||||
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
|
||||
{
|
||||
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 struct VRelListData
|
||||
{
|
||||
Oid vrl_relid;
|
||||
struct VRelListData *vrl_next;
|
||||
} VRelListData;
|
||||
|
||||
typedef VRelListData *VRelList;
|
||||
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;
|
||||
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 bool VacuumRunning;
|
||||
|
||||
extern void vc_abort(void);
|
||||
extern void vacuum(char *vacrel, bool verbose, bool analyze, List *va_spec);
|
||||
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 */
|
||||
#define ATTNVALS_SCALE 1000000000 /* XXX so it can act as a float4 */
|
||||
|
||||
#endif /* VACUUM_H */
|
||||
#endif /* VACUUM_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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user