--- trunk/pgest.c 2006/08/08 11:42:01 79 +++ trunk/pgest.c 2006/08/08 12:15:55 80 @@ -592,7 +592,7 @@ if (limit && limit < resnum) { nrows = limit; } else { - nrows = resnum - offset; + nrows = resnum; } /* get hints */