"Florian G. Pflug" <fgp(at)phlo(dot)org> writes:
> It seems that pl/pgsql ignores the DEFAULT value of domains for local
> variables.
The plpgsql documentation seems entirely clear on this:
The DEFAULT clause, if given, specifies the initial value assigned to
the variable when the block is entered. If the DEFAULT clause is not
given then the variable is initialized to the SQL null value.
regards, tom lane