1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* defrem.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* POSTGRES define and remove utility definitions.
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2000-02-18 10:30:20 +01:00
|
|
|
* $Id: defrem.h,v 1.19 2000/02/18 09:29:49 inoue Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#ifndef DEFREM_H
|
1996-07-09 08:22:35 +02:00
|
|
|
#define DEFREM_H
|
|
|
|
|
1999-07-16 01:04:24 +02:00
|
|
|
#include "nodes/parsenodes.h"
|
1999-07-16 19:07:40 +02:00
|
|
|
#include "tcop/dest.h"
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes in defind.c
|
|
|
|
*/
|
1998-09-01 06:40:42 +02:00
|
|
|
extern void DefineIndex(char *heapRelationName,
|
1996-07-09 08:22:35 +02:00
|
|
|
char *indexRelationName,
|
|
|
|
char *accessMethodName,
|
1997-09-08 23:56:23 +02:00
|
|
|
List *attributeList,
|
|
|
|
List *parameterList,
|
1996-11-13 21:56:15 +01:00
|
|
|
bool unique,
|
1999-01-21 23:48:20 +01:00
|
|
|
bool primary,
|
1997-09-08 23:56:23 +02:00
|
|
|
Expr *predicate,
|
|
|
|
List *rangetable);
|
1998-09-01 06:40:42 +02:00
|
|
|
extern void ExtendIndex(char *indexRelationName,
|
1997-09-08 23:56:23 +02:00
|
|
|
Expr *predicate,
|
|
|
|
List *rangetable);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern void RemoveIndex(char *name);
|
2000-02-18 10:30:20 +01:00
|
|
|
extern void ReindexIndex(const char *indexRelationName, bool force);
|
|
|
|
extern void ReindexTable(const char *relationName, bool force);
|
|
|
|
extern void ReindexDatabase(const char *databaseName, bool force, bool all);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes in define.c
|
|
|
|
*/
|
1997-09-08 23:56:23 +02:00
|
|
|
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);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes in remove.c
|
|
|
|
*/
|
1997-09-08 23:56:23 +02:00
|
|
|
extern void RemoveFunction(char *functionName, int nargs, List *argNameList);
|
1998-09-01 06:40:42 +02:00
|
|
|
extern void RemoveOperator(char *operatorName,
|
1996-07-09 08:22:35 +02:00
|
|
|
char *typeName1, char *typeName2);
|
1997-09-08 04:41:22 +02:00
|
|
|
extern void RemoveType(char *typeName);
|
|
|
|
extern void RemoveAggregate(char *aggName, char *aggType);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* DEFREM_H */
|