diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-01-15 11:02:09 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2020-01-15 11:14:39 -0300 |
commit | a166d408eb0b35023c169e765f4664c3b114b52e (patch) | |
tree | 1c432fec482f436cb6611988bff055ff5e27015d /src/include/utils/sampling.h | |
parent | 16a4a3d59cd5574fdc697ea16ef5692ce34c54d5 (diff) | |
download | postgresql-a166d408eb0b35023c169e765f4664c3b114b52e.tar.gz postgresql-a166d408eb0b35023c169e765f4664c3b114b52e.zip |
Report progress of ANALYZE commands
This uses the progress reporting infrastructure added by c16dc1aca5e0,
adding support for ANALYZE.
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Co-authored-by: Tatsuro Yamada <tatsuro.yamada.tf@nttcom.co.jp>
Reviewed-by: Julien Rouhaud, Robert Haas, Anthony Nowocien, Kyotaro Horiguchi,
Vignesh C, Amit Langote
Diffstat (limited to 'src/include/utils/sampling.h')
-rw-r--r-- | src/include/utils/sampling.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/utils/sampling.h b/src/include/utils/sampling.h index a84914b968a..74646846b20 100644 --- a/src/include/utils/sampling.h +++ b/src/include/utils/sampling.h @@ -37,8 +37,8 @@ typedef struct typedef BlockSamplerData *BlockSampler; -extern void BlockSampler_Init(BlockSampler bs, BlockNumber nblocks, - int samplesize, long randseed); +extern BlockNumber BlockSampler_Init(BlockSampler bs, BlockNumber nblocks, + int samplesize, long randseed); extern bool BlockSampler_HasMore(BlockSampler bs); extern BlockNumber BlockSampler_Next(BlockSampler bs); |