| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: HeapTupleSatisfiesToast() busted? (was atomic pin/unpin causing errors) |
| Date: | 2016-05-10 21:09:37 |
| Message-ID: | 20160510210937.bwinj3oewawinqsl@alap3.anarazel.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 2016-05-10 15:20:39 -0300, Alvaro Herrera wrote:
> Tom Lane wrote:
> > Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> > > On Tue, May 10, 2016 at 12:19 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:
> > >> It's not super likely, yea. But you don't really need to "use" 4 billion
> > >> oids to get a wraparound. Once you have a significant number of values
> > >> in various toast tables, the oid counter progresses really rather fast,
> > >> without many writes. That's because the oid counter is global, but each
> > >> individual toast write (and other things), perform checks via
> > >> GetNewOidWithIndex().
> >
> > > Understood.
> >
> > Sooner or later we are going to need to go to 8-byte TOAST object
> > identifiers. Maybe we should think about doing that sooner not later
> > rather than trying to invent some anti-wraparound solution here.
>
> Umm, it seems to me like we need this fixed in supported branches, not
> just 9.7, so I don't think 8-byte toast IDs are a reasonable solution at
> this point.
Agreed. To me it seems we need to make HeapTupleSatisfiesToast() safe,
and other improvements are tangential.
Andres
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2016-05-10 21:12:07 | Re: HeapTupleSatisfiesToast() busted? (was atomic pin/unpin causing errors) |
| Previous Message | Andres Freund | 2016-05-10 21:06:15 | Re: what to revert |