2002-04-15 07:22:04 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* tablecmds.h
|
|
|
|
* prototypes for tablecmds.c.
|
|
|
|
*
|
|
|
|
*
|
2004-12-31 23:04:05 +01:00
|
|
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
2002-04-15 07:22:04 +02:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2005-01-27 04:19:37 +01:00
|
|
|
* $PostgreSQL: pgsql/src/include/commands/tablecmds.h,v 1.22 2005/01/27 03:18:24 tgl Exp $
|
2002-04-15 07:22:04 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef TABLECMDS_H
|
|
|
|
#define TABLECMDS_H
|
|
|
|
|
|
|
|
#include "nodes/parsenodes.h"
|
|
|
|
|
|
|
|
|
2004-05-05 06:48:48 +02:00
|
|
|
extern Oid DefineRelation(CreateStmt *stmt, char relkind);
|
2002-04-15 07:22:04 +02:00
|
|
|
|
2004-05-05 06:48:48 +02:00
|
|
|
extern void RemoveRelation(const RangeVar *relation, DropBehavior behavior);
|
2002-04-15 07:22:04 +02:00
|
|
|
|
2004-05-05 06:48:48 +02:00
|
|
|
extern void AlterTable(AlterTableStmt *stmt);
|
2002-04-15 07:22:04 +02:00
|
|
|
|
2004-05-05 06:48:48 +02:00
|
|
|
extern void AlterTableInternal(Oid relid, List *cmds, bool recurse);
|
2003-03-20 19:52:48 +01:00
|
|
|
|
2002-04-15 07:22:04 +02:00
|
|
|
extern void AlterTableCreateToastTable(Oid relOid, bool silent);
|
|
|
|
|
2005-01-27 04:19:37 +01:00
|
|
|
extern void ExecuteTruncate(List *relations);
|
2002-04-15 07:22:04 +02:00
|
|
|
|
2002-08-30 21:23:20 +02:00
|
|
|
extern void renameatt(Oid myrelid,
|
2002-04-15 07:22:04 +02:00
|
|
|
const char *oldattname,
|
|
|
|
const char *newattname,
|
2002-08-30 21:23:20 +02:00
|
|
|
bool recurse,
|
|
|
|
bool recursing);
|
2002-04-15 07:22:04 +02:00
|
|
|
|
2002-08-30 21:23:20 +02:00
|
|
|
extern void renamerel(Oid myrelid,
|
2002-04-15 07:22:04 +02:00
|
|
|
const char *newrelname);
|
|
|
|
|
2002-11-11 23:19:25 +01:00
|
|
|
extern void register_on_commit_action(Oid relid, OnCommitAction action);
|
|
|
|
extern void remove_on_commit_action(Oid relid);
|
2002-11-10 00:56:39 +01:00
|
|
|
|
2002-11-11 23:19:25 +01:00
|
|
|
extern void PreCommit_on_commit_actions(void);
|
2004-09-16 18:58:44 +02:00
|
|
|
extern void AtEOXact_on_commit_actions(bool isCommit);
|
2004-07-01 02:52:04 +02:00
|
|
|
extern void AtEOSubXact_on_commit_actions(bool isCommit,
|
2004-09-16 18:58:44 +02:00
|
|
|
SubTransactionId mySubid,
|
|
|
|
SubTransactionId parentSubid);
|
2002-11-10 00:56:39 +01:00
|
|
|
|
2002-04-15 07:22:04 +02:00
|
|
|
#endif /* TABLECMDS_H */
|