pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Allowing ALTER TYPE to change storage strategy
Date: Thu, 5 Mar 2020 22:17:03 +0100
Message-ID: <20200305211703.nxajetzvksjikwxc@development> (raw)
In-Reply-To: <17431.1583437964@sss.pgh.pa.us>
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>

On Thu, Mar 05, 2020 at 02:52:44PM -0500, Tom Lane wrote:
>Tomas Vondra <tomas.vondra@2ndquadrant.com> 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 





view thread (20+ messages)  latest in thread

Message-ID: <20200305211703.nxajetzvksjikwxc@development>
Permalink:  ../20200305211703.nxajetzvksjikwxc@development/
Also on:    postgresql.org/message-id/20200305211703.nxajetzvksjikwxc@development

 · 

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-hackers@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com, tgl@sss.pgh.pa.us
  Subject: Re: Allowing ALTER TYPE to change storage strategy
  In-Reply-To: <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> <20200305211703.nxajetzvksjikwxc@development>

* 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