*** a/doc/src/sgml/catalogs.sgml
--- b/doc/src/sgml/catalogs.sgml
***************
*** 5024,5030 ****
        <entry><structfield>ev_attr</structfield></entry>
        <entry><type>int2</type></entry>
        <entry></entry>
!       <entry>The column this rule is for (currently, always -1 to
        indicate the whole table)</entry>
       </row>
  
--- 5024,5030 ----
        <entry><structfield>ev_attr</structfield></entry>
        <entry><type>int2</type></entry>
        <entry></entry>
!       <entry>The column this rule is for (currently, always zero to
        indicate the whole table)</entry>
       </row>
  
*** a/src/backend/rewrite/rewriteDefine.c
--- b/src/backend/rewrite/rewriteDefine.c
***************
*** 489,495 **** DefineQueryRewrite(char *rulename,
  	/*
  	 * This rule is allowed - prepare to install it.
  	 */
! 	event_attno = -1;
  
  	/* discard rule if it's null action and not INSTEAD; it's a no-op */
  	if (action != NIL || is_instead)
--- 489,495 ----
  	/*
  	 * This rule is allowed - prepare to install it.
  	 */
! 	event_attno = 0;
  
  	/* discard rule if it's null action and not INSTEAD; it's a no-op */
  	if (action != NIL || is_instead)
