Compare commits

..

No commits in common. "0e28091d5507bd63d5ad51e9795dd368aa4c7c4c" and "1e7f81e90741795d547c0290b4a82d84d518faac" have entirely different histories.

2 changed files with 2 additions and 9 deletions

View File

@ -279,7 +279,8 @@ bloom_init(int ndistinct, double false_positive_rate)
double k; /* number of hash functions */
Assert(ndistinct > 0);
Assert(false_positive_rate > 0 && false_positive_rate < 1);
Assert((false_positive_rate >= BLOOM_MIN_FALSE_POSITIVE_RATE) &&
(false_positive_rate < BLOOM_MAX_FALSE_POSITIVE_RATE));
/* sizing bloom filter: -(n * ln(p)) / (ln(2))^2 */
nbits = ceil(-(ndistinct * log(false_positive_rate)) / pow(log(2.0), 2));

View File

@ -3271,14 +3271,6 @@ PQsendFlushRequest(PGconn *conn)
return 0;
}
/*
* Give the data a push (in pipeline mode, only if we're past the size
* threshold). In nonblock mode, don't complain if we're unable to send
* it all; PQgetResult() will do any additional flushing needed.
*/
if (pqPipelineFlush(conn) < 0)
return 0;
return 1;
}