Re: tuptoaster.c must *not* use SnapshotAny

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Jan Wieck <janwieck(at)yahoo(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: tuptoaster.c must *not* use SnapshotAny
Date: 2002-01-18 04:20:01
Message-ID: 200201180420.g0I4K1109918@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Tom Lane wrote:
> >
> > Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> writes:
> >
> > > For example is it possible to update a toast
> > > chunk partially using SnapshotToast ?
> >
> > As things stand (with either SnapshotToast or the old SnapshotAny way)
> > it is never possible to update an individual toast value, either
> > partially or wholly. All you can do is lay down a new toast value (with
> > a new identifying OID) and then delete the old one.
> >
> > But I'm not sure that this is wrong, or fixable. Trying to update part
> > of a toasted value is very much like wanting to update part of an
> > existing row in-place, which we cannot possibly do.
>
> Bytea seems to be considered as a candidate for BLOB
> though I think the entirely new type is preferable.
> It seems impossible to implement a functionality like
> inv_write using bytea which the current large object
> stuff has.

Agreed. I think that was the reason we kept TOAST and large objects,
because large objects were designed for random read-write. If we can
get large objects to auto-delete, probably with pg_depend, we can then
use them seamlessly with BLOB I/O routines.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-01-18 04:24:29 Re: Bug in pg_dump/restore -o
Previous Message Bruce Momjian 2002-01-18 04:16:53 Re: Bug in pg_dump/restore -o