One thing I can think of is that if the original plan has an index range scan (or even full index scan or fast full scan) on A and when A is dropped, a range scan on B could be too expensive (too many blocks) for CBO to continue to range scan. So CBO decides to use full table scan instead. This is a contrived case. But you may be able to create a case where this plan change happens.
最初由 Yong Huang 发布
[B]One thing I can think of is that if the original plan has an index range scan (or even full index scan or fast full scan) on A and when A is dropped, a range scan on B could be too expensive (too many blocks) for CBO to continue to range scan. So CBO decides to use full table scan instead. This is a contrived case. But you may be able to create a case where this plan change happens.