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

From Tom Lane
Subject Re: DEFAULT of domain ignored in plpgsql (8.4.1)
Date
Msg-id 14855.1258818734@sss.pgh.pa.us
Whole thread Raw
In response to Re: DEFAULT of domain ignored in plpgsql (8.4.1)  (Josh Berkus <josh@agliodbs.com>)
Responses Re: DEFAULT of domain ignored in plpgsql (8.4.1)
List pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
> (2) this change, while very useful, does change what had been a simple
> rule ("All variables are NULL unless specifically set otherwise") into a
> conditional one ("All variables are NULL unless set otherwise OR unless
> they are declared as domain types with defaults").  Do people feel that
> the new behavior would be sufficiently intuitive to avoid user confusion?

I'm inclined to leave it alone.  It complicates the mental model, and
frankly attaching defaults to domains was not one of the SQL committee's
better ideas anyway.  It's *fundamentally* non-orthogonal.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Proposal: USING clause for DO statement
Next
From: Gurjeet Singh
Date:
Subject: Re: DEFAULT of domain ignored in plpgsql (8.4.1)