summaryrefslogtreecommitdiff
path: root/src/include/commands
diff options
context:
space:
mode:
authorTom Lane2015-05-18 22:34:37 +0000
committerTom Lane2015-05-18 22:34:37 +0000
commit4db485e75b9672126963ae4052b50f473b30a097 (patch)
treec82504c5924d228715402e03b3dfbb2a72eed0bb /src/include/commands
parentf5916bb7b53f8a77c95c00c5b287659958891178 (diff)
Put back a backwards-compatible version of sampling support functions.
Commit 83e176ec18d2a91dbea1d0d1bd94c38dc47cd77c removed the longstanding support functions for block sampling without any consideration of the impact this would have on third-party FDWs. The new API is not notably more functional for FDWs than the old, so forcing them to change doesn't seem like a good thing. We can provide the old API as a wrapper (more or less) around the new one for a minimal amount of extra code.
Diffstat (limited to 'src/include/commands')
-rw-r--r--src/include/commands/vacuum.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h
index ce7b28d22c7..4fb91e79cba 100644
--- a/src/include/commands/vacuum.h
+++ b/src/include/commands/vacuum.h
@@ -198,4 +198,9 @@ extern void analyze_rel(Oid relid, RangeVar *relation, int options,
BufferAccessStrategy bstrategy);
extern bool std_typanalyze(VacAttrStats *stats);
+/* in utils/misc/sampling.c --- duplicate of declarations in utils/sampling.h */
+extern double anl_random_fract(void);
+extern double anl_init_selection_state(int n);
+extern double anl_get_next_S(double t, int n, double *stateptr);
+
#endif /* VACUUM_H */