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-pgxand update all thepgxextensionCargo.toml'spgx*versions to0.3.0.We do not expect users to require additional actions on upgrade, but we recommend any usage of the
pgxsqlbe converted to use the newsql = "some string"available on the macros. We expectpgxsqlsupport to be removed in the future, before 1.0.0.Features
pgx::Aggregateandpgx::pg_aggregate, or theaggregateexample 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 pgxhas a new coat of paint as Clap was upgraded to 3.0. (Upgrade deps (and clap 3) #368)cargo pgxwill now do some validation that it is being run on a crate which uses a compatiblepgxversion. (Validate cargo-pgx and pgx crates are compatible using semver #389)cargo pgxand thesql-generatorhave more observability and improved error handling. Try exploring--verbose! (Eyre and tracing #372)cargo pgxrelated commands now treat thepgversionas optional if somepgversionis part of the extension'sdefaultfeatures. (Make the pgversion optional when set in features. #402)#[no_std]. Whilepgxstill 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::Internalhas an expanded API likeget_or_insert_default(). (Expand pgx::Internal API #419)pgxrelated attribute macros now supportsql = false,sql = "string", orsql = some::func::pathto configure how they generate SQL. (feat: extend sql generation via to_sql attribute #410, Add sql anchor comments #422)lib.buildPgxExtensionin theflake.nix. (nix: Providelibin flakes with buildPgxExtension #358, nix: Allow additionalFeatures in buildPgxExtension #360, Nix: tests use the correct schema #361)Other changes
PgBoxacquirednew()andnew_in_context()functions. (Add PgBox::new #421)pg_sys::TimestampTztype alias now has an SQL mapping. (Add type mapping for 'pg_sys::TimestampTz' to 'timestamp with time zone' #400)pgx::memcxt::PgMemoryContextsrelated 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-sysshould 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-buildflag uses existing artifacts. (feat: Supportcargo pgx schema --skip-build#255)@CARGO_VERSION@in the.controlfile 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)\PGUSERset, it was previously possible to encounter some issues duringcargo pgxuse. (Disable PGUSER env when checking for existing database #380)x86_64-unknown-linux-muslandaarch64-unknown-linux-muslusers, schema generation is now supported. (Fix schema generation on alpine #362, Update cargo config for all examples #365)debuganddoCheckare now supported. (Nix debug option #349, nix: inherit doCheck #401)glibcwas broken, it's no longer include it on Mac. (Nix repair darwin compat #335)cargo pgxwill 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)