aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/view.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-04-19 23:13:54 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-04-19 23:13:54 +0000
commit6d6ca2166c3ae8db9fac2ec7fdadca0c4e6382a1 (patch)
tree3bd8166e6da16403daa1daa44315a652eee5f1d2 /src/backend/commands/view.c
parent201737168c4ed5b14313d111d8d746c7f072f24e (diff)
downloadpostgresql-6d6ca2166c3ae8db9fac2ec7fdadca0c4e6382a1.tar.gz
postgresql-6d6ca2166c3ae8db9fac2ec7fdadca0c4e6382a1.zip
Change naming rule for ON SELECT rules of views: they're all just
_RETURN now, since there's no need to keep 'em unique anymore.
Diffstat (limited to 'src/backend/commands/view.c')
-rw-r--r--src/backend/commands/view.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/commands/view.c b/src/backend/commands/view.c
index bb4f2185b08..491c718a0ec 100644
--- a/src/backend/commands/view.c
+++ b/src/backend/commands/view.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: view.c,v 1.62 2002/04/15 05:22:03 tgl Exp $
+ * $Id: view.c,v 1.63 2002/04/19 23:13:54 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -99,17 +99,14 @@ static RuleStmt *
FormViewRetrieveRule(const RangeVar *view, Query *viewParse)
{
RuleStmt *rule;
- char *rname;
/*
* Create a RuleStmt that corresponds to the suitable rewrite rule
* args for DefineQueryRewrite();
*/
- rname = MakeRetrieveViewRuleName(view->relname);
-
rule = makeNode(RuleStmt);
rule->relation = copyObject((RangeVar *) view);
- rule->rulename = pstrdup(rname);
+ rule->rulename = pstrdup(ViewSelectRuleName);
rule->whereClause = NULL;
rule->event = CMD_SELECT;
rule->instead = true;