pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Allowing ALTER TYPE to change storage strategy
Date: Thu, 05 Mar 2020 18:08:27 -0500
Message-ID: <14435.1583449707@sss.pgh.pa.us> (raw)
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>

Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
> 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?

The overhead is basically a hash_seq_search traversal over the typcache
each time we get a pg_type inval event, which there could be a lot of.
On the other hand we have a lot of inval overhead already, so this might
not amount to anything noticeable.

			regards, tom lane





view thread (20+ messages)  latest in thread

Message-ID: <14435.1583449707@sss.pgh.pa.us>
Permalink:  ../14435.1583449707@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14435.1583449707@sss.pgh.pa.us

 · 

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

* 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