Closed ShintaroOba closed 1 year ago
Can you provide details about:
@weiznich
your libpq version
I use windows, so I installed libpq from Postgres server, not from apt-get. (I installed here) Postgres version is 14.5. I'm not sure the how I can check libpq specific version.
a backtrace for the segfault
I'm afraid that I wanna show you a backtrace, but I coudln't run rust-gdb
command because of another prloblem.
I'm gonna solve this first.
Maybe segfault happens when I use gitbash for terminial. When I use Powershell, it doesn't happen.
So, it should be ok for now, but I run diesel migration run
command in powershell, the schema.rs is empty yet.
Is there anything wrong my sql and diesel.toml and things like that?
There is a known issue with the libpq version provided by enterprise db. See https://github.com/diesel-rs/diesel/discussions/2947 for details. This is likely the same underlying issue. We as diesel team cannot do anything to fix this, please report this upstream. You can verify that by using a different libpq version
So, it should be ok for now, but I run diesel migration run command in powershell, the schema.rs is empty yet. Is there anything wrong my sql and diesel.toml and things like that?
Our issue tracker is not meant for support questions. Please open a separate discussion thread for this including all necessary details. For questions like yours this needs to include a database dump of before you tried your migration, all relevant migration files and a reproductions script. Otherwise there are just too many missing information to reproduce anything.
Thank you for your comment. I'll check it out.
Closed as this seems to be an issue with this specific libpq setup.
Setup
Versions
Feature Flags
diesel setup
Problem Description
I installed diesel_cli for
cargo install diesel_cli --no-default-features --features postgres
command.I run
diesel setup
command, got a message below.After the running this command, the
migrations
folder (include up.sql and down.sql)is generated.Then, I run command below after the
diesel migration generate
command, the schema.rs is generated but it is empty. (TBL is created, but schema.rs is empty)What makes "segmantation fault" and generate empty "schema.rs" happens?
detail about my environment
docker-entrypoint-initdb.d
.)GRANT CONNECT ON DATABASE diesel TO diesel; GRANT USAGE ON SCHEMA diesel TO diesel; GRANT ALL ON ALL TABLES IN SCHEMA diesel TO diesel;