pg_amcheck: Fix test failure on Windows with non-existing role
[pgsql.git] / src / include / rewrite / rewriteSupport.h
blob50f5af211e0295d9d79b7c8b5b1471393e618b45
1 /*-------------------------------------------------------------------------
3 * rewriteSupport.h
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/rewrite/rewriteSupport.h
12 *-------------------------------------------------------------------------
14 #ifndef REWRITESUPPORT_H
15 #define REWRITESUPPORT_H
17 /* The ON SELECT rule of a view is always named this: */
18 #define ViewSelectRuleName "_RETURN"
20 extern bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName);
22 extern void SetRelationRuleStatus(Oid relationId, bool relHasRules);
24 extern Oid get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok);
26 #endif /* REWRITESUPPORT_H */