Thomas Zhang
Thomas Zhang
For indexes containing more than one column, `SCRUB` incorrectly reports an `index_key_decoding_error` during a `PHYSICAL` check table scan whenever it detects a value in a column that is earlier in...
The new SCRUB roachtests `scrub/{all-checks,index-only}/tpcc-1000`, which run a series of SCRUB checks on a cluster running TPCC at the same time, have been timing out because the SCRUB query hangs....
Currently `VALIDATE CONSTRAINT` for foreign keys performs a hash join on the source and target columns, which can be extremely slow. `SCRUB` has a much faster implementation of fk validation...
Currently, check constraints and FK constraints are added in the `Unvalidated` state and not assumed to hold for existing rows in the table. Constraints can be validated later using `VALIDATE...
Currently, when a constraint is added, the constraint is not validated for existing rows (see #33550). Postgres's behavior (https://www.postgresql.org/docs/11/sql-altertable.html) is to validate newly added constraints for existing rows by default,...
Currently, adding a column and adding a check constraint on that column within the same transaction is not supported: ``` [email protected]:60903/defaultdb> BEGIN; -> ALTER TABLE t ADD COLUMN b INT...
Some roachtests that involve running tpcc-1000 are failing the tpcc checks at the end, e.g.: ``` I190114 15:41:47.835436 1 workload/tpcc/tpcc.go:290 check 3.3.2.1 took 162.495391ms Error: check failed: 3.3.2.1: 12 rows...
This issue is for tracking all work related to #32118. The overall goal is for constraint validation on existing rows of a table (which can take a long time) to...
We need a roachtest for the performance and correctness of foreign key validation. It would be straightforward to add a validation step to an existing roachtest (possibly the `schemachange` one),...
Minimal example: ``` > CREATE TABLE t (a INT, b INT AS (a + 1) STORED, CONSTRAINT ck CHECK (b > 0)); > UPDATE t SET a = 123 WHERE...