Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prepare our 0.3.0 release.
Notes:
v0.3.0
Upgrading
Please make sure to run
cargo install cargo-pgx
and update all thepgx
extensionCargo.toml
'spgx*
versions to0.3.0
.We do not expect users to require additional actions on upgrade, but we recommend any usage of the
pgxsql
be converted to use the newsql = "some string"
available on the macros. We expectpgxsql
support to be removed in the future, before 1.0.0.Features
pgx::Aggregate
andpgx::pg_aggregate
, or theaggregate
example to learn more. (First Class Aggregate Support #230, Refine Aggregate docs #406, Tidy a missing newline in some aggregate output #418, Support Ordered Sets better #428)cargo pgx
has a new coat of paint as Clap was upgraded to 3.0. (Upgrade deps (and clap 3) #368)cargo pgx
will now do some validation that it is being run on a crate which uses a compatiblepgx
version. (Validate cargo-pgx and pgx crates are compatible using semver #389)cargo pgx
and thesql-generator
have more observability and improved error handling. Try exploring--verbose
! (Eyre and tracing #372)cargo pgx
related commands now treat thepgversion
as optional if somepgversion
is part of the extension'sdefault
features. (Make the pgversion optional when set in features. #402)#[no_std]
. Whilepgx
still usesstd
, this can be a partial measure to limiting what an extension (or, for exampleplrust
) might be able to do on a system. (support a pgx extension compiling with no_std #385)pgx::Internal
has an expanded API likeget_or_insert_default()
. (Expand pgx::Internal API #419)pgx
related attribute macros now supportsql = false
,sql = "string"
, orsql = some::func::path
to configure how they generate SQL. (feat: extend sql generation via to_sql attribute #410, Add sql anchor comments #422)lib.buildPgxExtension
in theflake.nix
. (nix: Providelib
in flakes with buildPgxExtension #358, nix: Allow additionalFeatures in buildPgxExtension #360, Nix: tests use the correct schema #361)Other changes
PgBox
acquirednew()
andnew_in_context()
functions. (Add PgBox::new #421)pg_sys::TimestampTz
type alias now has an SQL mapping. (Add type mapping for 'pg_sys::TimestampTz' to 'timestamp with time zone' #400)pgx::memcxt::PgMemoryContexts
related closures now take aFnOnce
, this makes them considerably more flexible as they can capture their environment. (Relax memctx closures from Fn to FnOnce #390)pgx-pg-sys
should hopefully be able to build on Docs.rs! (Allow pgx-pg-sys docs to build on docs.rs #386)default!()
macros can now handle negative values. (63f5e6e)cargo pgx schema --skip-build
flag uses existing artifacts. (feat: Supportcargo pgx schema --skip-build
#255)@CARGO_VERSION@
in the.control
file is now supported in the SQL generation. (Correctly transform control file version number in sql entity graph #409)cargo pgx init
. (https://github.com/zombodb/pgx/pull/415)\PGUSER
set, it was previously possible to encounter some issues duringcargo pgx
use. (Disable PGUSER env when checking for existing database #380)x86_64-unknown-linux-musl
andaarch64-unknown-linux-musl
users, schema generation is now supported. (Fix schema generation on alpine #362, Update cargo config for all examples #365)debug
anddoCheck
are now supported. (Nix debug option #349, nix: inherit doCheck #401)glibc
was broken, it's no longer include it on Mac. (Nix repair darwin compat #335)cargo pgx
will now handle removing libraries when needed due to code-signing. (Remove old .so before copying new one into place #333, Fix install copy issues #420)