The read-only CHECK-constraint optimization of [34ddf02d3d21151b] inhibits the
commit1b8134f5e49cf36b3a5388e076a4b57e140240fa
authorD. Richard Hipp <drh@hwaci.com>
Tue, 9 Apr 2024 13:57:27 +0000 (9 13:57 +0000)
committerD. Richard Hipp <drh@hwaci.com>
Tue, 9 Apr 2024 13:57:27 +0000 (9 13:57 +0000)
tree5067ff85ede815ca7ca987a2feea2aaef07ee68d
parent7424a6b1eec48d24ed9bb2721d0eafd7ebec4ca2
The read-only CHECK-constraint optimization of [34ddf02d3d21151b] inhibits the
xfer optimization for tables with CHECK constraints.  However, the xfer
optimization is required for correct operation of VACUUM INTO on tables that
contain generated columns. Fix this by ignoring CHECK constraints when
qualifying the xfer optimization while running VACUUM.  Problem reported by
[forum:/forumpost/3ec177d68fe7fa2c|forum post 3ec177d68fe7fa2c].
src/insert.c
test/vacuum-into.test