mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
54 lines
1.5 KiB
/*-------------------------------------------------------------------------
|
|
*
|
|
* defrem.h--
|
|
* POSTGRES define and remove utility definitions.
|
|
*
|
|
*
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: defrem.h,v 1.14 1999/01/21 22:48:16 momjian Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef DEFREM_H
|
|
#define DEFREM_H
|
|
|
|
#include <tcop/dest.h>
|
|
#include <nodes/parsenodes.h>
|
|
|
|
/*
|
|
* prototypes in defind.c
|
|
*/
|
|
extern void DefineIndex(char *heapRelationName,
|
|
char *indexRelationName,
|
|
char *accessMethodName,
|
|
List *attributeList,
|
|
List *parameterList,
|
|
bool unique,
|
|
bool primary,
|
|
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);
|
|
|
|
/*
|
|
* 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, char *aggType);
|
|
|
|
#endif /* DEFREM_H */
|
|
|