-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
CREATE EXTENSION
just fails when doing a single change
#392
Comments
I wonder if it’s the same problem described here: #328 I don’t believe we’ve put out a new release with the fix yet. Maybe you can try installing cargo-pgx from our “develop” branch and see if that gets ya moving forward? |
Only using
Once I also moved
doing a second run (nothing changed) then results in:
|
this is a bit odd, but better than it was before |
That’s why it’s the “develop” branch! These M1s have been finicky. I’ll have mine in a few weeks to use daily and @Hoverbear has one for testing. Guess the stack trace is just a result of in-development code. As far as ALTER EXTENSION, you’d have to write the upgrade scripts manually right now. DROP/CREATE is only necessary if your schema changed, as in you added a new function or something. We’ll have a new release out in a week or so and will make sure things are good on the M1. |
I gotchu, no that's totally fine^^ I expected as much, but just wanted to relay the errors/behavior so that someone knows this has been happening. :D I thought DROP/CREATE would have been necessary on every change, but that's a relief! Thanks for all the hard work and have a great weekend. |
naw. By default Postgres loads the extension per backend whenever something from it is first used. |
@indietyp Try using |
Using this very simple lib.rs (using
serde
,serde_json
andvalico
) altering a single line of code and then either executingALTER EXTENSION <extension> UPDATE
orDROP EXTENSION <extension>; CREATE EXTENSION <extension>;
both fail.I tried multiple things without success and would love if someone could help me figure this out. I am very new to
pgx
, but so far the library is lovely. Great work!lib.rs
~/.pgx/14.log
The issue is solved whenever I do a clean install using
cargo pgx init
.OS: macOS
CPU: M1 Max
Memory: 64Gb
Rust Edition: 2021
Toolchain: stable-aarch64-apple-darwin
Thanks in advance!
The text was updated successfully, but these errors were encountered: