Thread: pgsql/ oc/src/sgml/func.sgml oc/src/sgml/relea ...

pgsql/ oc/src/sgml/func.sgml oc/src/sgml/relea ...

From
tgl@postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql
Changes by:    tgl@postgresql.org    02/04/18 16:01:11

Modified files:
    doc/src/sgml   : func.sgml release.sgml
    doc/src/sgml/ref: comment.sgml drop_rule.sgml
    src/backend/catalog: indexing.c
    src/backend/commands: comment.c tablecmds.c
    src/backend/nodes: copyfuncs.c equalfuncs.c
    src/backend/parser: gram.y
    src/backend/rewrite: rewriteDefine.c rewriteRemove.c
                         rewriteSupport.c
    src/backend/tcop: postgres.c utility.c
    src/backend/utils/adt: ruleutils.c
    src/backend/utils/cache: relcache.c syscache.c
    src/bin/initdb : initdb.sh
    src/bin/pg_dump: pg_dump.c
    src/include/catalog: catversion.h indexing.h pg_proc.h
                         pg_rewrite.h
    src/include/nodes: nodes.h parsenodes.h
    src/include/rewrite: rewriteDefine.h rewriteRemove.h
                         rewriteSupport.h
    src/include/utils: builtins.h syscache.h
    src/test/regress/expected: errors.out rules.out
    src/test/regress/sql: errors.sql rules.sql

Log message:
    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.