pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: alejandro@cartodb.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14152: pg_dump does not take into account previous versions reserved keywords as column names
Date: Fri, 20 May 2016 16:58:24 +0000
Message-ID: <20160520165824.22598.31426@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14152
Logged by:          Alejandro Martínez
Email address:      alejandro@cartodb.com
PostgreSQL version: 9.5.3
Operating system:   Windows
Description:        

Steps to reproduce:

- Have a 9.3.13 cluster
- On that database run: CREATE TABLE test(foo int, "over" test, bar int);.
Note that "over" is a keyword which apparently went from reserved to
non-reserved on 9.4 release.
- Use a 9.5.3 pg_dump to dump the database.

It fails with:

pg_dump: [archiver (db)] query failed: ERROR:  syntax error at or near
"over"
LINE 1: COPY public.test (foo, over, bar) TO stdout;
                               ^
pg_dump: [archiver (db)] query was: COPY public.test (foo, over, bar) TO
stdout;

Using a 9.3 pg_dump will quote the "over" column name and properly finish
the dump.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (8+ messages)  latest in thread

Message-ID: <20160520165824.22598.31426@wrigleys.postgresql.org>
Permalink:  ../20160520165824.22598.31426@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160520165824.22598.31426@wrigleys.postgresql.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: alejandro@cartodb.com
  Subject: Re: BUG #14152: pg_dump does not take into account previous versions reserved keywords as column names
  In-Reply-To: <20160520165824.22598.31426@wrigleys.postgresql.org>
  References: <20160520165824.22598.31426@wrigleys.postgresql.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