mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Clean up th ecompile process by centralizing the include files
- code compile tested, but due to a yet unresolved problem with
parse.h's creation, compile not completed...
This commit is contained in:
33
src/include/commands/async.h
Normal file
33
src/include/commands/async.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* async.h--
|
||||
*
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: async.h,v 1.1 1996/08/28 07:21:41 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef ASYNC_H
|
||||
#define ASYNC_H
|
||||
|
||||
#include "nodes/memnodes.h"
|
||||
|
||||
#if defined(PORTNAME_linux)
|
||||
extern void Async_NotifyHandler(int);
|
||||
#else
|
||||
extern void Async_NotifyHandler(void);
|
||||
#endif
|
||||
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_Unlisten(char *relname, int pid);
|
||||
extern void Async_UnlistenOnExit(int code, char *relname);
|
||||
|
||||
extern GlobalMemory notifyContext;
|
||||
extern void Async_NotifyFrontEnd(void);
|
||||
|
||||
#endif /* ASYNC_H */
|
||||
30
src/include/commands/cluster.h
Normal file
30
src/include/commands/cluster.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* cluster.h--
|
||||
* header file for postgres cluster command stuff
|
||||
*
|
||||
* Copyright (c) 1994-5, Regents of the University of California
|
||||
*
|
||||
* $Id: cluster.h,v 1.1 1996/08/28 07:21:42 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef CLUSTER_H
|
||||
#define CLUSTER_H
|
||||
|
||||
/*
|
||||
* defines for contant stuff
|
||||
*/
|
||||
#define _TEMP_RELATION_KEY_ "clXXXXXXXX"
|
||||
#define _SIZE_OF_TEMP_RELATION_KEY_ 11
|
||||
|
||||
|
||||
/*
|
||||
* functions
|
||||
*/
|
||||
extern void cluster(char oldrelname[], char oldindexname[]);
|
||||
extern Relation copy_heap(Oid OIDOldHeap);
|
||||
extern void copy_index(Oid OIDOldIndex, Oid OIDNewHeap);
|
||||
extern void rebuildheap(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex);
|
||||
|
||||
#endif /* CLUSTER_H */
|
||||
56
src/include/commands/command.h
Normal file
56
src/include/commands/command.h
Normal file
@@ -0,0 +1,56 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* command.h--
|
||||
* prototypes for command.c.
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: command.h,v 1.1 1996/08/28 07:21:43 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef COMMAND_H
|
||||
#define COMMAND_H
|
||||
|
||||
#include "utils/portal.h"
|
||||
#include "tcop/dest.h"
|
||||
|
||||
extern MemoryContext PortalExecutorHeapMemory;
|
||||
|
||||
/*
|
||||
* PortalCleanup --
|
||||
* Cleans up the query state of the portal.
|
||||
*
|
||||
* Exceptions:
|
||||
* BadArg if portal invalid.
|
||||
*/
|
||||
extern void PortalCleanup(Portal portal);
|
||||
|
||||
|
||||
/*
|
||||
* PerformPortalFetch --
|
||||
* 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.
|
||||
*/
|
||||
extern void PerformPortalFetch(char *name, bool forward, int count,
|
||||
char *tag, CommandDest dest);
|
||||
|
||||
/*
|
||||
* PerformPortalClose --
|
||||
* Performs the POSTQUEL function CLOSE.
|
||||
*/
|
||||
extern void PerformPortalClose(char *name, CommandDest dest);
|
||||
|
||||
/*
|
||||
* PerformAddAttribute --
|
||||
* Performs the POSTQUEL function ADD.
|
||||
*/
|
||||
extern void PerformAddAttribute(char *relationName, char *userName,
|
||||
bool inh, ColumnDef *colDef);
|
||||
|
||||
#endif /* COMMAND_H */
|
||||
21
src/include/commands/copy.h
Normal file
21
src/include/commands/copy.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* copy.h--
|
||||
* Definitions for using the POSTGRES copy command.
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: copy.h,v 1.1 1996/08/28 07:21:44 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef COPY_H
|
||||
#define COPY_H
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
void DoCopy(char *relname, bool binary, bool oids, bool from, bool pipe, char *filename,
|
||||
char *delim);
|
||||
|
||||
#endif /* COPY_H */
|
||||
20
src/include/commands/creatinh.h
Normal file
20
src/include/commands/creatinh.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* creatinh.h--
|
||||
* 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 $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef CREATINH_H
|
||||
#define CREATINH_H
|
||||
|
||||
extern void DefineRelation(CreateStmt *stmt);
|
||||
extern void RemoveRelation(char *name);
|
||||
extern char* MakeArchiveName(Oid relid);
|
||||
|
||||
#endif /* CREATINH_H */
|
||||
53
src/include/commands/defrem.h
Normal file
53
src/include/commands/defrem.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* defrem.h--
|
||||
* POSTGRES define and remove utility definitions.
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: defrem.h,v 1.1 1996/08/28 07:21:46 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef DEFREM_H
|
||||
#define DEFREM_H
|
||||
|
||||
#include "postgres.h"
|
||||
#include "nodes/pg_list.h"
|
||||
#include "nodes/primnodes.h"
|
||||
#include "nodes/parsenodes.h"
|
||||
#include "tcop/dest.h"
|
||||
|
||||
/*
|
||||
* prototypes in defind.c
|
||||
*/
|
||||
extern void DefineIndex(char *heapRelationName,
|
||||
char *indexRelationName,
|
||||
char *accessMethodName,
|
||||
List *attributeList,
|
||||
List *parameterList, Expr *predicate,
|
||||
List *rangetable);
|
||||
extern void ExtendIndex(char *indexRelationName,
|
||||
Expr *predicate,
|
||||
List *rangetable);
|
||||
extern void RemoveIndex(char *name);
|
||||
|
||||
/*
|
||||
* prototypes in define.c
|
||||
*/
|
||||
extern void DefineFunction(ProcedureStmt *nameargsexe, CommandDest dest);
|
||||
extern void DefineOperator(char *name, List *parameters);
|
||||
extern void DefineAggregate(char *name, List *parameters);
|
||||
extern void DefineType(char *name, List *parameters);
|
||||
|
||||
/*
|
||||
* prototypes in remove.c
|
||||
*/
|
||||
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);
|
||||
|
||||
#endif /* DEFREM_H */
|
||||
17
src/include/commands/explain.h
Normal file
17
src/include/commands/explain.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* explain.h--
|
||||
* prototypes for explain.c
|
||||
*
|
||||
* Copyright (c) 1994-5, Regents of the University of California
|
||||
*
|
||||
* $Id: explain.h,v 1.1 1996/08/28 07:21:47 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef EXPLAIN_H
|
||||
#define EXPLAIN_H
|
||||
|
||||
extern void ExplainQuery(Query *query, List *options, CommandDest dest);
|
||||
|
||||
#endif /* EXPLAIN_H*/
|
||||
20
src/include/commands/purge.h
Normal file
20
src/include/commands/purge.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* 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 $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef PURGE_H
|
||||
#define PURGE_H
|
||||
|
||||
extern int32 RelationPurge(char *relationName,
|
||||
char *absoluteTimeString,
|
||||
char *relativeTimeString);
|
||||
|
||||
#endif /* PURGE_H */
|
||||
17
src/include/commands/recipe.h
Normal file
17
src/include/commands/recipe.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* recipe.h--
|
||||
* 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 $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef RECIPE_H
|
||||
#define RECIPE_H
|
||||
|
||||
extern void beginRecipe(RecipeStmt* stmt);
|
||||
|
||||
#endif /* RECIPE_H */
|
||||
24
src/include/commands/rename.h
Normal file
24
src/include/commands/rename.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* 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 $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef RENAME_H
|
||||
#define RENAME_H
|
||||
|
||||
extern void renameatt(char *relname,
|
||||
char *oldattname,
|
||||
char *newattname,
|
||||
char *userName, int recurse);
|
||||
|
||||
extern void renamerel(char *oldrelname,
|
||||
char *newrelname);
|
||||
|
||||
#endif /* RENAME_H */
|
||||
48
src/include/commands/vacuum.h
Normal file
48
src/include/commands/vacuum.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* vacuum.h--
|
||||
* header file for postgres vacuum cleaner
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: vacuum.h,v 1.1 1996/08/28 07:21:52 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef VACUUM_H
|
||||
#define VACUUM_H
|
||||
|
||||
typedef struct VAttListData {
|
||||
int val_dummy;
|
||||
struct VAttListData *val_next;
|
||||
} VAttListData;
|
||||
|
||||
typedef VAttListData *VAttList;
|
||||
|
||||
typedef struct VTidListData {
|
||||
ItemPointerData vtl_tid;
|
||||
struct VTidListData *vtl_next;
|
||||
} VTidListData;
|
||||
|
||||
typedef VTidListData *VTidList;
|
||||
|
||||
typedef struct VRelListData {
|
||||
Oid vrl_relid;
|
||||
VAttList vrl_attlist;
|
||||
VTidList vrl_tidlist;
|
||||
int vrl_ntups;
|
||||
int vrl_npages;
|
||||
bool vrl_hasindex;
|
||||
struct VRelListData *vrl_next;
|
||||
} VRelListData;
|
||||
|
||||
typedef VRelListData *VRelList;
|
||||
|
||||
extern bool VacuumRunning;
|
||||
|
||||
extern void vc_abort(void);
|
||||
extern void vacuum(char *vacrel);
|
||||
|
||||
|
||||
#endif /* VACUUM_H */
|
||||
26
src/include/commands/version.h
Normal file
26
src/include/commands/version.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* version.h--
|
||||
* Header file for versions.
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: version.h,v 1.1 1996/08/28 07:21:53 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef VERSION_H
|
||||
#define VERSION_H
|
||||
|
||||
#include "postgres.h"
|
||||
#include "nodes/pg_list.h"
|
||||
|
||||
extern void DefineVersion(char *name, char *fromRelname, char *date);
|
||||
extern void VersionCreate(char *vname, char *bname);
|
||||
extern void VersionAppend(char *vname, char *bname);
|
||||
extern void VersionRetrieve(char *vname, char *bname, char *snapshot);
|
||||
extern void VersionDelete(char *vname, char *bname, char *snapshot);
|
||||
extern void VersionReplace(char *vname, char *bname, char *snapshot);
|
||||
|
||||
#endif /* VERSION_H */
|
||||
20
src/include/commands/view.h
Normal file
20
src/include/commands/view.h
Normal file
@@ -0,0 +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 $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#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);
|
||||
|
||||
#endif /* VIEW_H */
|
||||
Reference in New Issue
Block a user