Re: DEFAULT of domain ignored in plpgsql (8.4.1) - Mailing list pgsql-hackers

From Florian G. Pflug
Subject Re: DEFAULT of domain ignored in plpgsql (8.4.1)
Date
Msg-id 4B072F71.8050301@phlo.org
Whole thread Raw
In response to Re: DEFAULT of domain ignored in plpgsql (8.4.1)  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: DEFAULT of domain ignored in plpgsql (8.4.1)
List pgsql-hackers
Tom Lane wrote:
> "Florian G. Pflug" <fgp@phlo.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.

Hm, must have missed that paragraph :-(. Sorry for that.

Would a patch that changes that have any chance of being accepted? Or is
the gain (not having to repeat the DEFAULT clause, and being able to
maintain it at one place instead of many) considered too small compared
to the risk of breaking existing code?

best regards,
Florian Pflug

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [INTERFACES] ecpg & 8.3 -> 8.4 migration
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Summary and Plan for Hot Standby