Skip to content
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

Upgrading to 0.12.4 #1888

Open
jawj opened this issue Sep 27, 2024 · 0 comments
Open

Upgrading to 0.12.4 #1888

jawj opened this issue Sep 27, 2024 · 0 comments

Comments

@jawj
Copy link

jawj commented Sep 27, 2024

Based on the README I think it's is on the immediate roadmap to make this unnecessary. But in the meantime, here's a brief note for anyone having trouble with upgrading from 0.11 to 0.12.

After running cargo pgrx upgrade, I was getting this error:

error: no bin target named `pgrx_embed_myext`

It turned out I also needed to do the following:

  • Create a file src/bin/pgrx_embed.rs containing only the line ::pgrx::pgrx_embed!();.
  • In Cargo.toml:
    • Under [features], delete pg11 = ["pgrx/pg11", "pgrx-tests/pg11" ]
    • Also under [features], add pg17 = ["pgrx/pg17", "pgrx-tests/pg17" ]
    • Under [lib], Change crate-type = ["cdylib"] to crate-type = ["cdylib", "lib"]
    • Add a new section like the following, but replacing myext with the name of your extension:
[[bin]]
name = "pgrx_embed_myext"
path = "./src/bin/pgrx_embed.rs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant