pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: amul sul <sulamul@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Alexander Korotkov <a.korotkov@postgrespro.ru>
Subject: Re: ALTER INDEX ... ALTER COLUMN not present in dump
Date: Mon, 17 Dec 2018 14:24:08 -0500
Message-ID: <29223.1545074648@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAJ_b97YrG0LPfFfcXpPf4GGMcLYHjTG5hx-sRW+YYt70Orj9A@mail.gmail.com>
References: <CAARsnT3UQ4V=yDNW468w8RqHfYiY9mpn2r_c5UkBJ97NAApUEw@mail.gmail.com>
	<20181122003147.GA3369@paquier.xyz>
	<154477492593.1386.13640101253353637283.pgcf@coridan.postgresql.org>
	<20181217051439.GG31474@paquier.xyz>
	<8776.1545024255@sss.pgh.pa.us>
	<20181217062425.GI31474@paquier.xyz>
	<CAAJ_b94oyyh+17oLPEQ1AMgWxK0oTT34R+5xNigWJ5nYBqw7Mg@mail.gmail.com>
	<CAAJ_b97YrG0LPfFfcXpPf4GGMcLYHjTG5hx-sRW+YYt70Orj9A@mail.gmail.com>

amul sul <sulamul@gmail.com> writes:
>> On Mon, Dec 17, 2018 at 11:54 AM Michael Paquier <michael@paquier.xyz>
>>> So this settles the argument that we had better not do anything before
>>> v11.  Switching the dump code to use column numbers has not proved to be
>>> complicated as only the query and some comments had to be tweaked.
>>> Attached is an updated patch, and I am switching back the patch to
>>> "Needs review" to have an extra pair of eyes look at that in case I
>>> missed something.

> I been through the patch -- looks good and does the expected job as
> discussed.

I eyeballed the patch, and it seems reasonable to me as well.  The test
case could perhaps be made more extensive (say, a multicolumn index
with a mix of columns with and without stats targets) but I'm not sure
that it's worth the trouble.

			regards, tom lane




view thread (28+ messages)  latest in thread

Message-ID: <29223.1545074648@sss.pgh.pa.us>
Permalink:  ../29223.1545074648@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29223.1545074648@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sulamul@gmail.com, michael@paquier.xyz, pgsql-hackers@lists.postgresql.org, a.korotkov@postgrespro.ru
  Subject: Re: ALTER INDEX ... ALTER COLUMN not present in dump
  In-Reply-To: <29223.1545074648@sss.pgh.pa.us>
  References: <CAARsnT3UQ4V=yDNW468w8RqHfYiY9mpn2r_c5UkBJ97NAApUEw@mail.gmail.com> <20181122003147.GA3369@paquier.xyz> <154477492593.1386.13640101253353637283.pgcf@coridan.postgresql.org> <20181217051439.GG31474@paquier.xyz> <8776.1545024255@sss.pgh.pa.us> <20181217062425.GI31474@paquier.xyz> <CAAJ_b94oyyh+17oLPEQ1AMgWxK0oTT34R+5xNigWJ5nYBqw7Mg@mail.gmail.com> <CAAJ_b97YrG0LPfFfcXpPf4GGMcLYHjTG5hx-sRW+YYt70Orj9A@mail.gmail.com> <29223.1545074648@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