mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Second phase of committing Rod Taylor's pg_depend/pg_constraint patch.
pg_relcheck is gone; CHECK, UNIQUE, PRIMARY KEY, and FOREIGN KEY constraints all have real live entries in pg_constraint. pg_depend exists, and RESTRICT/CASCADE options work on most kinds of DROP; however, pg_depend is not yet very well populated with dependencies. (Most of the ones that are present at this point just replace formerly hardwired associations, such as the implicit drop of a relation's pg_type entry when the relation is dropped.) Need to add more logic to create dependency entries, improve pg_dump to dump constraints in place of indexes and triggers, and add some regression tests.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: trigger.h,v 1.36 2002/06/20 20:29:49 momjian Exp $
|
||||
* $Id: trigger.h,v 1.37 2002/07/12 18:43:19 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -101,9 +101,11 @@ typedef struct TriggerData
|
||||
#define RI_MAX_ARGUMENTS (RI_FIRST_ATTNAME_ARGNO + (RI_MAX_NUMKEYS * 2))
|
||||
|
||||
|
||||
extern void CreateTrigger(CreateTrigStmt *stmt);
|
||||
extern void DropTrigger(Oid relid, const char *trigname);
|
||||
extern void RelationRemoveTriggers(Relation rel);
|
||||
extern Oid CreateTrigger(CreateTrigStmt *stmt, bool forConstraint);
|
||||
|
||||
extern void DropTrigger(Oid relid, const char *trigname,
|
||||
DropBehavior behavior);
|
||||
extern void RemoveTriggerById(Oid trigOid);
|
||||
|
||||
extern void renametrig(Oid relid, const char *oldname, const char *newname);
|
||||
|
||||
|
Reference in New Issue
Block a user