Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 8FBD61337B58 for ; Mon, 20 Dec 2010 09:44:39 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 96727-03 for ; Mon, 20 Dec 2010 13:44:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 75E39133616B for ; Mon, 20 Dec 2010 09:44:30 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 56975348024; Mon, 20 Dec 2010 05:44:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gGeDjKndP2jY; Mon, 20 Dec 2010 05:44:27 -0800 (PST) Received: from perhan.alvh.no-ip.org (unknown [190.95.22.165]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 50852348022; Mon, 20 Dec 2010 05:44:27 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 5E4A96E470; Mon, 20 Dec 2010 10:44:24 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-bugs Subject: Re: BUG #5795: 9.0.2 PDF needs editing From: Alvaro Herrera To: Leslie Satenstein In-reply-to: <201012200239.oBK2dc0c004538@wwwmaster.postgresql.org> References: <201012200239.oBK2dc0c004538@wwwmaster.postgresql.org> Date: Mon, 20 Dec 2010 10:44:24 -0300 Message-Id: <1292852536-sup-2576@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201012/145 X-Sequence-Number: 28951 Excerpts from Leslie Satenstein's message of dom dic 19 23:39:38 -0300 2010: > The insert examples in section 2.4 do not function if a cut and paste from > pdf to psql is done > > This is the problem > INSERT INTO weather VALUES (’San Francisco’, 46, 50, 0.25, > ’1994-11-27’); > The fields city and date should have ' as delimiter, not > ’ > Corrected is the following that works. Error messages are not clear. It > would be great if psql indicated invalid character as error type. The problem is that ’ seems to be a valid character for identifiers: alvherre=# create table ’oh’ (’ah’ int); CREATE TABLE alvherre=# \d ’oh’ Tabla «alvherre.’oh’» Columna │ Tipo │ Modificadores ─────────┼─────────┼─────────────── ’ah’ │ integer │ -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support