Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id E38041542B92 for ; Mon, 19 Dec 2011 04:26:51 -0400 (AST) Received: from mailout01.ims-firmen.de ([213.174.32.96]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RcYYc-0004nf-Ih for pgsql-sql@postgresql.org; Mon, 19 Dec 2011 08:26:51 +0000 Received: from mailin04.ims-firmen.de ([192.168.1.113]) by mailout01.ims-firmen.de with esmtp (envelope-from ) id 1RcYYP-0001l0-Ry for pgsql-sql@postgresql.org; Mon, 19 Dec 2011 09:26:37 +0100 Received: from [213.174.32.254] (helo=a-kretschmer.de) by mailin04.ims-firmen.de with esmtpsa (TLSv1:AES256-SHA:256) (envelope-from ) id 1RcYYP-0001PG-MF for pgsql-sql@postgresql.org; Mon, 19 Dec 2011 09:26:37 +0100 Received: from kretschmer by a-kretschmer.de with local (Exim 4.69) (envelope-from ) id 1RcYYN-0006WL-IT for pgsql-sql@postgresql.org; Mon, 19 Dec 2011 09:26:35 +0100 Date: Mon, 19 Dec 2011 09:26:35 +0100 From: Andreas Kretschmer To: pgsql-sql@postgresql.org Subject: Re: Problem with tables and columns names Message-ID: <20111219082635.GA24771@tux> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: Mutt/1.5.18 (2008-05-17) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201112/79 X-Sequence-Number: 36140 Gabriel Filipiak wrote: > Hi, > > so I am working on PostgreSQL 9.1.2 on x86_64-unknown-linux-gnu, compiled by > gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2, 64-bit. > > It seems that i can't give a table name for example testTable it has to be > test_table, because I can't access it via psql is that right or am I doing > something wrong? The same thing for columns. Can anyone give me a hint about > that? Please consider that "testTable" isn't the same as "testtable" or "TestTable". If you create a table called "testTable" you have to use this name everytime. Within psql you have to quote, for instance select * from "testTable" will work, select from testTable doesn't. Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknown) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°