[auto-bump] [no-release-notes] dependency by jycor#2712
Conversation
|
Footnotes
|
Ito Test Report ✅10 test cases ran. 1 additional finding, 9 passed. Across 10 executed tests, 9 passed and 1 failed, with successful validation of startup safety and concurrency guards, authorization behavior (including permission-denied enforcement, fail-open schema-resolution handling, and malformed-identifier rejection), row-type DDL protections under concurrent activity, and replication startup/handoff behavior with deterministic outcomes and no confirmed corruption. ✅ Passed (9)ℹ️ Additional Findings (1)
🟠 First boot misses postgres default database
Relevant code:
func createDefaultDatabase(cfg doltservercfg.ServerConfig) error {
user, password := auth.GetSuperUserAndPassword()
dbName := getDefaultDatabaseName(user)
dsn := fmt.Sprintf("postgres://%s:%s@localhost:%d", user, password, cfg.Port())
// ...
_, err = conn.Exec(ctx, fmt.Sprintf("CREATE DATABASE %s;", dbName))
return err
}
func getDefaultDatabaseName(userName string) string {
defaultDbName := os.Getenv(DefaultDbNameEnvVar)
if defaultDbName != "" {
return defaultDbName
}
return userName
}
replicationDns := fmt.Sprintf(
"postgres://%s:%s@localhost:%d/%s",
ssCfg.User(),
ssCfg.Password(),
ssCfg.Port(),
"postgres", // TODO: this needs to come from config
)Commit: Tell us how we did: Give Ito Feedback |
|
This PR has been superseded by #2713 |







☕ An Automated Dependency Version Bump PR 👑
Initial Changes
The changes contained in this PR were produced by `go get`ing the dependency.
```bash
go get github.com/dolthub/[dependency]/go@[commit]
```