Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop
От
Andres Freund
Тема
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop
Дата
Msg-id
20171206211225.zcp2crfr3bssn3xr@alap3.anarazel.de
Ответ на
Список
Дерево обсуждения
BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infiniteloop tcook@blackducksoftware.com
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Thomas Munro <thomas.munro@enterprisedb.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Greg Stark <stark@mit.edu>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Stephen Frost <sfrost@snowman.net>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Andres Freund <andres@anarazel.de>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in an infinite loop Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Thomas Munro <thomas.munro@enterprisedb.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: BUG #14932: SELECT DISTINCT val FROM table gets stuck in aninfinite loop "Todd A. Cook" <tcook@blackducksoftware.com>
Re: BUG #14891: Old cancel request presented by pgbouncer honoredafter skipping a query. Skarsol <postgresql@skarsol.com>
On 2017-12-06 22:05:22 +0100, Tomas Vondra wrote: > On 12/06/2017 09:46 PM, Andres Freund wrote: > > On 2017-12-06 21:38:42 +0100, Tomas Vondra wrote: > >> It's one thing when the hash table takes longer to lookup something or > > > > longer aka "forever". > > > > Not necessarily. > The datasets I shared are somewhat extreme in the sense that there are > many contiguous sequences of hash values, but it only takes one such > sequence with at least SH_GROW_MAX_MOVE values to trigger the issue. So > the hash table may still be perfectly fine for most keys, and only > slightly slower for the keys in the sequence. Meh, we're talking about adversarial attacks here. > >> when it consumes a bit more memory. Say, ~2x more than needed, give or > >> take. I'm perfectly fine with that, particularly when it's a worst-case > >> evil data set like this one. > > > > I think the way to prevent that kind of attack is to add randomization. > > > > By randomization you mean universal hashing [1], or something else? No, adding in a random seed to the hash. It'd be a lot better if we had a way to provide internal state to the hashfunction, but even just using hash_combine()ing a random number into a hash would be a lot better than what we're doing now. Greetings, Andres Freund
В списке pgsql-bugs по дате отправления
От: Tomas Vondra
Дата:
От: Tomas Vondra
Дата: