pgcentralfoundation / pgrx

Build Postgres Extensions with Rust!
Other
3.7k stars 249 forks source link

fix segfault with empty `numrange` during `from_datum()` #1918

Closed eeeebbbbrrrr closed 1 month ago

eeeebbbbrrrr commented 1 month ago

An empty numrange such as '[10.5, 10.5)'::numrange would lead to a segfault during a Range<AnyNumeric>::from_datum().

This also hardcodes CI to runs-on: ubuntu-22.04 due to the upgrade in -latest (https://github.com/actions/runner-images/issues/10636) that I don't have the patience to work out today.