Re: [HELP] Attribute has an unknown type/is repeated

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HELP] Attribute has an unknown type/is repeated
Дата
Msg-id 3054.993566241@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HELP] Attribute has an unknown type/is repeated  ("Itzinger, Oskar" <oitzinger@opec.org>)
Список pgsql-general
"Itzinger, Oskar" <oitzinger@opec.org> writes:
> 1. What exactly is the type of colx in Case 1?
> 2. Why can't PostgreSQL infer that very same type for colx in Case 2?

The || operator is known to yield a result of type "text".  But when the
sum total of the known information is

    '' AS colx

there is no basis at all for assigning a specific type, and it remains
"unknown".

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: "Ian Harding"
Дата:
Сообщение: Re: Confused about SHMMAX
Следующее
От: ÀîÁ¢ÐÂ
Дата:
Сообщение: Re: Re: index on a box