-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
I get 'undefined symbol: __pgrx_marker' while testing helloworld_fdw #224
Comments
How exactly did you run it? Do you have the code somewhere in a |
random_fdw.zip
|
The zip file is empty. Can you create a repo on GH share that? |
Several points may help to resolve this issue
I've tested using above points and have no issues. Below are my steps: # install and initialise pgrx
cargo install --force --locked cargo-pgrx --version 0.11.2
cargo pgrx init --pg14 download --pg15 download
# create project
cargo pgrx new myfdw
cd myfdw
# copy helloworld_fdw.rs or create any your fdw code on src/
# and modify Cargo.toml like below
# test run
cargo pgrx run Below is my [package]
name = "myfdw"
version = "0.0.0"
edition = "2021"
[lib]
crate-type = ["cdylib"]
[features]
default = ["pg15"]
pg15 = ["pgrx/pg15", "pgrx-tests/pg15" ]
pg_test = []
[dependencies]
pgrx = "=0.11.2"
supabase-wrappers = { git = "https://github.com/supabase/wrappers.git", branch = "main" }
[dev-dependencies]
pgrx-tests = "=0.11.2"
[profile.dev]
panic = "unwind"
[profile.release]
panic = "unwind"
opt-level = 3
lto = "fat"
codegen-units = 1 |
I think the critical step is
Without the above, the extension won't work. I saw the exact same error when I omitted # 3. In short, follow @burmecia's steps above and it should work. |
[supabase#193] 193 workarounds
If I clone the source code from github and build it, it can work without any error.
I failed to run it with error 'undefined symbol: __pgrx_marker"' if I create a new project with the same code of helloworld_fdw.
below is my Cargo.toml:
I tested pgrx 0.11.0 + tag 0.2.0 and pgrx0.11.2+main branch. the results are the same.
the detailed error message are:
the rust version is:
rustc 1.75.0 (82e1608df 2023-12-21)
The text was updated successfully, but these errors were encountered: