X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 569ABD1B4FD; Tue, 21 Oct 2003 07:18:34 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 96756-10; Tue, 21 Oct 2003 04:18:03 -0300 (ADT) Received: from softdecc.com (proxy.softdecc.com [62.245.142.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7F9DBD1B50C; Tue, 21 Oct 2003 04:18:00 -0300 (ADT) Received: from softdecc.com (authenticated user jost@softdecc.com) by softdecc.com (MDaemon.PRO.v6.8.5.R) with ESMTP id 30-md50000000012.tmp; Tue, 21 Oct 2003 09:16:29 +0200 Message-ID: <3F94DDA0.C84A2E31@softdecc.com> Date: Tue, 21 Oct 2003 09:17:52 +0200 From: Jost Richstein Organization: SoftDeCC Software GmbH X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-general@postgresql.org, pgsql-sql@postgresql.org Subject: Re: Alias-Error References: <3F867086.DF4DEDF0@softdecc.com> <19199.1066315399@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Authenticated-Sender: jost@softdecc.com X-Spam-Processed: softdecc.com, Tue, 21 Oct 2003 09:16:29 +0200 (not processed: message from valid local sender) X-Return-Path: jrichstein@softdecc.com Reply-To: jrichstein@softdecc.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/1038 X-Sequence-Number: 51111 Ok. The exact error message is as follows: SQLException Time : Mon Oct 20 13:15:25 CEST 2003 SQLException ErrorCode : 0 SQLException SQLState : null SQLException Message : ERROR: Relation "c2" does not exist SQLException Connection: 4878867 The query is something like this: SELECT DISTINCT C2.cmc_mchap, C2.cmc_sort FROM sis_cmca, sis_cmca C2 WHERE cm_status != 'U' AND sis_cmca.cmc_name='INTERN2000' AND C2.cmc_name='INTERN2000' AND sis_cmca.cmc_mchap=C2.cmc_mchap Tom Lane wrote: > > Jost Richstein writes: > > I am running a query with alias (a self join) against > > version 7.3.4 on Suse Linux 7.3 and on FreeBSD (v5?). > > It runs fine on Linux, but produces an error on > > FreeBSD: "unknown alias C2". > > The string "unknown alias" appears nowhere in the 7.3 sources. > Are you sure you are talking to a Postgres database? > > regards, tom lane