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 1j9xrk-0001uo-Ix for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2020 21:17:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j9xrj-0004Q9-AA for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2020 21:17:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j9xri-0004Q2-TG for pgsql-hackers@lists.postgresql.org; Thu, 05 Mar 2020 21:17:11 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j9xrf-0004GH-9T for pgsql-hackers@postgresql.org; Thu, 05 Mar 2020 21:17:10 +0000 Received: by mail-wr1-x443.google.com with SMTP id n15so3433654wrw.13 for ; Thu, 05 Mar 2020 13:17:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8z5J+QWYu3ESRnvj3JmLP37HAhcsRnj9X+O4uOVhHX0=; b=nzl2Mlrh/FPoiWRnvXczAVN1sgmrzlRhAqeB00vbngP/k7RhwQyQFPCVZXS05KeDCP uqK8yii9vIA4SwcymX4FDQVC36Re9Myx16ftrYsoXXgf8W63BJrtOxIVSr/c51pjtMzM mkiCjhCThJEqVp5/HllpaAvymtHlRKlQjr+Jz5n0LiCccc8ru5SnBJoXKWvfOVdX272P 5IIUeDQOlCTEfF/QjqhQy9UOXBRBMeMb7/DUerW6KnMt96DQdgbjRvEseB8E/96hWk3I uxLVzPqjeAFVultUfv2SD2cjrAKC2/2xFzarntPH4GCyw8k1gp0kTUm/6RuNK7A5RtOP 9K9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8z5J+QWYu3ESRnvj3JmLP37HAhcsRnj9X+O4uOVhHX0=; b=R0ixfkAhvfopZkEltxD0KKeHAl/kc0tr9TJ4V4TDpLqh6oGdrpZkKDQAWddDlEmo0w U2YuVGQ226ktLYZYxzQpOP6R3J/ZKWK4fOei8W61GcdcyZ95WCyNsfmUNbgTdG67jtwf qMOHp7wM/3IszGoHQY3a9BHM+w+E7dOJwiqrl81x6TKk1zc8oOZHpOCJde+Qz/32NF0K L9knGnw35Pmh1lUQ7IddfAdnKr5hfbWau9xdEIv4KocXX/x/JxsQUWDGYuvOPyZM05A6 3ESi7oBZggaqwin85gMnCB4t22akiYYJD27IRSBygGI4QwM0rbbWCO0M6mSTz1oaHNEq v1Pg== X-Gm-Message-State: ANhLgQ1fOuixjZI/b5JK+ZLdfln+M0OJcJaVQeOFIIuMs0g1hWiSX5jn WCaACQv5podMQGQwr2K7cP7Pfw== X-Google-Smtp-Source: ADFU+vtcWj5HSMoGpxv05F5pyeQoLzNRyJde5MVnF8gz3qa68nGXc67itDR8OFfBr9GXXCsIHisjLQ== X-Received: by 2002:a5d:6385:: with SMTP id p5mr774321wru.167.1583443026293; Thu, 05 Mar 2020 13:17:06 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id z12sm9091941wrl.48.2020.03.05.13.17.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 13:17:04 -0800 (PST) Date: Thu, 5 Mar 2020 22:17:03 +0100 From: Tomas Vondra To: Tom Lane Cc: pgsql-hackers@postgresql.org Subject: Re: Allowing ALTER TYPE to change storage strategy Message-ID: <20200305211703.nxajetzvksjikwxc@development> References: <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> <17431.1583437964@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <17431.1583437964@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Mar 05, 2020 at 02:52:44PM -0500, Tom Lane wrote: >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? > I don't have any other ideas, unfortunately. And I think if I had one, it'd probably be some sort of ugly hack anyway :-/ >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... > Yeah, I agree #1 seems like the cleanest/best option. Are you worried about the overhead due to the extra complexity, or overhead due to cache getting invalidated for this particular reason? regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services