From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kouhei Sutou <kou@clear-code.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13840: pg_dump generates unloadable SQL when third party string type index option is used
Date: Sat, 02 Jan 2016 12:50:54 -0500
Message-ID: <21062.1451757054@sss.pgh.pa.us> (raw)
In-Reply-To: <20160102.234321.2048568850499122365.kou@clear-code.com>
References: <20151231153522.1117.56276@wrigleys.postgresql.org>
<20160101.181428.648571074852937725.kou@clear-code.com>
<15194.1451680235@sss.pgh.pa.us>
<20160102.234321.2048568850499122365.kou@clear-code.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Kouhei Sutou <kou@clear-code.com> writes:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Pushed with some adjustments (notably, I thought the quoting rule was
>> too complicated and not necessarily 100% correct).
> Thanks for merging my patch and backporting to released
> series.
I looked into pg_dump and realized that this fixes only a few of the
problems in this area. While pg_dump does rely on ruleutils.c to
print reloptions of simple indexes, it does not do that for reloptions
of tables or views, nor for reloptions of indexes that are constraints.
So eventually that's going to bite us on the rear, though I'm not sure
if we have a live problem today.
One could imagine exporting flatten_reloptions via a separate SQL
function, but that could only exist in future releases, so I'm afraid
we're going to have to duplicate the functionality inside pg_dump.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: tgl@sss.pgh.pa.us, kou@clear-code.com
Subject: Re: BUG #13840: pg_dump generates unloadable SQL when third party string type index option is used
In-Reply-To: <21062.1451757054@sss.pgh.pa.us>
References: <20151231153522.1117.56276@wrigleys.postgresql.org> <20160101.181428.648571074852937725.kou@clear-code.com> <15194.1451680235@sss.pgh.pa.us> <20160102.234321.2048568850499122365.kou@clear-code.com> <21062.1451757054@sss.pgh.pa.us>
* 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