0.4.1
This release includes UX improvements with cargo pgx schema, and performance improvements for Internal and Aggregate.
Upgrading
Please make sure to run cargo install cargo-pgx --version 0.4.1 and update all the pgx extension Cargo.toml's pgx* versions to 0.4.1.
What's Changed
Internal::get_or_insert_default, and similar functions were doing some unnecessary allocations. Removing them improves the speed of these functions significantly. (#488)- We now
#[inline(always)]onpgx::Aggregate's memory context swapping code. (#487) cargo pgx statuswill by default show the status of allpgxmanaged PostgreSQLs, instead of the default if one exists in theCargo.toml. (#505)cargo pgx schemawas producing color codes outside of the normalxterm-256colorcodes, this produced unpleasant output on some terminals (notably Mac'sterminal.app). When the output ofcargo pgx schemais a TTY it will now producexterm-256colorstyle codes, and use the user's terminal colors. This removes the need to specify if the user was using a light theme. (#507)- If
cargo pgx testexperiences acargorelated error, we don't report a full eyre error, we just report the cargo errors. (#491) - Documentation fixes. (#496)