Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7Q0H-0007Vv-0j for pgsql-general@arkaria.postgresql.org; Fri, 22 Mar 2019 19:38:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h7Q0F-0004zK-JL for pgsql-general@arkaria.postgresql.org; Fri, 22 Mar 2019 19:38:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7Q0F-0004zD-Af for pgsql-general@lists.postgresql.org; Fri, 22 Mar 2019 19:38:55 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h7Q0B-0006S9-Rw for pgsql-general@postgresql.org; Fri, 22 Mar 2019 19:38:54 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 3DA1012C2F876 for ; Fri, 22 Mar 2019 12:38:49 -0700 (MST) Date: Fri, 22 Mar 2019 12:38:48 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1553283528637-0.post@n3.nabble.com> Subject: PK and FK using Hash index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On version 10 and 11 hash index was redesigned and now seems to be better than btree.=20 Their speed, size and memory consuption are better, so ...=20 Why is not possible to have all PK and FK just using hash indices ? The onl= y thing I need on a PK and FK is search and join, so hash index responds very well. I know a hash doesn=C2=B4t accept unique index, so I cannot create a primar= y key on it.=20 But I think it would be great, isn=C2=B4t it ? There is something wrong with my thought ?=20 If not, there is a way to have PK/FH structure using Hash index ? -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.ht= ml