-
Notifications
You must be signed in to change notification settings - Fork 44
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: tcdi/plrust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.6
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: tcdi/plrust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.2.7
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 9 commits
- 15 files changed
- 3 contributors
Commits on Sep 19, 2023
-
Migrates aarch64 CI runners to Ubuntu (#385)
Ubuntu generally does not require workarounds or tricks to get Postgres + PL/Rust to play nicely, so we are going to move the CI runners to use Ubuntu 22.04 instead of AL2. This should make future updates a little less painless.
Configuration menu - View commit details
-
Copy full SHA for d39c3b7 - Browse repository at this point
Copy the full SHA d39c3b7View commit details
Commits on Oct 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4d21a39 - Browse repository at this point
Copy the full SHA 4d21a39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89df8aa - Browse repository at this point
Copy the full SHA 89df8aaView commit details
Commits on Oct 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7182c92 - Browse repository at this point
Copy the full SHA 7182c92View commit details -
Adds CNAME file to correct location for doc generation (#392)
Previous run was a bust. This should be the correct spot.
Configuration menu - View commit details
-
Copy full SHA for 87a9082 - Browse repository at this point
Copy the full SHA 87a9082View commit details
Commits on Nov 18, 2023
-
Revert "Update Rust to 1.73.0 (#388)"
This reverts commit 4d21a39.
Configuration menu - View commit details
-
Copy full SHA for a314012 - Browse repository at this point
Copy the full SHA a314012View commit details -
Add dynamic function call support (#390)
This adds support for pgrx' `fn_call` interface that enables calling other schema-defined functions dynamically. The only code changes, as it were, are in the `plrust-trusted-pgrx` reexport crate. The bulk of this PR is adding a little chapter to the book along with a simple unit test.
Configuration menu - View commit details
-
Copy full SHA for a068dff - Browse repository at this point
Copy the full SHA a068dffView commit details -
Welcome to PL/Rust v1.2.7. This is a small feature release that adds the ability to call user defined functions (UDFs) from a `LANGUAGE plrust` function. As a contrived example, perhaps your database has a `LANGUAGE sql` function like: ```sql CREATE OR REPLACE FUNCTION sum_array(a int[]) RETURNS int STRICT LANGUAGE sql AS $$ SELECT sum(e) FROM unnest(a) e $$; ``` And you wish to call it from a PL/Rust function. Well, now you can! ```sql CREATE OR REPLACE FUNCTION transform_array(a int[]) RETURNS int STRICT LANGUAGE plrust AS $$ // add one to every element of `a`, the input argument array, collecting into a new Vec let a = a.into_iter().map(|e| e.unwrap_or(0) + 1).collect::<Vec<_>>(); // call the existing "sum_array(int[])" function to sum the values of `a` Ok(fn_call("sum_array", &[&Arg::Value(a)])?) $$; SELECT transform_array(ARRAY[1,2,3]); transform_array ----------------- 9 (1 row) ``` PL/Rust's dynamic function call API is documented in [the book](https://tcdi.github.io/plrust). Other than also upgrading the underlying `pgrx` dependency to v0.11.0, there have been no other changes to PL/Rust since v1.2.6. This release took quite a bit longer than expected as we had a desire to upgrade it to work with Rust v1.73.0. Unfortunately, rustc v1.73.0 introduced a bug around custom lints and it took our team *weeks* to track this down and ultimately provide the Rust project a PR. Based on Rust's release schedule, that fix won't be released until v1.75.0. ### A note on Postgres 16 support Postgres 16 has added some "SIMD" code, and includes the compiler built-in header for SIMD support. This can cause compilation problems with pgrx if the host system has multiple `clang` versions installed. It's suggested a machine running PL/Rust only have one `clang` version and the matching `llvm` packages installed. It doesn't seem to matter which version, only that there's one.Configuration menu - View commit details
-
Copy full SHA for f631af3 - Browse repository at this point
Copy the full SHA f631af3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff6f46d - Browse repository at this point
Copy the full SHA ff6f46dView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.2.6...v1.2.7