From: | hubert depesz lubaczewski <depesz(at)depesz(dot)com> |
---|---|
To: | Noah Misch <noah(at)leadboat(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: 9.1 - rewrite less alter table? |
Date: | 2011-03-09 07:59:24 |
Message-ID: | 20110309075923.GA25404@depesz.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Mar 08, 2011 at 10:43:55PM -0500, Noah Misch wrote:
> The patch optimizing that case foundered. We may have it in 9.2.
> The current code only kicks in when the destination has no typmod. When the
> source/destination type pair are marked "(binary coercible)" in the output of
> \dC, the optimization applies. Alternately, it applies when one of the types is
> a constraint-free domain over the other.
ah, that explains it, thanks.
> The practical use cases are a bit thin at present. The main interesting ones
> are varchar(N) -> text and conversions between domains and their base types. We
> did these first because they required a proper subset of the code needed to
> support the more-common cases.
> The applicable definition of "binary coercible" appears in our CREATE CAST
> documentation.
thanks a lot for explanation. much clearer now.
Best regards,
depesz
--
The best thing about modern society is how easy it is to avoid contact with it.
http://depesz.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Vibhor Kumar | 2011-03-09 08:28:09 | Re: procedure in db |
Previous Message | Pavel Stehule | 2011-03-09 07:46:48 | Re: procedure in db |