PG17 uses streaming IO in analyze, fix scan_analyze_next_block function

Relevant PG commit
041b96802efa33d2bc9456f2ad946976b92b5ae1
041b96802e
pg17_kickoff
naisila 2024-07-08 16:45:54 +02:00
parent a816d1bc77
commit 646ff0ad12
No known key found for this signature in database
GPG Key ID: A824BA9862D73E6D
2 changed files with 12 additions and 2 deletions

View File

@ -1424,8 +1424,13 @@ ConditionalLockRelationWithTimeout(Relation rel, LOCKMODE lockMode, int timeout,
static bool
columnar_scan_analyze_next_block(TableScanDesc scan, BlockNumber blockno,
columnar_scan_analyze_next_block(TableScanDesc scan,
#if PG_VERSION_NUM >= PG_VERSION_17
ReadStream *stream)
#else
BlockNumber blockno,
BufferAccessStrategy bstrategy)
#endif
{
/*
* Our access method is not pages based, i.e. tuples are not confined

View File

@ -372,8 +372,13 @@ fake_vacuum(Relation onerel, VacuumParams *params,
static bool
fake_scan_analyze_next_block(TableScanDesc scan, BlockNumber blockno,
fake_scan_analyze_next_block(TableScanDesc scan,
#if PG_VERSION_NUM >= PG_VERSION_17
ReadStream *stream)
#else
BlockNumber blockno,
BufferAccessStrategy bstrategy)
#endif
{
/* we don't support analyze, so return false */
return false;