Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aocW1-00034C-1G for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Apr 2016 19:56:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aocW0-0000Yd-Fa for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Apr 2016 19:56:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aocUf-0006yR-3c for pgsql-hackers@postgresql.org; Fri, 08 Apr 2016 19:55:01 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aocUc-0006QJ-0u for pgsql-hackers@postgresql.org; Fri, 08 Apr 2016 19:54:59 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id E20CF5F798; Fri, 8 Apr 2016 15:54:56 -0400 (EDT) Date: Fri, 8 Apr 2016 15:54:56 -0400 From: Stephen Frost To: Anastasia Lubennikova Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: CREATE INDEX ... INCLUDING (column[, ...]) Message-ID: <20160408195456.GP10850@tamriel.snowman.net> References: <9832.1460140193@sss.pgh.pa.us> <1460141998856-5897721.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8q6ApRMttMB4WTI6" Content-Disposition: inline In-Reply-To: <1460141998856-5897721.post@n5.nabble.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 15:53:40 up 45 days, 16:46, 13 users, load average: 0.33, 0.42, 0.41 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --8q6ApRMttMB4WTI6 Content-Type: multipart/mixed; boundary="Y8YhpITADfETs1ua" Content-Disposition: inline --Y8YhpITADfETs1ua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Anastasia, Attached is the patch to fix pg_dump against older versions, which was broken in the committed patch. Thanks! Stephen --Y8YhpITADfETs1ua Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="fix-pg_dump-getIndexes.patch" diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c new file mode 100644 index 7e6abd7..7c5ae31 *** a/src/bin/pg_dump/pg_dump.c --- b/src/bin/pg_dump/pg_dump.c *************** getIndexes(Archive *fout, TableInfo tbli *** 6088,6093 **** --- 6088,6095 ---- "SELECT t.tableoid, t.oid, " "t.relname AS indexname, " "pg_catalog.pg_get_indexdef(i.indexrelid) AS indexdef, " + "NULL AS indnkeyatts, " + "NULL AS indnatts, " "t.relnatts AS indnkeys, " "i.indkey, i.indisclustered, " "i.indisreplident, t.relpages, " *************** getIndexes(Archive *fout, TableInfo tbli *** 6119,6124 **** --- 6121,6128 ---- "SELECT t.tableoid, t.oid, " "t.relname AS indexname, " "pg_catalog.pg_get_indexdef(i.indexrelid) AS indexdef, " + "NULL AS indnkeyatts, " + "NULL AS indnatts, " "t.relnatts AS indnkeys, " "i.indkey, i.indisclustered, " "false AS indisreplident, t.relpages, " *************** getIndexes(Archive *fout, TableInfo tbli *** 6146,6151 **** --- 6150,6157 ---- "SELECT t.tableoid, t.oid, " "t.relname AS indexname, " "pg_catalog.pg_get_indexdef(i.indexrelid) AS indexdef, " + "NULL AS indnkeyatts, " + "NULL AS indnatts, " "t.relnatts AS indnkeys, " "i.indkey, i.indisclustered, " "false AS indisreplident, t.relpages, " *************** getIndexes(Archive *fout, TableInfo tbli *** 6176,6181 **** --- 6182,6189 ---- "SELECT t.tableoid, t.oid, " "t.relname AS indexname, " "pg_catalog.pg_get_indexdef(i.indexrelid) AS indexdef, " + "NULL AS indnkeyatts, " + "NULL AS indnatts, " "t.relnatts AS indnkeys, " "i.indkey, i.indisclustered, " "false AS indisreplident, t.relpages, " *************** getIndexes(Archive *fout, TableInfo tbli *** 6205,6210 **** --- 6213,6220 ---- "SELECT t.tableoid, t.oid, " "t.relname AS indexname, " "pg_catalog.pg_get_indexdef(i.indexrelid) AS indexdef, " + "NULL AS indnkeyatts, " + "NULL AS indnatts, " "t.relnatts AS indnkeys, " "i.indkey, i.indisclustered, " "false AS indisreplident, t.relpages, " *************** getIndexes(Archive *fout, TableInfo tbli *** 6234,6239 **** --- 6244,6251 ---- "SELECT t.tableoid, t.oid, " "t.relname AS indexname, " "pg_get_indexdef(i.indexrelid) AS indexdef, " + "NULL AS indnkeyatts, " + "NULL AS indnatts, " "t.relnatts AS indnkeys, " "i.indkey, false AS indisclustered, " "false AS indisreplident, t.relpages, " *************** getIndexes(Archive *fout, TableInfo tbli *** 6261,6266 **** --- 6273,6280 ---- "t.oid, " "t.relname AS indexname, " "pg_get_indexdef(i.indexrelid) AS indexdef, " + "NULL AS indnkeyatts, " + "NULL AS indnatts, " "t.relnatts AS indnkeys, " "i.indkey, false AS indisclustered, " "false AS indisreplident, t.relpages, " --Y8YhpITADfETs1ua-- --8q6ApRMttMB4WTI6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXCAyQAAoJEO1sijiDR2RVVsQP/2/V6Pr0/o2+87xPbe/T6BPZ 36fC9Sbi9wVb1P66k38Dj2+3PMwhn5S8TVon4PJ1xoPFu5NVcgPn8ZiAnHJqRMOx eIk2NDIZ0vmDkYEWHUznRig93CVX9m5qW2dLVNOTFnOzE5/D/6L85zYEKpkz2Bm+ GRlyKoRzcrSnVAmaIbYG1RCED77RfYi+TePI62+pQmv+8jDXQmG7a+5WV/auaAmf tPstVsU/lcsx2Dk/UfdV1n2LUI8a22ggOet3l19eDSJpjgXZxq8XJQgYLptsD/aq 1Fuq9AzKAaXfwLqW94RvAmJOFrsH79rd7HF/6SCgxI45SlwwimVgYz7XGRAeIHCP 3xZ79vS3KSaHAZCKGk5wFG2Gc1BrnNp4gz8XcXCEpnbnX+9/Ex/JhaJI6MlqTAa/ YkABwtTkk2HzA7xzZWJ7YlXaBKLvcj1ZOp41oI0PcqSB6Z6CELMDbVCd+L0lErgs lG8UhphKC83MzQ9w0myozEeiM/TcEhEqbSucwHbdRus9f0hqM0kBO+q7wtGt4XcV qgukPyKsSsTTkoR694yB6CeCvlayr7eq6A/Y2Khnvuz3WrP0Y8XqvSyWxEcJhjK0 3oC0iz4BgMJILbIKiALg+9k1Nhvssgy4iFfnEq1EZ+9kMyROM6o1OPGEnlH7MgwO Nw4u1XE5ODf0yvJ8hFB6 =wfHB -----END PGP SIGNATURE----- --8q6ApRMttMB4WTI6--