--- trunk/pgest.c 2005/05/20 12:19:05 1 +++ trunk/pgest.c 2005/05/20 13:00:46 2 @@ -98,7 +98,7 @@ if ( 0 == funcctx->max_calls ) elog(INFO, "pgest: no results for: %s", query ); - elog(INFO, "pgest: found %d hits for %s", funcctx->max_calls, query); + elog(DEBUG1, "pgest: found %d hits for %s", funcctx->max_calls, query); /* Build a tuple description for a __pgest tuple */ tupdesc = RelationNameGetTupleDesc("__pgest"); @@ -118,7 +118,7 @@ MemoryContextSwitchTo(oldcontext); - elog(INFO, "SRF_IS_FIRSTCALL done"); + elog(DEBUG1, "SRF_IS_FIRSTCALL done"); } /* stuff done on every call of the function */ @@ -134,7 +134,7 @@ HeapTuple tuple; Datum result; - elog(INFO, "pgest: loop count %d", call_cntr); + elog(DEBUG1, "pgest: loop count %d", call_cntr); if (! est_result) { elog(ERROR, "pgest: no estraier results"); @@ -149,7 +149,7 @@ if (doc = est_db_get_doc(db, est_result[call_cntr], 0)) { - elog(INFO, "URI: %s\n Title: %s\n", + elog(DEBUG1, "URI: %s\n Title: %s\n", est_doc_attr(doc, "@uri"), est_doc_attr(doc, "@title") ); @@ -197,7 +197,7 @@ SRF_RETURN_NEXT(funcctx, result); } else { - elog(INFO, "loop over"); + elog(DEBUG1, "loop over"); if(!est_db_close(db, &ecode)){ elog(INFO, "est_db_close error: %s", est_err_msg(ecode)); @@ -293,7 +293,7 @@ const char *attrval; int len; - elog(INFO, "doc: %08x, attr: %s", doc, attr); + elog(DEBUG1, "doc: %08x, attr: %s", doc, attr); if (attrval = est_doc_attr(doc, attr)) { val = (char *) palloc(strlen(attrval) * sizeof(char)); @@ -302,7 +302,7 @@ } len = strlen(attrval); - elog(INFO, "attr2text(%s) = '%s' %d bytes", attr, attrval, len); + elog(DEBUG1, "attr2text(%s) = '%s' %d bytes", attr, attrval, len); len++; len *= sizeof(char);