From: | Andres Freund <andres(at)2ndquadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com> |
Subject: | Re: extensible external toast tuple support |
Date: | 2013-07-02 15:06:24 |
Message-ID: | 20130702150624.GA27545@alap2.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2013-07-01 17:46:51 -0400, Robert Haas wrote:
> But backing up a minute, this is really a significant behavior change
> that is independent of the purpose of the rest of this patch. What
> you're proposing here is that every time we consider toasting a value
> on update, we should first check whether it's byte-for-byte equivalent
> to the old value. That may or may not be a good idea - it will suck
> if, for example, a user repeatedly updates a very long string by
> changing only the last character thereof, but it will win in other
> cases.
In that case the old value will rather likely just have been read just
before, so the price of rereading should be relatively low.
But:
> Whether it's a good idea or not, I think it deserves to be a
> separate patch. For purposes of this patch, I think you should just
> assume that any external-indirect value needs to be retoasted, just as
> we currently assume for untoasted values.
is a rather valid point. I've split the patch accordingly. The second
patch is *not* supposed to be applied together with patch 1 but rather
included for reference.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
Attachment | Content-Type | Size |
---|---|---|
0001-Add-support-for-multiple-kinds-of-external-toast-dat.patch | text/x-patch | 45.3 KB |
0002-Work-harder-in-avoiding-retoasting-unchanged-columns.patch | text/x-patch | 4.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2013-07-02 15:24:00 | Re: MVCC catalog access |
Previous Message | Robert Haas | 2013-07-02 15:01:39 | Re: Custom gucs visibility |