You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
144049: sql/crdb_internal: rename alter_statements to fk_statements r=rafiss a=littlestar642
Fixes: #143762
Update name of `alter_statements` column to `fk_statements` when executing below sql
Previous
```
SELECT alter_statements FROM crdb_internal.create_statements;
```
Current
```
SELECT fk_statements FROM crdb_internal.create_statements;
```
144508: sql: support partial index schema changes in LDR tables using the SQL writer r=msbutler a=msbutler
If logical_replication.consumer.immediate_mode_writer is set to legacy-kv, we
disallow schema changes related to partial indexes on table with LDR jobs
running on them.
Note that if a user runs LDR in the undocumented validated mode, which always
uses the sql writer, but has this setting equal 'legacy-kv', partial index
schema changes will still fail. This is a papercuit i'm willing to deal with.
Epic: none
Release note (ops change): partial index schema changes are supported in
replicating tables when logical_replication.consumer.immediate_mode_writer is
not set to legacy-kv
Co-authored-by: avinash jaiswal <[email protected]>
Co-authored-by: Michael Butler <[email protected]>
dbA.ExpectErr(t, "cannot create logical replication stream: table foo has a partial index idx", "CREATE LOGICAL REPLICATION STREAM FROM TABLE foo ON $1 INTO TABLE foo", dbBURL.String())
2430
+
2431
+
// With the kv writer set, we can no longer create partial indexes on the replicating tables.
2432
+
dbA.ExpectErr(t, " this schema change is disallowed on table foo because it is referenced by one or more logical replication jobs", "CREATE INDEX idx3 ON a.foo (pi) WHERE pk = 0")
2433
+
dbB.ExpectErr(t, " this schema change is disallowed on table foo because it is referenced by one or more logical replication jobs", "CREATE INDEX idx3 ON b.foo (pi) WHERE pk = 0")
2426
2434
}
2427
2435
2428
2436
// TestLogicalReplicationCreationChecks verifies that we check that the table
0 commit comments