--- trunk/pgest.c 2005/05/26 17:56:53 19 +++ trunk/pgest.c 2005/05/26 19:42:36 20 @@ -114,7 +114,7 @@ SRF_RETURN_DONE(funcctx); } - elog(INFO, "pgest: query[%s] attr[%s] limit %d offset %d", query, (PG_ARGISNULL(2) ? "NULL" : attr), limit, offset); + elog(DEBUG1, "pgest: query[%s] attr[%s] limit %d offset %d", query, (PG_ARGISNULL(2) ? "NULL" : attr), limit, offset); /* create a search condition object */ if (!(cond = est_cond_new())) { @@ -128,7 +128,7 @@ /* minimum valid attribute length is 10: @a STREQ a */ if (! PG_ARGISNULL(2) && strlen(attr) >= 10) { - elog(INFO,"est_cond_add_attr(%s)", attr); + elog(DEBUG1,"est_cond_add_attr(%s)", attr); est_cond_add_attr(cond, attr); } @@ -178,7 +178,7 @@ attinmeta = funcctx->attinmeta; if (limit && call_cntr > limit - 1) { - elog(INFO, "call_cntr: %d limit: %d", call_cntr, limit); + elog(DEBUG1, "call_cntr: %d limit: %d", call_cntr, limit); SRF_RETURN_DONE(funcctx); } @@ -390,7 +390,7 @@ errdetail(est_err_msg(ecode)))); } - elog(INFO, "pgest_attr: query[%s] attr[%s] limit %d offset %d", query, (PG_ARGISNULL(2) ? "NULL" : attr), limit, offset); + elog(DEBUG1, "pgest_attr: query[%s] attr[%s] limit %d offset %d", query, (PG_ARGISNULL(2) ? "NULL" : attr), limit, offset); /* create a search condition object */ if (!(cond = est_cond_new())) { @@ -404,7 +404,7 @@ /* minimum valid attribute length is 10: @a STREQ a */ if (! PG_ARGISNULL(2) && strlen(attr) >= 10) { - elog(INFO,"est_cond_add_attr(%s)", attr); + elog(DEBUG1,"est_cond_add_attr(%s)", attr); est_cond_add_attr(cond, attr); } @@ -455,7 +455,7 @@ if (!isnull && doc) values[j] = DatumGetCString( attr2text(doc, - DirectFunctionCall1(textout, dvalue) + (char *)DirectFunctionCall1(textout, dvalue) )); else values[j] = NULL;