Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j9wYE-0002iV-VU for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2020 19:52:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j9wYD-0003Is-Ds for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2020 19:52:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j9wYC-0003Il-Sf for pgsql-hackers@lists.postgresql.org; Thu, 05 Mar 2020 19:52:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j9wY6-0002ET-8O for pgsql-hackers@postgresql.org; Thu, 05 Mar 2020 19:52:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 025JqiV6017432; Thu, 5 Mar 2020 14:52:44 -0500 From: Tom Lane To: Tomas Vondra cc: pgsql-hackers@postgresql.org Subject: Re: Allowing ALTER TYPE to change storage strategy In-reply-to: <20200305190513.y4j3ckkvpzrgiy2y@development> References: <20200228004440.b23ein4qvmxnlpht@development> <4872.1582916389@sss.pgh.pa.us> <20200229012511.7h23frunvvxwai7q@development> <9226.1582940133@sss.pgh.pa.us> <10968.1583176270@sss.pgh.pa.us> <20200302220531.cdz4rlbw5gmcicsa@development> <30065.1583347198@sss.pgh.pa.us> <14527.1583363728@sss.pgh.pa.us> <27393.1583366202@sss.pgh.pa.us> <20200305190513.y4j3ckkvpzrgiy2y@development> Comments: In-reply-to Tomas Vondra message dated "Thu, 05 Mar 2020 20:05:13 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17430.1583437964.1@sss.pgh.pa.us> Date: Thu, 05 Mar 2020 14:52:44 -0500 Message-ID: <17431.1583437964@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra writes: > FWIW I'm not suggesting you go and implement #1 or #2 for me, that'd be > up to me I guess. But I disagree there's no use case for it, and #3 > makes this featuer useless for me. OK, then we need to do something else. Do you have ideas for other alternatives? If not, we probably should bite the bullet and go for #1, since I have little doubt that we'll need that someday anyway. The trick will be to keep down the cache invalidation overhead... regards, tom lane