From 71dc300a375f4932693b064b161a400448c9bc2e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 15 Apr 2002 05:22:04 +0000 Subject: The contents of command.c, creatinh.c, define.c, remove.c and rename.c have been divided according to the type of object manipulated - so ALTER TABLE code is in tablecmds.c, aggregate commands in aggregatecmds.c and so on. A few common support routines remain in define.c (prototypes in src/include/commands/defrem.h). No code has been changed except for includes to reflect the new files. The prototypes for aggregatecmds.c, functioncmds.c, operatorcmds.c, and typecmds.c remain in src/include/commands/defrem.h. From John Gray --- src/include/commands/command.h | 81 ------------------------------------------ 1 file changed, 81 deletions(-) delete mode 100644 src/include/commands/command.h (limited to 'src/include/commands/command.h') diff --git a/src/include/commands/command.h b/src/include/commands/command.h deleted file mode 100644 index cfb8f20890e..00000000000 --- a/src/include/commands/command.h +++ /dev/null @@ -1,81 +0,0 @@ -/*------------------------------------------------------------------------- - * - * command.h - * prototypes for command.c. - * - * - * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * $Id: command.h,v 1.37 2002/04/01 04:35:39 tgl Exp $ - * - *------------------------------------------------------------------------- - */ -#ifndef COMMAND_H -#define COMMAND_H - -#include "utils/portal.h" - - -/* - * 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. - * "ERROR" if portal not found. - */ -extern void PerformPortalFetch(char *name, bool forward, int count, - CommandDest dest, char *completionTag); - -/* - * PerformPortalClose - * Performs the POSTQUEL function CLOSE. - */ -extern void PerformPortalClose(char *name, CommandDest dest); - -extern void PortalCleanup(Portal portal); - -/* - * ALTER TABLE variants - */ -extern void AlterTableAddColumn(Oid myrelid, bool inherits, ColumnDef *colDef); - -extern void AlterTableAlterColumnDefault(Oid myrelid, bool inh, - const char *colName, Node *newDefault); - -extern void AlterTableAlterColumnDropNotNull(Oid myrelid, - bool inh, const char *colName); - -extern void AlterTableAlterColumnSetNotNull(Oid myrelid, - bool inh, const char *colName); - -extern void AlterTableAlterColumnFlags(Oid myrelid, - bool inh, const char *colName, - Node *flagValue, const char *flagType); - -extern void AlterTableDropColumn(Oid myrelid, bool inh, - const char *colName, int behavior); - -extern void AlterTableAddConstraint(Oid myrelid, - bool inh, List *newConstraints); - -extern void AlterTableDropConstraint(Oid myrelid, - bool inh, const char *constrName, int behavior); - -extern void AlterTableCreateToastTable(Oid relOid, bool silent); - -extern void AlterTableOwner(Oid relationOid, int32 newOwnerSysId); - -/* - * LOCK - */ -extern void LockTableCommand(LockStmt *lockstmt); - -/* - * SCHEMA - */ -extern void CreateSchemaCommand(CreateSchemaStmt *parsetree); - -#endif /* COMMAND_H */ -- cgit v1.2.3