mirror of
https://github.com/postgres/postgres.git
synced 2025-08-24 09:27:52 +03:00
Rule names are now unique per-relation, rather than unique globally.
DROP RULE and COMMENT ON RULE syntax adds an 'ON tablename' clause, similar to TRIGGER syntaxes. To allow loading of existing pg_dump files containing COMMENT ON RULE, the COMMENT code will still accept the old syntax --- but only if the target rulename is unique across the whole database.
This commit is contained in:
@@ -7,14 +7,14 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: rewriteRemove.h,v 1.12 2002/03/29 19:06:26 tgl Exp $
|
||||
* $Id: rewriteRemove.h,v 1.13 2002/04/18 20:01:11 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef REWRITEREMOVE_H
|
||||
#define REWRITEREMOVE_H
|
||||
|
||||
extern void RemoveRewriteRule(List *names);
|
||||
extern void RemoveRewriteRule(Oid owningRel, const char *ruleName);
|
||||
extern void RelationRemoveRules(Oid relid);
|
||||
|
||||
#endif /* REWRITEREMOVE_H */
|
||||
|
Reference in New Issue
Block a user