pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Stephen Frost <sfrost@snowman.net>
To: Anastasia Lubennikova <a.lubennikova@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: CREATE INDEX ... INCLUDING (column[, ...])
Date: Fri, 8 Apr 2016 15:54:56 -0400
Message-ID: <20160408195456.GP10850@tamriel.snowman.net> (raw )
In-Reply-To: <1460141998856-5897721.post@n5.nabble.com >
References: <E1aoZXr-00038W-EP@gemulon.postgresql.org >
<9832.1460140193@sss.pgh.pa.us >
<CA+Tgmoa2Ng37heGyn3JhQc5vZQWnhbj7TettL=25b308sjK5Sw@mail.gmail.com >
<CAM3SWZSK60bBgGZZRDLxmJs0MXms0x91aXJ_gjWU3w6im23Xjw@mail.gmail.com >
<1460141998856-5897721.post@n5.nabble.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Anastasia,
Attached is the patch to fix pg_dump against older versions, which was
broken in the committed patch.
Thanks!
Stephen
Attachments:
fix-pg_dump-getIndexes.patch (text/x-diff, 3.1K) download
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, "
signature.asc (application/pgp-signature, 818B) download
view thread (10+ messages)
Message-ID: <20160408195456.GP10850@tamriel.snowman.net>
Permalink: ../20160408195456.GP10850@tamriel.snowman.net/
Also on: postgresql.org/message-id/20160408195456.GP10850@tamriel.snowman.net
copy link · copy postgr.es · copy git am
reply 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-committers@postgresql.org
Cc: sfrost@snowman.net, a.lubennikova@postgrespro.ru, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: CREATE INDEX ... INCLUDING (column[, ...])
In-Reply-To: <20160408195456.GP10850@tamriel.snowman.net>
References: <E1aoZXr-00038W-EP@gemulon.postgresql.org> <9832.1460140193@sss.pgh.pa.us> <CA+Tgmoa2Ng37heGyn3JhQc5vZQWnhbj7TettL=25b308sjK5Sw@mail.gmail.com> <CAM3SWZSK60bBgGZZRDLxmJs0MXms0x91aXJ_gjWU3w6im23Xjw@mail.gmail.com> <1460141998856-5897721.post@n5.nabble.com> <20160408195456.GP10850@tamriel.snowman.net>
* 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