You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
The text was updated successfully, but these errors were encountered:
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:It turned out I also needed to do the following:
src/bin/pgrx_embed.rs
containing only the line::pgrx::pgrx_embed!();
.Cargo.toml
:[features]
, deletepg11 = ["pgrx/pg11", "pgrx-tests/pg11" ]
[features]
, addpg17 = ["pgrx/pg17", "pgrx-tests/pg17" ]
[lib]
, Changecrate-type = ["cdylib"]
tocrate-type = ["cdylib", "lib"]
myext
with the name of your extension:The text was updated successfully, but these errors were encountered: