Put back a backwards-compatible version of sampling support functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 May 2015 22:34:37 +0000 (18:34 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 May 2015 22:34:37 +0000 (18:34 -0400)
commit4db485e75b9672126963ae4052b50f473b30a097
treec82504c5924d228715402e03b3dfbb2a72eed0bb
parentf5916bb7b53f8a77c95c00c5b287659958891178
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.
src/backend/utils/misc/sampling.c
src/include/commands/vacuum.h
src/include/utils/sampling.h