Compare commits

..

No commits in common. "99fa98766fa59270083606d9386386c3e7131a7a" and "33d5cf65f8c97d6bf085dffecb51c6a52d1f3f0d" have entirely different histories.

2 changed files with 2 additions and 9 deletions

View File

@ -280,7 +280,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

@ -3252,14 +3252,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;
}