Put back a backwards-compatible version of sampling support functions.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/misc/sampling.c | modified | +45 −1 |
| src/include/commands/vacuum.h | modified | +5 −0 |
| src/include/utils/sampling.h | modified | +13 −3 |