Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFg7Q-0007yr-7K for pgsql-general@arkaria.postgresql.org; Thu, 25 Oct 2018 13:56:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gFg7O-0004yA-Iy for pgsql-general@arkaria.postgresql.org; Thu, 25 Oct 2018 13:56:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFg7N-0004y2-SA for pgsql-general@lists.postgresql.org; Thu, 25 Oct 2018 13:56:10 +0000 Received: from sonic310-13.consmr.mail.bf2.yahoo.com ([74.6.135.123]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFg7J-00059U-Rn for pgsql-general@lists.postgresql.org; Thu, 25 Oct 2018 13:56:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1540475764; bh=fk4bt7JRstG3OO3o7bDJ4OYvVDNjescMJYKNfGwNjrw=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject; b=UMc+6WVy8oRdtWQyolLtoMIkMxKpcUEDX5/QpyGatVXrquE4iCPYkQIFLlUx5IUzyS64UVkqjJdZvHY10Iu+OIM7E6MMITnV/0Dv+Xn7+cM9BueX+73gIEOB73yrl6o1tER9ogjrlrA8PSNi/V678dXuUm5nfwisz+2z0OpKAB+TvqTDiemgqZCZ8nVJi9CL74u5g4RnWqf9RfPburw+j9JKNQps41u8Kso7WBkOUi9yPExn8bu4gyLRc7KfoZ8/Uo9Yqx+dWM2u8n1QzOEMa4VoV2YRLDxkg0eDa0tZ9MSKgrNrtMQSqhEwYrih22cdpdrGr7zW8UzPejdORG6PKQ== Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Thu, 25 Oct 2018 13:56:04 +0000 Date: Thu, 25 Oct 2018 13:55:58 +0000 (UTC) From: Ravi Krishna To: splarv@ya.ru Cc: pgsql-general@lists.postgresql.org Message-ID: <1521513486.16082500.1540475758494@mail.yahoo.com> In-Reply-To: <3E50E972-7451-4B86-95EF-33A9C2B777FB@ya.ru> References: <6f6b9febf25df823552b0d80c5eff9eeccf628d4.camel@cybertec.at> <3E50E972-7451-4B86-95EF-33A9C2B777FB@ya.ru> Subject: Re: GIN Index for low cardinality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.12512 aolwebmail Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 OPR/56.0.3051.52 Content-Length: 403 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>Does it mean that GIN is a very good choice for low cardinality columns. = =C2=A0 >Not necessary. There is other index which also don=E2=80=99t keep column v= alue in an every leaf. Hash, for instance.=C2=A0 Well I asked about GIN's usefulness for low cardinality. Good to know that= Hash can also be considered. BTW until recently wasn't Hash unsafe for production since it was not WAL l= ogged.