Skip to main content

Module definition_output

Module definition_output 

Source
Expand description

Source bodies, estimates and saved configuration in routine definitions.

Functions§

configuration_clauses
Render ordered saved SET clauses, each with its leading space and trailing newline. Quoted-list parameters preserve element case and length; string literals follow standard_conforming_strings without adding an E prefix.
estimate
Render a catalog float4 estimate with the six significant digits of PostgreSQL’s %g, including its exponent spelling and special values.
source_clause
Dollar-quote a source body as PostgreSQL does, extending the delimiter when its prefix occurs anywhere in the unchanged source. The caller supplies the final newline.