mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-06 12:20:15 +01:00
in schemas other than the system namespace; however, there's no search path yet, and not all operations work yet on tables outside the system namespace.
80 lines
2.0 KiB
C
80 lines
2.0 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* 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.35 2002/03/26 19:16:40 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(const char *relationName,
|
|
bool inh, ColumnDef *colDef);
|
|
|
|
extern void AlterTableAlterColumnDefault(const char *relationName,
|
|
bool inh, const char *colName,
|
|
Node *newDefault);
|
|
|
|
extern void AlterTableAlterColumnFlags(const char *relationName,
|
|
bool inh, const char *colName,
|
|
Node *flagValue, const char *flagType);
|
|
|
|
extern void AlterTableDropColumn(const char *relationName,
|
|
bool inh, const char *colName,
|
|
int behavior);
|
|
|
|
extern void AlterTableAddConstraint(char *relationName,
|
|
bool inh, List *newConstraints);
|
|
|
|
extern void AlterTableDropConstraint(const char *relationName,
|
|
bool inh, const char *constrName,
|
|
int behavior);
|
|
|
|
extern void AlterTableCreateToastTable(Oid relOid, bool silent);
|
|
|
|
extern void AlterTableOwner(const RangeVar *tgtrel, const char *newOwnerName);
|
|
|
|
/*
|
|
* LOCK
|
|
*/
|
|
extern void LockTableCommand(LockStmt *lockstmt);
|
|
|
|
/*
|
|
* SCHEMA
|
|
*/
|
|
extern void CreateSchemaCommand(CreateSchemaStmt *parsetree);
|
|
|
|
#endif /* COMMAND_H */
|