Can I run CockroachDB as a drop-in replacement for Postgres? #127648
Unanswered
fwoodruff-ab
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a vanilla docker-compose.yml file which runs some services against Postgres. Those services use github.com/jackc/pgx/v4 (among other Golang libraries) to talk to those databases, running migrations and then later making modifications and queries.
This link suggests that it might be possible to swap CockroachDB for Postgres without changing the application code.
If I swap
postgres:15
forcockroachdb/cockroach:v24.1.2
, what other changes should I make so that, as closely as possible, the application code still runs?Notably, I would like to connect to CockroachDB without TLS but with password login.
Beta Was this translation helpful? Give feedback.
All reactions