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.
71 lines
1.8 KiB
71 lines
1.8 KiB
/*-------------------------------------------------------------------------
|
|
*
|
|
* command.h
|
|
* prototypes for command.c.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: command.h,v 1.23 2000/09/12 05:09:47 momjian 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.
|
|
* "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);
|
|
|
|
extern void PortalCleanup(Portal portal);
|
|
|
|
/*
|
|
* ALTER TABLE variants
|
|
*/
|
|
extern void AlterTableAddColumn(const char *relationName,
|
|
bool inh, ColumnDef *colDef);
|
|
|
|
extern void AlterTableAlterColumn(const char *relationName,
|
|
bool inh, const char *colName,
|
|
Node *newDefault);
|
|
|
|
extern void AlterTableDropColumn(const char *relationName,
|
|
bool inh, const char *colName,
|
|
int behavior);
|
|
|
|
extern void AlterTableAddConstraint(char *relationName,
|
|
bool inh, Node *newConstraint);
|
|
|
|
extern void AlterTableDropConstraint(const char *relationName,
|
|
bool inh, const char *constrName,
|
|
int behavior);
|
|
|
|
extern void AlterTableCreateToastTable(const char *relationName,
|
|
bool silent);
|
|
|
|
extern void AlterTableOwner(const char *relationName, const char *newOwnerName);
|
|
|
|
/*
|
|
* LOCK
|
|
*/
|
|
extern void LockTableCommand(LockStmt *lockstmt);
|
|
|
|
#endif /* COMMAND_H */
|
|
|