From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch> |
Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: UNION not working... why? |
Date: | 2007-12-14 07:00:04 |
Message-ID: | 28716.1197615604@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch> writes:
> But now, I have another problem in this context. If I use text in the
> SELECT statement (so, that the final output gives me the name of the
> selected variables, plus the year and the value) than I get this
> error message: ERROR: failed to find conversion function from
> "unknown" to text
[squint...] Try casting those literals to text explicitly, ie
SELECT 'pop_density'::text AS name. There's some code in there
that makes this work for simple UNION cases, but maybe not so much
for select with a left join and order by and limit inside a union :-(
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Stefan Schwarzer | 2007-12-14 07:07:41 | Re: UNION not working... why? |
Previous Message | Tom Lane | 2007-12-14 06:54:01 | Re: Need to find out which process is hitting hda |