Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWLBa-0001Ku-2T for pgsql-hackers@arkaria.postgresql.org; Wed, 06 May 2020 14:38:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWLBY-0004fX-1O for pgsql-hackers@arkaria.postgresql.org; Wed, 06 May 2020 14:38:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWLBX-0004fQ-Qp for pgsql-hackers@lists.postgresql.org; Wed, 06 May 2020 14:38:07 +0000 Received: from forward4-smtp.messagingengine.com ([66.111.4.238]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWLBQ-00054M-WF for pgsql-hackers@postgresql.org; Wed, 06 May 2020 14:38:07 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 2678D1940784; Wed, 6 May 2020 10:37:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 06 May 2020 10:37:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=FZZM9Txxs5G62/nQ/NF0nrAEA4XUO5yEG5lYu3eY1 Aw=; b=xdkfmSSgEOdXnvThSDBCvWZS1Rh3WKz/4wOMwySbBm1crFwkFPJTLGCZO SQdGWs2iObmSjSK0KHmCMOUggrZjlwyCgsDgoYg7x0tsnNjwQ7jNxHORUxic8h1w MFaKj/SEGAq2n/Aei1hqlk2eCIjxdFMY3s94kufLNyn8cUJJyGKTExh4r6+q+R81 9olB4Lh5mKseyLN8/huiTYQfGRLhgn1PiQ7bP71YinteiZHnFpGBLniaaKrPUkbD 2hO6EVqcXBXU0lEdOzZ7xYu9SpYk47r8ghsLqcDQzTTgD9PJPST2YffbxLkxiIjl NM7dWAm/t0yOXfab3TxGuSJFTuymw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjeekgdejiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuhffvfhhokffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqh hurggurhgrnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpedtheefgfdvudffudefvdej fedukeegudevjeevhfduudekuefhvdevueejfedvteenucffohhmrghinhepvdhnughquh grughrrghnthdrtghomhenucfkphepleefrddvgeefrdeirddvgedunecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnh htrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df306f1.dip0.t-ipconnect.de [93.243.6.241]) by mail.messagingengine.com (Postfix) with ESMTPA id CBDCF3280065; Wed, 6 May 2020 10:37:56 -0400 (EDT) Subject: Re: ALTER TABLE ... SET STORAGE does not propagate to indexes From: Peter Eisentraut To: Alvaro Herrera References: <20200421235636.GA29434@alvherre.pgsql> <8be09419-ed3d-93f9-9c29-2824b44a2c56@2ndquadrant.com> Cc: Kuntal Ghosh , pgsql-hackers Organization: 2ndQuadrant Message-ID: <1e19aeb2-c300-a8a0-e828-9090671eb428@2ndquadrant.com> Date: Wed, 6 May 2020 16:37:55 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <8be09419-ed3d-93f9-9c29-2824b44a2c56@2ndquadrant.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-04-22 16:26, Peter Eisentraut wrote: > On 2020-04-22 01:56, Alvaro Herrera wrote: >> I'm surprised that this hasn't applied yet, because: >> >> On 2020-Apr-09, Peter Eisentraut wrote: >> >>> One thing to remember is that the current situation is broken. While you >>> can set index columns to have different storage than the corresponding table >>> columns, pg_dump does not preserve that, because it dumps indexes after >>> ALTER TABLE commands. So at the moment, having these two things different >>> isn't really supported. >> >> So I have to ask -- are you planning to get this patch pushed and >> backpatched? > > I think I should, but I figured I want to give some extra time for > people to consider the horror that I created in the test_decoding tests. OK then, if there are no last-minute objects, I'll commit this for the upcoming minor releases. This is the patch summary again: Date: Thu, 9 Apr 2020 14:10:01 +0200 Subject: [PATCH v3] Propagate ALTER TABLE ... SET STORAGE to indexes When creating a new index, the attstorage setting of the table column is copied to regular (non-expression) index columns. But a later ALTER TABLE ... SET STORAGE is not propagated to indexes, thus creating an inconsistent and undumpable state. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services