Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 45D4264FC66 for ; Wed, 12 Nov 2008 05:34:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49860-06 for ; Wed, 12 Nov 2008 05:34:34 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail06.svc.cra.dublin.eircom.net (mail06.svc.cra.dublin.eircom.net [159.134.118.22]) by mail.postgresql.org (Postfix) with SMTP id 69F0564FCE9 for ; Wed, 12 Nov 2008 05:34:33 -0400 (AST) Received: (qmail 84282 messnum 12474319 invoked from network[86.46.34.217/unknown]); 12 Nov 2008 09:34:32 -0000 Received: from unknown (HELO ?127.0.0.1?) (86.46.34.217) by mail06.svc.cra.dublin.eircom.net (qp 84282) with SMTP; 12 Nov 2008 09:34:32 -0000 Message-ID: <491AA327.7020200@iol.ie> Date: Wed, 12 Nov 2008 09:34:31 +0000 From: Raymond O'Donnell Reply-To: rod@iol.ie User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: =?ISO-8859-1?Q?F=E9lix_S=E1nchez_Rodr=EDguez?= CC: PostgreSQLPHP Subject: Re: See postgre tables from PHP code References: <001501c942e9$665772b0$3000a8c0@atenea> In-Reply-To: <001501c942e9$665772b0$3000a8c0@atenea> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 081111-0, 11/11/2008), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200811/9 X-Sequence-Number: 3920 On 10/11/2008 04:04, Félix Sánchez Rodríguez wrote: > Beside, I opened my PostgreSQL interface, called pgAdmin and run the > same query inside the ATM database and the error was the same: "relation > 'usuarios' was not found". It's like something else was needed to access > the DB tables. Did you by any chance create the tables from pgAdmin and use mixed-case names? PostgreSQL by default will fold names to lower-case unless you put double-quotes around them, so e.g. "Usarios" is a different table from "usarios". When creating a table from pgAdmin, if you mix upper- and lower-case in a table name then pgAdmin double-quotes the names to preserve the case; and if you then SELECT from the table without double-quoting the name, Postgres fold the names to lower-case and then can't find the table. Ray. ------------------------------------------------------------------ Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland rod@iol.ie Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals ------------------------------------------------------------------