We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c536370 + 609e47f commit 6377611Copy full SHA for 6377611
pkg/sql/explain_bundle.go
@@ -894,9 +894,12 @@ func (b *stmtBundleBuilder) addEnv(ctx context.Context) {
894
for _, addFK := range addFKs {
895
fmt.Fprintf(&buf, "%s;\n", addFK)
896
}
897
- // Include FK constraints that were skipped in commented out form.
898
- for _, skipFK := range skipFKs {
899
- fmt.Fprintf(&buf, "-- %s;\n", skipFK)
+ if len(skipFKs) > 0 {
+ // Include FK constraints that were skipped in commented out form.
+ fmt.Fprintf(&buf, "-- NOTE: these FKs are active and are only commented out for ease of bundle recreation.\n--\n")
900
+ for _, skipFK := range skipFKs {
901
+ fmt.Fprintf(&buf, "-- %s;\n", skipFK)
902
+ }
903
904
905
for i := range views {
0 commit comments