Skip to main content

VALUE_MAX_LEN

Constant VALUE_MAX_LEN 

Source
pub const VALUE_MAX_LEN: usize = 4096;
Expand description

Maximum byte length of a validated PostgreSQL parameter value.

PG itself does not impose a documented length cap; this is a sanity-check safely above any realistic value (shared_preload_libraries with a long extension list is well under 1 KB) and well below kernel argv per-string limits.

Keep the panic message in Value::from_static_or_panic in sync if this changes.