Re: A varint implementation for PG? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: A varint implementation for PG?
Date
Msg-id CA+TgmoZrnxd81eWCOXSnAhof6WrRg2Bpqroquu04nqhEWG-YJg@mail.gmail.com
Whole thread Raw
In response to Re: A varint implementation for PG?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Wed, Aug 4, 2021 at 3:46 PM Andres Freund <andres@anarazel.de> wrote:
> > But what if I have a machine with more than 16 exabytes of RAM and I
> > want to use all of its memory to store one really big integer?
>
> Then the embedded 8 byte length value would just have to do the same thing
> recursively to store that huge length header :)

Well, yes. But more seriously, my point is that I can't imagine why we
would need an object with a length bounded by 2^64. I mean I suppose
there's no harm in looking to the future, but that's *really big*.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: straightening out backend process startup
Next
From: Tomas Vondra
Date:
Subject: Re: A varint implementation for PG?