Re: DEFAULT of domain ignored in plpgsql (8.4.1)

From: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Postgresql-Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: DEFAULT of domain ignored in plpgsql (8.4.1)
Date: 2009-11-21 00:08:17
Message-ID: 4B072F71.8050301@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> "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.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Emmanuel Cecchet 2009-11-21 00:32:58 Re: Partitioning option for COPY
Previous Message Tom Lane 2009-11-21 00:02:11 Re: ecpg & 8.3 -> 8.4 migration