Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aFQKZ-0001od-76 for pgsql-bugs@arkaria.postgresql.org; Sat, 02 Jan 2016 17:51:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aFQKY-0000e8-Jg for pgsql-bugs@arkaria.postgresql.org; Sat, 02 Jan 2016 17:51:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aFQKX-0000dT-GF for pgsql-bugs@postgresql.org; Sat, 02 Jan 2016 17:51:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aFQKT-00040e-I1 for pgsql-bugs@postgresql.org; Sat, 02 Jan 2016 17:51:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u02HosFV021063; Sat, 2 Jan 2016 12:50:54 -0500 From: Tom Lane To: Kouhei Sutou cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13840: pg_dump generates unloadable SQL when third party string type index option is used 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> Comments: In-reply-to Kouhei Sutou message dated "Sat, 02 Jan 2016 23:43:21 +0900" Date: Sat, 02 Jan 2016 12:50:54 -0500 Message-ID: <21062.1451757054@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Kouhei Sutou writes: > Tom Lane 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