Re: reducing the footprint of ScanKeyword (was Re: Large writable variables)
От
Tom Lane
Тема
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables)
Дата
Msg-id
5300.1545852065@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) David Rowley <david.rowley@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Joerg Sonnenberger <joerg@bec.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <john.naylor@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Joel Jacobson <joel@trustly.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Joel Jacobson <joel@trustly.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Robert Haas <robertmhaas@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) David Fetter <david@fetter.org>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Robert Haas <robertmhaas@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) David Fetter <david@fetter.org>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writablevariables) Andres Freund <andres@anarazel.de>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing the footprint of ScanKeyword (was Re: Large writable variables) John Naylor <jcnaylor@gmail.com>
Andres Freund writes: > On 2018-12-26 10:45:11 -0500, Robert Haas wrote: >> I'm not sure that I understand quite what you have in mind for a >> serialized non-perfect hashtable. Are you thinking that we'd just >> construct a simplehash and serialize it? > I was basically thinking that we'd have the perl script implement a > simple hash and put the keyword (pointers) into an array, handling > conflicts with the simplest linear probing thinkable. As there's never a > need for modifications, that ought to be fairly simple. I think it was Knuth who said that when you use hashing, you are putting a great deal of faith in the average case, because the worst case is terrible. The applicability of that to this problem is that if you hit a bad case (say, a long collision chain affecting some common keywords) you could end up with poor performance that affects a lot of people for a long time. And our keyword list is not so static that you could prove once that the behavior is OK and then forget about it. So I'm suspicious of proposals to use simplistic hashing here. There might well be some value in Robert's idea of keying off the first letter to get rid of the first few binary-search steps, not least because those steps are particularly terrible from a cache-footprint perspective. I'm not sold on doing anything significantly more invasive than that. regards, tom lane
В списке pgsql-hackers по дате отправления