Re: "Relation does not exist" error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tuckheng <Tuckheng(at)vads(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: "Relation does not exist" error
Date: 2001-11-08 14:34:38
Message-ID: 16793.1005230078@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tuckheng <Tuckheng(at)vads(dot)com> writes:
> I encountered this error when trying to run a SELECT statement from within a
> Perl program. Would appreciate if someone could help shed some light on what
> may be causing this or how it can be resolved.

ORDER BY on a UNION result can only refer to column names of the UNION
output columns. Lose the "p." and "s." in the ORDER BY and you'll be
fine.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Gould 2001-11-08 14:52:00 Re: OID's as Primary Keys
Previous Message Tom Lane 2001-11-08 14:31:30 Re: OID's as Primary Keys