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 1hv95p-0005d1-LH for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Aug 2019 23:42:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hv95n-0007H1-LU for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Aug 2019 23:42:11 +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 1hv95n-0007Gu-Ck for pgsql-hackers@lists.postgresql.org; Tue, 06 Aug 2019 23:42:11 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hv95k-00023p-T9 for pgsql-hackers@lists.postgresql.org; Tue, 06 Aug 2019 23:42:10 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 67E5F5F79F; Tue, 6 Aug 2019 19:42:08 -0400 (EDT) Date: Tue, 6 Aug 2019 19:42:08 -0400 From: Stephen Frost To: Tom Lane Cc: Alvaro Herrera , Pg Hackers Subject: Re: no default hash partition Message-ID: <20190806234208.GG29202@tamriel.snowman.net> References: <20190806225310.GA17708@alvherre.pgsql> <16738.1565132324@sss.pgh.pa.us> <20190806230228.GE29202@tamriel.snowman.net> <18362.1565134512@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="y36l3V6A4jEU8Tbf" Content-Disposition: inline In-Reply-To: <18362.1565134512@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --y36l3V6A4jEU8Tbf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > * Tom Lane (tgl@sss.pgh.pa.us) wrote: > >> Hmm. So given the point about it being hard to predict which hash > >> partitions would receive what values ... under what circumstances > >> would it be sensible to not create a full set of partitions? Should > >> we just enforce that there is a full set, somehow? >=20 > > I imagine there's good reasons this wasn't just done (for this or > > various other things), but couldn't we enforce it by just creating them > > all..? Sure would simplify a lot of things for users. Similairly for > > list partitions, I would think. >=20 > Well, with lists Alvaro's point holds: you might know a priori that > some of the values are infrequent and don't deserve their own partition. > The thing about hash is that the entries should (in theory) get spread > out to all partitions pretty evenly, so it's hard to see why a user > would want to treat any partition differently from any other. Yeah, that's a fair argument, but giving the user a way to say that would address it. As in, "create me a list-partitioned table for these values, plus a default." Anyhow, I'm sure that I'm taking this beyond what we need to do right now, just sharing where I think it'd be good for things to go. Thanks! Stephen --y36l3V6A4jEU8Tbf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdShBQAAoJEO1sijiDR2RVNKMP/0/J6nmLe+Qokyv0viFC1dvo Vf8qnRf9WTh0Pn0LqnRadoglUjTA2KKh0imQJzBhLzmlHQbaS8h51794CbOivZMd gHujVFqiYvZ72LGH3AFPB1yau4QRW3v6FO4Nmzqbs8Oy5GjrqhKxHqeWVYIofz8K qDVWPqJcYjV+Vvx7EnIcYedTkDnHdrj6SyjpubB+3msjJfnbZkVFlED8JbnW0zYb JywhVuT2NTDSHTJ13X13xbDyazEk1JRNhAk/3DJ9J6fhs59/dEYKylbH/dFul0NS jbH627ak/ddqD/0FDt+yDRCPlClv21udLpQ7OvbDTiX+C9kIOHwyqnJIgcwsBZPL fiTuX/UpMKm4RkPHG/wzjQplrf7CYH4svFHJDV8IFDF/xwShi6v4SKo9S/GMNedh vP0gTVFIeo1IA6uIRVpdVxq3oNT43m1c2/XC+1tYI3GqD3YA/OsqLx3J7mSD/jM0 Rnk47MGyQuzdb5Dl53kWidaSET5g+/wv+K5skzR2NWNJ6FIpDzOpEub5X9rak8yW tKnbt1nmpYu/73oekjwVN1/4O27aqrzc+gQZH121NH6HoMHJuMCVeXSXrKixXPzg 4XbTZHDQhyrj5qyhaV4dK3esAzGFggVuIUiXZphe4Vn+oTpAqKkFzaKQPAmJXd70 0gPpxib08vu+D4E7HgWC =0X7w -----END PGP SIGNATURE----- --y36l3V6A4jEU8Tbf--