X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 546769DC9CA for ; Tue, 21 Feb 2006 15:29:39 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 29040-08 for ; Tue, 21 Feb 2006 15:29:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mir3-fs.mir3.com (mail.mir3.com [65.208.188.100]) by postgresql.org (Postfix) with ESMTP id 142689DC9D8 for ; Tue, 21 Feb 2006 15:29:34 -0400 (AST) Received: mir3-fs.mir3.com 172.16.1.11 from 172.16.2.68 172.16.2.68 via HTTP with MS-WebStorage 6.0.6249 Received: from archimedes.mirlogic.com by mir3-fs.mir3.com; 21 Feb 2006 11:29:35 -0800 Subject: Re: relation does not exist From: Mark Lewis To: eric cartman Cc: pgsql-jdbc@postgresql.org In-Reply-To: <20060221191703.26450.qmail@web60321.mail.yahoo.com> References: <20060221191703.26450.qmail@web60321.mail.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: MIR3, Inc. Date: Tue, 21 Feb 2006 11:29:34 -0800 Message-Id: <1140550174.9076.371.camel@archimedes> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-22) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.134 required=5 tests=[AWL=0.133, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 0.134 X-Spam-Level: X-Archive-Number: 200602/163 X-Sequence-Number: 14760 Did you create the tables using case-sensitive names, such as: create table "MyTable" ... ? If this is the case, then you would see some upper-case letters in the results from DatabaseMetaData.getTables(), and in order to use the tables in any queries you would always need to quote the table names and use correct case, since unquoted identifier names are always forced to lower case in PostgreSQL. -- Mark Lewis On Tue, 2006-02-21 at 11:17 -0800, eric cartman wrote: > Hello to everyone, > > I have a small problem using PostgreSQL. > The problem is that I create a database and some tables through ant > and an .sql file. > Then by using DatabaseMetaData class and method getTables(..)I can > make a list of the newly created tables, implying that everything > worked fine. > > But when I am trying to Insert values into tables, i get the message > 'relation does not exist'. > > How can this be possible? > > > Thank you all in advance. > > T.Panos > > > ______________________________________________________________________ > Brings words and photos together (easily) with > PhotoMail - it's free and works with Yahoo! Mail.