Index: src/backend/parser/gram.y
===================================================================
RCS file: /cvsroot/pgsql/src/backend/parser/gram.y,v
retrieving revision 2.585
diff -c -c -r2.585 gram.y
*** src/backend/parser/gram.y	2 Apr 2007 03:49:38 -0000	2.585
--- src/backend/parser/gram.y	2 Apr 2007 21:57:48 -0000
***************
*** 4834,4860 ****
   *
   *****************************************************************************/
  
! NotifyStmt: NOTIFY qualified_name
  				{
  					NotifyStmt *n = makeNode(NotifyStmt);
! 					n->relation = $2;
  					$$ = (Node *)n;
  				}
  		;
  
! ListenStmt: LISTEN qualified_name
  				{
  					ListenStmt *n = makeNode(ListenStmt);
! 					n->relation = $2;
  					$$ = (Node *)n;
  				}
  		;
  
  UnlistenStmt:
! 			UNLISTEN qualified_name
  				{
  					UnlistenStmt *n = makeNode(UnlistenStmt);
! 					n->relation = $2;
  					$$ = (Node *)n;
  				}
  			| UNLISTEN '*'
--- 4834,4866 ----
   *
   *****************************************************************************/
  
! NotifyStmt: NOTIFY ColId
  				{
  					NotifyStmt *n = makeNode(NotifyStmt);
! 					n->relation = makeNode(RangeVar);
! 					n->relation->relname = $2;
! 					n->relation->schemaname = NULL;
  					$$ = (Node *)n;
  				}
  		;
  
! ListenStmt: LISTEN ColId
  				{
  					ListenStmt *n = makeNode(ListenStmt);
! 					n->relation = makeNode(RangeVar);
! 					n->relation->relname = $2;
! 					n->relation->schemaname = NULL;
  					$$ = (Node *)n;
  				}
  		;
  
  UnlistenStmt:
! 			UNLISTEN ColId
  				{
  					UnlistenStmt *n = makeNode(UnlistenStmt);
! 					n->relation = makeNode(RangeVar);
! 					n->relation->relname = $2;
! 					n->relation->schemaname = NULL;
  					$$ = (Node *)n;
  				}
  			| UNLISTEN '*'
