Peter Eisentraut wrote:
> The function current_setting returns 'unset' if a parameter is not
> set.
> This is not documented,
It is documented to produce equivalent output as the sql SHOW command.
Although the reference page for SHOW does not specifically address
parameters that are not set, it does have one in the example at the bottom.
> so I guess this just arose out of the implementation, or is this intentional?
The implementation was based on infrastructure already existing for
SHOW, so this is an artifact of that implementation. In the case of a
string variable, _ShowOption() returns "unset" when a parameter is not
set, and that gets passed all the way back.
Joe