--- trunk/pgest.c 2005/07/06 14:47:56 31 +++ trunk/pgest.c 2005/07/08 12:47:49 38 @@ -213,6 +213,11 @@ est_cond_set_order(cond, order); } + if (limit) { + elog(DEBUG1,"est_cond_set_max(%d)", limit + offset); + est_cond_set_max(cond, limit + offset); + } + /* get the result of search */ est_result = est_db_search(db, cond, &resnum, NULL); @@ -224,6 +229,7 @@ /* total number of tuples to be returned */ if (limit && limit < resnum) { nrows = limit; + elog(INFO, "This is probably a bug in limit implementation. Please report it to dpavlin@rot13.org"); } else { nrows = resnum - offset; }