Re: WTF with hash index?

From: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: WTF with hash index?
Date: 2018-11-13 18:07:47
Message-ID: 425df8ed-d3d1-ead4-06db-224446ded1f3@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Am 13.11.2018 um 17:42 schrieb Олег Самойлов:
> insert into gender (gender) select case when random<0.50 then 'female'
> when random<0.99 then 'male' else 'other' end from (select random() as
> random, generate_series(1,:table_size)) as subselect;

is that really your intended data distibution? 99% male?

Regards, Andreas
--

2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2018-11-13 18:12:40 Re: WTF with hash index?
Previous Message Laurenz Albe 2018-11-13 17:55:49 Re: WTF with hash index?