init_reltuples.diff
text/x-patch
Filename: init_reltuples.diff
Type: text/x-patch
Part: 0
Patch
Format: unified
| File | + | − |
|---|---|---|
| contrib/postgres_fdw/postgres_fdw.c | 2 | 0 |
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index 25b287be069..b51ff108741 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -5177,6 +5177,8 @@ postgresAcquireSampleRowsFunc(Relation relation, int elevel, Assert(sample_frac >= 0.0 && sample_frac <= 1.0); } } + else + reltuples = 0; /* * For "auto" method, pick the one we believe is best. For servers with