mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Remove table AM callback scan_bitmap_next_block
After pushing the bitmap iterator into table-AM specific code (as part
of making bitmap heap scan use the read stream API in 2b73a8cd33),
scan_bitmap_next_block() no longer returns the current block number.
Since scan_bitmap_next_block() isn't returning any relevant information
to bitmap table scan code, it makes more sense to get rid of it.
Now, bitmap table scan code only calls table_scan_bitmap_next_tuple(),
and the heap AM implementation of scan_bitmap_next_block() is a local
helper in heapam_handler.c.
Reviewed-by: Tomas Vondra <tomas@vondra.me>
Discussion: https://postgr.es/m/flat/CAAKRu_ZwCwWFeL_H3ia26bP2e7HiKLWt0ZmGXPVwPO6uXq0vaA%40mail.gmail.com
This commit is contained in:
@@ -91,9 +91,6 @@ GetTableAmRoutine(Oid amhandler)
|
||||
|
||||
Assert(routine->relation_estimate_size != NULL);
|
||||
|
||||
/* optional, but one callback implies presence of the other */
|
||||
Assert((routine->scan_bitmap_next_block == NULL) ==
|
||||
(routine->scan_bitmap_next_tuple == NULL));
|
||||
Assert(routine->scan_sample_next_block != NULL);
|
||||
Assert(routine->scan_sample_next_tuple != NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user