pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-hackers@postgresql.org, Jacob Champion <pchampion@vmware.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Ashwin Agrawal <aagrawal@pivotal.io>
Cc: Ashutosh Sharma <ashu.coek88@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Dilip Kumar <dilipbalaut@gmail.com>
Subject: Re: alter table set TABLE ACCESS METHOD
Date: Thu, 06 May 2021 17:24:25 -0700
Message-ID: <3bee08c2ca0fab15d14899afcb19490f29e0ec6f.camel@j-davis.com> (raw)
In-Reply-To: <20210506221943.GS27406@telsasoft.com>
References: <20210228222530.GD20769@telsasoft.com>
	<YDxOhIGLPEGYINNP@paquier.xyz>
	<20210308010707.GA29832@telsasoft.com>
	<YEXSj7vO/ypnlIqq@paquier.xyz>
	<35333ea26e52252174515e14671a9fbc1c20c8fa.camel@j-davis.com>
	<20210506202305.GQ27406@telsasoft.com>
	<1033d6b4b5b42a014cc3f617265ae6e61cb5781b.camel@j-davis.com>
	<20210506221943.GS27406@telsasoft.com>

On Thu, 2021-05-06 at 17:19 -0500, Justin Pryzby wrote:
> If ATRewriteTable didn't
> handle this,
> data would become inaccessible if an AM failed to de-toast tuples.

If the AM fails to detoast tuples, it's got bigger problems than ALTER
TABLE. What about INSERT INTO ... SELECT?

It's the table AM's responsibility to detoast out-of-line datums and
toast any values that are too large (see
heapam.c:heap_prepare_insert()).

Regards,
	Jeff Davis







view thread (41+ messages)  latest in thread

Message-ID: <3bee08c2ca0fab15d14899afcb19490f29e0ec6f.camel@j-davis.com>
Permalink:  ../3bee08c2ca0fab15d14899afcb19490f29e0ec6f.camel@j-davis.com/
Also on:    postgresql.org/message-id/3bee08c2ca0fab15d14899afcb19490f29e0ec6f.camel@j-davis.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: pgsql@j-davis.com, pryzby@telsasoft.com, michael@paquier.xyz, pchampion@vmware.com, hlinnaka@iki.fi, aagrawal@pivotal.io, ashu.coek88@gmail.com, andres@anarazel.de, robertmhaas@gmail.com, amit.kapila16@gmail.com, alvherre@alvh.no-ip.org, dilipbalaut@gmail.com
  Subject: Re: alter table set TABLE ACCESS METHOD
  In-Reply-To: <3bee08c2ca0fab15d14899afcb19490f29e0ec6f.camel@j-davis.com>

* 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