GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

       ALTER_RULE - change the definition of a rule

SYNOPSIS

       ALTER RULE name ON table_name RENAME TO new_name

DESCRIPTION

       ALTER RULE changes properties of an existing rule. Currently, the only
       available action is to change the rule's name.

       To use ALTER RULE, you must own the table or view that the rule applies
       to.

PARAMETERS

       name
           The name of an existing rule to alter.

       table_name
           The name (optionally schema-qualified) of the table or view that
           the rule applies to.

       new_name
           The new name for the rule.

EXAMPLES

       To rename an existing rule:

           ALTER RULE notify_all ON emp RENAME TO notify_me;

COMPATIBILITY

       ALTER RULE is a PostgreSQL language extension, as is the entire query
       rewrite system.

SEE ALSO

       CREATE RULE (CREATE_RULE(7)), DROP RULE (DROP_RULE(7))



  All copyrights belong to their respective owners. Other content (c) 2014-2017, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.116 seconds. Last modified: November 09 2017 18:38:06.