Re: Show type in psql SELECT
| От | Craig Ringer |
|---|---|
| Тема | Re: Show type in psql SELECT |
| Дата | |
| Msg-id | 512ABAA9.4020705@2ndquadrant.com обсуждение исходный текст |
| Ответ на | Re: Show type in psql SELECT (Mike Toews <mwtoews@gmail.com>) |
| Список | pgsql-hackers |
On 02/25/2013 08:54 AM, Mike Toews wrote:
On 25 February 2013 12:48, Craig Ringer <craig@2ndquadrant.com> wrote:
> However, the thing I want most couldn't be provided by this patch
> because it seems to be a deeper server limitation: the ability to get
> typmod data from calculation results like
>
> NUMERIC(8,3) '11.131' + NUMERIC(8,3) '12.123'
But is the derived typmod always available?
No, it usually isn't. I doubt this patch can provide that information because the server doesn't keep track of derived typmods through a lot of internal operations. If it can I'll jump for joy.
I was just pointing out that you can already get something similar to this patch's effects with pg_typeof . It's a nice convenience not to have to wrap everything in pg_typeof, though, and this patch seems useful.
-- Craig Ringer http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services
В списке pgsql-hackers по дате отправления: