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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Itzinger, Oskar" <oitzinger(at)opec(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [HELP] Attribute has an unknown type/is repeated
Date: 2001-06-26 14:37:21
Message-ID: 3054.993566241@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Itzinger, Oskar" <oitzinger(at)opec(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Wheeler 2001-06-26 14:41:29 Re: More Red Hat information
Previous Message ÀîÁ¢Ð 2001-06-26 14:35:00 Re: Re: index on a box