From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Jan Wieck <janwieck(at)yahoo(dot)com> |
Cc: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: tuptoaster.c must *not* use SnapshotAny |
Date: | 2002-01-18 05:27:10 |
Message-ID: | 200201180527.g0I5RAk19071@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Jan Wieck wrote:
> Bruce Momjian wrote:
> >
> > 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.
>
> Not entirely. BLOB's should have copy semantics, so that
> doing
>
> INSERT INTO tab1 SELECT id, blob_column FROM tab2 ...
>
> and subsequently changing the blob in either tab1 or tab2
> does NOT change the blob in the other table. Currently, even
> if you make the pg_depend stuff smart enough to let the blob
> live until all references are gone, the two tables would
> share the same blob. And that's not only IMHO wrong, it's
> also incompatible to Oracle :-)
Yes, we have to add duplication large object stuff hard-wired to that new data
type.
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2002-01-18 05:27:50 | Re: tuptoaster.c must *not* use SnapshotAny |
Previous Message | Jan Wieck | 2002-01-18 05:21:26 | Re: tuptoaster.c must *not* use SnapshotAny |