From: | alejandro(at)cartodb(dot)com |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #14152: pg_dump does not take into account previous versions reserved keywords as column names |
Date: | 2016-05-20 16:58:24 |
Message-ID: | 20160520165824.22598.31426@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 14152
Logged by: Alejandro Martínez
Email address: alejandro(at)cartodb(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2016-05-20 17:56:44 | Re: BUG #14152: pg_dump does not take into account previous versions reserved keywords as column names |
Previous Message | David G. Johnston | 2016-05-20 12:55:40 | Re: Postgres Help - Reg |