pgcentralfoundation / pgrx

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

Always panic if len of varlena exceeds the maximum #1894

Closed YohDeadfall closed 1 month ago

YohDeadfall commented 1 month ago

The documentation is fixed due to being incorrect, 4294967295 >> 2 is division by 4. And the reason of panicking is that it's promised too.

workingjubilee commented 1 month ago

@YohDeadfall There is a more memorable number that is the limit.

1 gigabyte (specifically, 1024 1024 1024).