*** src/backend/rewrite/rewriteHandler.c~	Sun Jul 11 13:54:30 1999
--- src/backend/rewrite/rewriteHandler.c	Tue Oct 19 00:38:05 1999
***************
*** 2859,2864 ****
--- 2859,2866 ----
  	bool		isBinary,
  				isPortal,
  				isTemp;
+ 	Node	   *limitOffset,
+ 			   *limitCount;
  	CmdType		commandType = CMD_SELECT;
  	List	   *rtable_insert = NIL;
  
***************
*** 2909,2914 ****
--- 2911,2918 ----
  	isBinary = parsetree->isBinary;
  	isPortal = parsetree->isPortal;
  	isTemp = parsetree->isTemp;
+ 	limitOffset = parsetree->limitOffset;
+ 	limitCount = parsetree->limitCount;
  
  	/*
  	 * The operator tree attached to parsetree->intersectClause is still
***************
*** 3094,3099 ****
--- 3098,3105 ----
  	result->isPortal = isPortal;
  	result->isBinary = isBinary;
  	result->isTemp = isTemp;
+ 	result->limitOffset = limitOffset;
+ 	result->limitCount = limitCount;
  
  	/*
  	 * The relation to insert into is attached to the range table of the
