From: | Kouhei Sutou <kou(at)clear-code(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #13840: pg_dump generates unloadable SQL when third party string type index option is used |
Date: | 2016-01-01 09:14:28 |
Message-ID: | 20160101.181428.648571074852937725.kou@clear-code.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hi,
In <20151231153522(dot)1117(dot)56276(at)wrigleys(dot)postgresql(dot)org>
"[BUGS] BUG #13840: pg_dump generates unloadable SQL when third party string type index option is used" on Thu, 31 Dec 2015 15:35:22 +0000,
kou(at)clear-code(dot)com wrote:
> Bug reference: 13840
> Logged by: Kouhei Sutou
> Email address: kou(at)clear-code(dot)com
> PostgreSQL version: 9.4.5
> Operating system: Debian GNU/Linux sid
> Description:
...
> pg_dump generates "CREATE INDEX ... WITH ..." without quotation for
> option value:
>
> % pg_dump -d option_test
> ...
> CREATE TABLE t (
> c text
> );
> ...
> CREATE INDEX pgroonga_index ON t USING pgroonga (c) WITH (normalizer=none);
> ...
>
> "normalizer=none" causes error on restoring the dump.
>
> pg_dump should generates "normalizer='none'" as option to avoid the
> error.
I attach a patch.
With this patch, pg_dump generates string index option value
with quote like the following:
CREATE INDEX pgrn_index ON memos USING pgroonga (title) WITH (normalizer='none');
Thanks,
--
kou
Attachment | Content-Type | Size |
---|---|---|
0001-Support-dumping-string-index-parameters-of-amindex-e.patch | text/x-patch | 2.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | floriparob | 2016-01-01 15:10:17 | BUG #13841: Unable to set autocommit in psql |
Previous Message | Michael Paquier | 2016-01-01 07:39:40 | Re: BUG #13839: command line restart server fail |