pgsql: Add checks to DefineQueryRewrite() to prohibit attaching rules to

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add checks to DefineQueryRewrite() to prohibit attaching rules to
Date: 2009-05-13 22:32:55
Message-ID: 20090513223255.37204754065@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Add checks to DefineQueryRewrite() to prohibit attaching rules to relations
that aren't RELKIND_RELATION or RELKIND_VIEW, and to disallow attaching rules
to system relations unless allowSystemTableMods is on. This is to make the
behavior of CREATE RULE more like CREATE TRIGGER, which disallows the
comparable cases. Per discussion of bug #4808.

Modified Files:
--------------
pgsql/src/backend/rewrite:
rewriteDefine.c (r1.136 -> r1.137)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/rewrite/rewriteDefine.c?r1=1.136&r2=1.137)

Browse pgsql-committers by date

  From Date Subject
Next Message User Itagaki 2009-05-14 03:54:40 textsearch-ja - textsearch_senna: Support LIKE-compatible search with
Previous Message Tom Lane 2009-05-13 21:53:42 pgsql: Remove a useless backslash from a pattern-match example.