pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Leslie Satenstein <lsatenstein@yahoo.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #5795: 9.0.2 PDF needs editing
Date: Mon, 20 Dec 2010 10:44:24 -0300
Message-ID: <1292852536-sup-2576@alvh.no-ip.org> (raw)
In-Reply-To: <201012200239.oBK2dc0c004538@wwwmaster.postgresql.org>
References: <201012200239.oBK2dc0c004538@wwwmaster.postgresql.org>

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 <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (7+ messages)  latest in thread

Message-ID: <1292852536-sup-2576@alvh.no-ip.org>
Permalink:  ../1292852536-sup-2576@alvh.no-ip.org/
Also on:    postgresql.org/message-id/1292852536-sup-2576@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@commandprompt.com, lsatenstein@yahoo.com
  Subject: Re: BUG #5795: 9.0.2 PDF needs editing
  In-Reply-To: <1292852536-sup-2576@alvh.no-ip.org>
  References: <201012200239.oBK2dc0c004538@wwwmaster.postgresql.org> <1292852536-sup-2576@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox