-
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
sql: Ecto compatibility #33441
Comments
I believe support for the timestamp precision has been reverted. Discussion at #32098 (comment). |
@DavidOliver this will be in 20.1 and you can see it in this beta (https://www.cockroachlabs.com/docs/releases/v20.1.0-beta.2.html) |
Zendesk ticket #5257 has been linked to this issue. |
#32917 is resolved. |
note that named SAVEPOINT support will also be included in 20.1 |
It should be noted that with CDB 20.1 all the major issues have been fixed but one as soon as you are running tests. This is fixed on master but it has yet to be released. Additionally:
|
#50858 is closed and the fix will also be included in the next 20.1 release. Thanks for filing those two new issues! |
I found a problem when creating schemas with Ecto.Migration. This code just hangs after the execution and the next migration never runs. I'm testing on 20.2 defmodule ProcessosApi.Repo.Migrations.CreateMySchema do
use Ecto.Migration
def change do
execute "CREATE SCHEMA myschema"
end
end I don't know if this is the correct place to report this. If not just lemme know and I'll move to the correct place. Thanks in advance! |
In light of the upcoming webinar - what are the plans for getting proper compatibility with Ecto? |
We’ve been running in production for a number of clients for a while (+ 6 months) now (erlang solutions). Using the Postgres driver and can’t think of any issues. Might be time to close this issue out unless there’s something we’ve been missing. Migrations issues etc are gone now. |
Thanks for feedback @bryanhuntesl |
@escobera won't you mind sharing your connection settings, please? I have few problems: The first one is with SSL - I’m running into an
The second one with specifying a cluster name? If I disable an SSL I’m getting following error I took connection params from “Connection parameters” tab and database value there seems to be a combination from cluster name and a database name |
@bryanhuntesl given that I ignore SSL host validation and create a database by hand I'm encountering a problem when running migrations:
Here is a reproduction of this query from the cockroach shell
|
@lessless to configure with SSL: database: "superfun-superfun-448.defaultdb",
ssl: true,
ssl_opts: [
cacertfile: "cc-ca.crt"
] More info: https://hexdocs.pm/postgrex/Postgrex.html#start_link/1-ssl-client-authentication To run migrations, migration_lock: false More info: https://hexdocs.pm/ecto_sql/Ecto.Migration.html#module-repo-configuration |
I confirm getting the error that @lessless mentioned above:
Running migrations used to work fine - this started happening after an upgrade from |
There's an ecto flag to disable table when migrating, it's only needed for
mysql as DDL changes aren't transactional on that DB.
…On Thu, 21 Oct 2021, 16:03 Radek Szymczyszyn, ***@***.***> wrote:
I confirm getting the error that @lessless <https://github.com/lessless>
mentioned above:
** (MatchError) no match of right hand side value: {:error, %Postgrex.Error{connection_id: 0, message: nil, postgres: %{code: :syntax_error, detail: "source SQL:\nLOCK TABLE \"schema_migrations\" IN SHARE UPDATE EXCLUSIVE MODE\n^", file: "lexer.go", line: "215", message: "at or near \"lock\": syntax error", pg_code: "42601", routine: "Error", severity: "ERROR"}, query: "LOCK TABLE \"schema_migrations\" IN SHARE UPDATE EXCLUSIVE MODE"}}
Running migrations used to work fine - this started happening after an
upgrade from ecto_sql 3.5.4 to 3.7.1.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33441 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHUCR5TFJBPER6Q3FKD22U3UIATTJANCNFSM4GM4D4PQ>
.
|
@erszcz As @timothyvanderaerden mentioned, CockroachDB does not support table locking. It seems like Can you set |
Thanks @bryanhuntesl and @rafiss! Indeed, |
Hey, I am dabbling with moving to cockroachDB. When I am running some historical migrations, this seems to not work:
The error:
Are these not supported? Or how would I need to rewrite them? These work on regular postgres. |
This is a list of issues found with Ecto (Elixir).
Note that most of these are not required to get Ecto working, but each of these can be a potential roadblock when migrating an existing app to cockroach.
Jira issue: CRDB-4690
The text was updated successfully, but these errors were encountered: