Re: pg_dump/load quoting.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bob Parkinson <rwp(at)biome(dot)ac(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump/load quoting.
Date: 2000-06-29 19:30:04
Message-ID: 1354.962307004@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bob Parkinson <rwp(at)biome(dot)ac(dot)uk> writes:
> dev_templates=# INSERT INTO
> "keywords" ("key","extkey","system","str") VALUES
> (1047676,1047673,'CAB','breeders'' associations');
> ERROR: parser: parse error at or near "associations"

> Whats happening please? Its quoted correctly, isn't it?

There's nothing wrong with that statement, and it works for me:

regression=# INSERT INTO "keywords" ("key","extkey","system","str") VALUES
regression-# (1047676,1047673,'CAB','breeders'' associations');
ERROR: Relation 'keywords' does not exist

(I didn't bother to make the table, but the point here is that it gets
past the "parse error" stage.)

Are you using a 7.0 production release of psql? I seem to recall that
some early beta versions had bugs with doubled quotes, such that what
they sent the backend wasn't what you typed. You could check this by
starting psql with -e to see what it's sending...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert B. Easter 2000-06-29 19:32:23 Timezone template for to_char(timestamp, '...')?
Previous Message Tom Lane 2000-06-29 19:04:01 Re: Importing data w/ Unix timestamp