Andreas Karlsson <andr...@proxel.se> writes: > I decided to look into how much work implementing the todo item about > supporting amgettuple in GIN would be, since exclusion constraints on > GIN would be neat. Robert Haas suggested a solution[1], but to fix it we > also need to look into why the commit message mentions that it did not > work anyway with the partial matches. > ... > This TIDBitmap becomes lossy if it too many TIDs are added to it, and > this case is what broke amgettuple for partial matches.
Right, see http://www.postgresql.org/message-id/49ac300f.1050...@enterprisedb.com Note that fixing the potential lossiness in scanning is not the only roadblock to re-enabling amgettuple. Fast updates also pose problems: http://www.postgresql.org/message-id/4974b002.3040...@sigaev.ru Half of that is basically the same lossiness problem, but the other half is that we're relying on the bitmap to suppress duplicate reports of the same TID. It's fairly hard to see how you'd avoid that without creating other problems. Note that Robert's proposed solution is no solution, because it just puts you right back in the bind of needing guaranteed non-lossy storage of a TID set that might be too big to fit in memory. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers