[BUG] Foreign keys between tables in separate schemas fail
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Riproduci il piano CLI DSN-to-DSN con tabelle di chiavi esterne in schemi separati, includendo entrambi gli schemi nel diff. Traccia la generazione SQL delle chiavi esterne del piano; il lavoro è completato quando reftable è qualificata con lo schema e l’SQL generato viene eseguito correttamente sul database di destinazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug**
Plan generation for foreign keys between tables in separate schemas fails. The produced plan does not schema-qualify the reftable, and the statement fails with a table not found error. Several of these errors turned up the output of a single plan run.
Expected behavior**
Produce SQL that schema-qualifies the reftable of a foreign key, (at least if it lies in a separate schema?).
To Reproduce
Start with a DB that contains a table with a foreign key reftable in a separate schema than the table itself. Generate a plan against another DB lacking that foreign key. Note that the plan does not schema-qualify the reftable.
Execute the SQL from the plan and note that it fails with an error about a missing table.
Context
This was with pg-schema-diff v0.9.0, running from the CLI against Amazon Aurora PG15, and the plan output was redirected to a file and later executed.
Plan validation was off, and the diffing was DSN to DSN. A subset of individual schemas was included, with both relevant schemas named for inclusion in the diff.
- Lingua principale
- Go
- Stelle
- 896
- Fork
- 85
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stripe/pg-schema-diff
-
[BUG] "prohibited" misspelled as "prohited"Forse già presa @Hashim1999164 l’ha presa 93 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
stripe/pg-schema-diff#302 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
stripe/pg-schema-diff#283 · 1 reazione ·
-
[BUG] Dropping a column referenced only by an index predicate or expression failsForse già presa @xishell l’ha presa 31 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
stripe/pg-schema-diff#316 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 50/100
stripe/pg-schema-diff#301 ·
-
Is the repo active?Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 15/100
stripe/pg-schema-diff#289 · 7 reazioni ·
Tutte le issue di stripe/pg-schema-diff
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 65/100
influxdata/telegraf#20031 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
OneBusAway/maglev#1914 ·
I maintainer di solito rispondono entro 2 giorni
-
bug needs-acceptance wg/data-plane-networking
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
vllm-project/semantic-router#5680 ·
I maintainer di solito rispondono entro 2 giorni
-
documentation needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
go good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno