-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
compose: have cockroach use the "postgres" database #47768
Conversation
❌ The GitHub CI (Cockroach) build has failed on c1ddc697. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to run this test manually at some point, and I believe I ran into the problem (and others you have fixed) you're describing, but this is where I stopped.
Reviewed 1 of 1 files at r1.
Reviewable status: complete! 1 of 0 LGTMs obtained
bors r+ |
Build failed (retrying...) |
Build failed (retrying...) |
Build failed (retrying...) |
Build failed (retrying...) |
Build failed (retrying...) |
47761: util/log: fix lying comment r=andreimatei a=andreimatei SetExitFunc() claimed that a nil function was a way to reset it. It wasn't; it'd lead to a crash. Release note: None 47768: compose: have cockroach use the "postgres" database r=mjibson a=mjibson This is needed because postgres can't do cross-database queries. So, we'll just use the default "postgres" database since it exists at startup, and have cockroach create and use a database of the same name. You can't connect to a database that doesn't exist in postgres, so having postgres connect to the "defaultdb" database that cockroach uses would require changing something to first create that before it connected, and the current stuff isn't designed to do that. (There's probably a way to do it in the docker image, but this is just as easy.) Release note: None Co-authored-by: Andrei Matei <andrei@cockroachlabs.com> Co-authored-by: Matt Jibson <matt.jibson@gmail.com>
Build failed (retrying...) |
Build failed |
This is needed because postgres can't do cross-database queries. So, we'll just use the default "postgres" database since it exists at startup, and have cockroach create and use a database of the same name. You can't connect to a database that doesn't exist in postgres, so having postgres connect to the "defaultdb" database that cockroach uses would require changing something to first create that before it connected, and the current stuff isn't designed to do that. (There's probably a way to do it in the docker image, but this is just as easy.) Release note: None
bors r+ |
Build succeeded |
This is needed because postgres can't do cross-database queries. So,
we'll just use the default "postgres" database since it exists at startup,
and have cockroach create and use a database of the same name.
You can't connect to a database that doesn't exist in postgres, so having
postgres connect to the "defaultdb" database that cockroach uses would
require changing something to first create that before it connected,
and the current stuff isn't designed to do that. (There's probably a
way to do it in the docker image, but this is just as easy.)
Release note: None