Skip to main content

analyzable_routine_body

Function analyzable_routine_body 

Source
pub fn analyzable_routine_body(
    resolution: &(impl RoutineResolution + ?Sized),
    function: &SQLUserFunction,
) -> Result<Option<Arc<CompiledFunctionBody>>, SQLError>
Expand description

The body a static analysis sees, or None when the body does not compile in this session. Such a routine cannot run in the session, and running it reports the compilation error, as PostgreSQL compiles a routine only when it runs; internal failures still propagate.