X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 60AD5D1DF59 for ; Tue, 13 Apr 2004 09:49:49 -0300 (ADT) 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 83124-04 for ; Tue, 13 Apr 2004 09:49:50 -0300 (ADT) Received: from sentinel.larc.nasa.gov (sentinel.larc.nasa.gov [128.155.10.10]) by svr1.postgresql.org (Postfix) with ESMTP id B039FD1DD17 for ; Tue, 13 Apr 2004 09:49:46 -0300 (ADT) Received: from larc.nasa.gov ([198.119.152.154] [198.119.152.154]) by sentinel.larc.nasa.gov with ESMTP; Tue, 13 Apr 2004 08:49:39 -0400 Message-Id: <407BE1E3.39509CB@larc.nasa.gov> Date: Tue, 13 Apr 2004 08:49:39 -0400 From: Laura Scott X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: relation X does not exist Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/173 X-Sequence-Number: 17548 Morning, I see lots of references to this error, but currently no fix for my situation. I am converting an INFORMIX ESQL/C system to PostgreSQL embedded C. I have hit several road blocks along the way and running out of time to complete and test this convert - so I am coming to the pros for some help. I have a table defined with only two fields. The create table statement did not have " " around the table name. I can cut and paste the query from my debug statement into psql and get the desired result set back. However, in the .pgc file, the query no matter how I write it (with " " , without, uppercase....) I get the relation X does not exist. The embedded query is EXEC SQL select count(*) into :var1 from measurement_type where meas_type = :val2. Both var1 and var2 are within the EXEC SQL DECLARE section (host variables) and valid types. I can see the relation measurement_type within psql when I do \dt and as I stated, putting the exact query into psql gives me my count back. Any ideas? Thanks - Laura