pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Adrien NAYRAT <adrien.nayrat@anayrat.info>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: ALTER INDEX ... ALTER COLUMN not present in dump
Date: Wed, 21 Nov 2018 09:04:17 +0900
Message-ID: <20181121000417.GC1951@paquier.xyz> (raw)
In-Reply-To: <20181116133103.GA3427@paquier.xyz>
References: <CAARsnT3UQ4V=yDNW468w8RqHfYiY9mpn2r_c5UkBJ97NAApUEw@mail.gmail.com>
	<4498621542278682@iva3-0d9a30469759.qloud-c.yandex.net>
	<CAARsnT1bK2473gUq09GZXVdn7nCE3eSSgSfsxFzYHgADCEhoUA@mail.gmail.com>
	<4847941542280801@iva7-4f557d6b60d4.qloud-c.yandex.net>
	<2b5f4be0-9a67-a5d7-4561-09871378a991@anayrat.info>
	<20181115224601.GB6613@paquier.xyz>
	<20181116004505.GC6613@paquier.xyz>
	<20181116083252.GF6613@paquier.xyz>
	<20181116133103.GA3427@paquier.xyz>

On Fri, Nov 16, 2018 at 10:31:03PM +0900, Michael Paquier wrote:
> On Fri, Nov 16, 2018 at 05:32:52PM +0900, Michael Paquier wrote:
>> And here you go as attached.  Looking closer, in v10 and older versions,
>> ALTER INDEX SET STATISTICS is able to work as it is an alias of ALTER
>> TABLE.  The attached patch does not bother generating the ALTER INDEX
>> queries for v10 and older and feeds queries with empty strings.  Perhaps
>> we should support that case?  Or the lack of complains would be an
>> argument sufficient to care only about v11 and newer versions?  I would
>> tend to think that supporting only v11 and above is enough.  Thoughts
>> are welcome.

So, any thoughts about this patch?  I would still like to move on with
only supporting this set of queries only for v11 and above as that gets
only clearly documented on the ALTER INDEX page from that point.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (28+ messages)  latest in thread

Message-ID: <20181121000417.GC1951@paquier.xyz>
Permalink:  ../20181121000417.GC1951@paquier.xyz/
Also on:    postgresql.org/message-id/20181121000417.GC1951@paquier.xyz

 · 

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: michael@paquier.xyz, adrien.nayrat@anayrat.info
  Subject: Re: ALTER INDEX ... ALTER COLUMN not present in dump
  In-Reply-To: <20181121000417.GC1951@paquier.xyz>
  References: <CAARsnT3UQ4V=yDNW468w8RqHfYiY9mpn2r_c5UkBJ97NAApUEw@mail.gmail.com> <4498621542278682@iva3-0d9a30469759.qloud-c.yandex.net> <CAARsnT1bK2473gUq09GZXVdn7nCE3eSSgSfsxFzYHgADCEhoUA@mail.gmail.com> <4847941542280801@iva7-4f557d6b60d4.qloud-c.yandex.net> <2b5f4be0-9a67-a5d7-4561-09871378a991@anayrat.info> <20181115224601.GB6613@paquier.xyz> <20181116004505.GC6613@paquier.xyz> <20181116083252.GF6613@paquier.xyz> <20181116133103.GA3427@paquier.xyz> <20181121000417.GC1951@paquier.xyz>

* 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