Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: meta-issue to describe remaining fk migration work for 19.2 #39504

Closed
4 of 10 tasks
jordanlewis opened this issue Aug 10, 2019 · 5 comments
Closed
4 of 10 tasks

sql: meta-issue to describe remaining fk migration work for 19.2 #39504

jordanlewis opened this issue Aug 10, 2019 · 5 comments
Assignees
Labels
A-sql-fks C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) meta-issue Contains a list of several other issues.

Comments

@jordanlewis
Copy link
Member

jordanlewis commented Aug 10, 2019

Essential items that must be completed before 19.2

Known bugs that only occur in the 19.1/19.2 mixed-version state

  • DROP DATABASE CASCADE with a view referencing a table that also has an inbound FK reference doesn't work:
    create database d;
    create table d.t1 (a int primary key);
    create table d.t2 (b int references d.t1);
    create view d.v as select a from d.t1;
    drop database d cascade;
    
    pq: error resolving dependency relation ID 75: error finding foreign key on table 76 for backref table:76 index:2 name:"" validity:Validated shared_prefix_len:0 on_delete:NO_ACTION on_update:NO_ACTION match:SIMPLE
    
    This is probably related to the other pre-existing problem we discovered with corrupted references in dropped tables: sql: old, truncated descriptors can become corrupt. is this a problem? #39498
  • The crdb_internal logic tests where we create splits and then run SELECT ... FROM crdb_internal.ranges WHERE split_enforced_until IS NOT NULL are failing for some unknown reason.

Low-priority bugs

Non-essential reminders and/or improvements

  • consider removing validator fields in upgrade and synthesis after 19.2 is finalized.
  • consider stripping validator fields from protos during downgrade.
@jordanlewis jordanlewis added meta-issue Contains a list of several other issues. A-sql-fks labels Aug 10, 2019
@thoszhang
Copy link
Contributor

fix issues with validate constraint in transactions with other schema changes on the same table by making validate constraint run in the schema changer instead of the user transaction. #37712

I realized that this won't actually fix the problem in the 19.1/19.2 mixed state because moving VALIDATE CONSTRAINT to the schema changer can only happen in the fully upgraded 19.2 state. We can probably figure out how to fix this some other way, but that will have to happen after the beta goes out.

@awoods187 awoods187 added the C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) label Aug 30, 2019
@jordanlewis jordanlewis assigned otan and unassigned otan Nov 20, 2019
@jordanlewis
Copy link
Member Author

@lucy-zhang I can't remember, is there another issue open for the functionality improvements we wanted to do in 20.1?

@thoszhang
Copy link
Contributor

I don't think so, although there might be some assorted issues for individual things. I'm working on compiling a list now.

@asubiotto
Copy link
Contributor

@jordanlewis Is this meta issue still useful?

@thoszhang
Copy link
Contributor

Yeah, I'm closing this - I don't think the 19.1/19.2 bugs are high-impact enough to fix, and the only lingering bug related to VALIDATE CONSTRAINT is basically filed in #37712 already. There are also some deprecated proto fields that we can get rid of, but that's not hard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sql-fks C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) meta-issue Contains a list of several other issues.
Projects
None yet
Development

No branches or pull requests

5 participants