Re: [HACKERS] Pluggable storage - Mailing list pgsql-hackers

From Tomas Vondra
Subject Re: [HACKERS] Pluggable storage
Date
Msg-id 5863132d-a436-321b-6ef9-7c5173bd8ef3@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] Pluggable storage  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [HACKERS] Pluggable storage  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Hi,

On 6/21/17 9:47 PM, Robert Haas wrote:
...>
> like int8 or numeric, it won't work at all.  Even for other things,
> it's going to cause problems because the bit patterns won't be what
> the code is expecting; e.g. bitmap scans care about the structure of
> the TID, not just how many bits it is.  (Due credit: Somebody, maybe
> Alvaro, pointed out this problem before, at PGCon.) 

Can you elaborate a bit more about this TID bit pattern issues? I do 
remember that not all TIDs are valid due to safeguards on individual 
fields, like for example
    Assert(iptr->ip_posid < (1 << MaxHeapTuplesPerPageBits))

But perhaps there are some other issues?

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: [HACKERS] Dynamic instrumentation of lwlock wait times (lwlock flamegraphs)
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] Fix a typo in README.dependencies