[PATCH] tests: verify renamed index functionality in alter_table
[PATCH] tests: verify renamed index functionality in alter_table
Hello,
Test-only change. Verified with:
- make check TESTS=alter_table # passes
- make check # all 236 tests pass
The alter_table test has a FIXME saying the index rename test should verify the index still works afterward. Currently it only checks that ALTER INDEX RENAME succeeds, not that the renamed index is usable.
This patch adds a simple verification: EXPLAIN to show the planner finds the index, and a SELECT to confirm it returns correct data. Uses the standard enable_seqscan/bitmapscan/indexonlyscan=off pattern to force a stable Index Scan across environments.
-- ALTER TABLE ... RENAME on non-table relations
-- renaming indexes (FIXME: this should probably test the index's functionality)
This patch adds a simple verification: EXPLAIN to show the planner finds the index, and a SELECT to confirm it returns correct data. Uses the standard enable_seqscan/bitmapscan/indexonlyscan=off pattern to force a stable Index Scan across environments.
Test-only change. Verified with:
- make check TESTS=alter_table # passes
- make check # all 236 tests pass
Thanks,
Dharin
Dharin
Re: [PATCH] tests: verify renamed index functionality in alter_table
От:
VASUKI M <vasukianand0119@gmail.com>
Дата:
Hi Dharin,
Thanks for addressing the FIXME in the alter_table regression test.
The change LGTM. Verifying both planner visibility via EXPLAIN and runtime correctness with a SELECT after the index rename is a solid improvement, and using the standard enable_seqscan/bitmapscan/indexonlyscan = off pattern keeps the test deterministic.
I tested the patch locally and it passes:
make check TESTS=alter_table
full make check
O/P: ok 206 + alter_table 870 ms
I don’t see any issues with the approach.
Regards,
Vasuki M,
C-DAC,Chennai
Thanks for addressing the FIXME in the alter_table regression test.
The change LGTM. Verifying both planner visibility via EXPLAIN and runtime correctness with a SELECT after the index rename is a solid improvement, and using the standard enable_seqscan/bitmapscan/indexonlyscan = off pattern keeps the test deterministic.
I tested the patch locally and it passes:
make check TESTS=alter_table
full make check
O/P: ok 206 + alter_table 870 ms
I don’t see any issues with the approach.
Regards,
Vasuki M,
C-DAC,Chennai
Re: [PATCH] tests: verify renamed index functionality in alter_table
От:
surya poondla <suryapoondla4@gmail.com>
Дата:
Hi Dharin,
Thank you for the patch.
I reviewed your patch and the changes look good.
I applied your patch and all the tests pass.
Thank you for the patch.
I reviewed your patch and the changes look good.
I applied your patch and all the tests pass.
Regards,
Surya Poondla
Re: [PATCH] tests: verify renamed index functionality in alter_table
Thanks Surya, Vasuki
I have rebased it against master and is now ready to be merged.
Thanks,
I have rebased it against master and is now ready to be merged.
Thanks,
Dharin
On Fri, Jan 16, 2026 at 4:09 AM surya poondla <suryapoondla4@gmail.com> wrote:
Hi Dharin,
Thank you for the patch.
I reviewed your patch and the changes look good.
I applied your patch and all the tests pass.
Regards,Surya Poondla