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.92) (envelope-from ) id 1jFyzB-0000BF-JR for pgsql-general@arkaria.postgresql.org; Sun, 22 Mar 2020 11:41:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jFyz8-0004uK-RY for pgsql-general@arkaria.postgresql.org; Sun, 22 Mar 2020 11:41:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jFyz8-0004uD-Eh for pgsql-general@lists.postgresql.org; Sun, 22 Mar 2020 11:41:42 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jFyz2-000620-9G for pgsql-general@lists.postgresql.org; Sun, 22 Mar 2020 11:41:41 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id A91AA299E; Sun, 22 Mar 2020 12:41:33 +0100 (CET) Date: Sun, 22 Mar 2020 12:41:33 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Could postgres12 support millions of sequences? (like 10 million) Message-ID: <20200322114133.GB4548@hjp.at> References: <20200320225842.GA18976@hjp.at> <0D8F2D62-C0E4-4D6C-B77C-9A2FEB78898C@gmail.com> <20200320232929.GA22868@hjp.at> <03223774-abab-f2c8-9f7c-824eb545a401@aklaver.com> <20200321190758.GA5473@hjp.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MW5yreqqjyrRcusr" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --MW5yreqqjyrRcusr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-03-21 13:45:54 -0700, pabloa98 wrote: > On Sat, Mar 21, 2020 at 12:08 PM Peter J. Holzer wrote: > And I think that "care about gaps -> sequence doesn't work" is a > knee-jerk reaction. It's similar to "can't parse HTML with regexps". > True in the general case, and therefore people tend to blurt it out > every time the topic comes up. But not necessarily true in specific > cases. As I wrote above, there is no perfect solution - so you have to > think about the actual requirements and the consequences of various > solutions - and maybe using a sequence is the best (or least bad) > solution. >=20 > OK. In that case, I will proceed with the millions of sequences. We will = see. Nonononononononono! (channelling Jean-Claude Laprie[1]) I was trying to say that in each case one should think about the pros and cons of different approaches and be wary of dogmatic rules. I wasn't recommending the use of sequences in your case. I would actually be surprised if they work well for you. But having said that - by all means try it. Maybe it does work, and you'll give a talk about "The 50 million sequences database" at a conference next year :-). Or maybe it doesn't, and then you'll have learned something about where the actual limits are. hp [1] I don't expect you to know him :-) --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --MW5yreqqjyrRcusr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl53TukACgkQ8g5IURL+ KF3AVg//Qw2p4CBFnaJYIM9Q2SMpIoVeM9T0ayBRFRtoEtJlH4HVFSBKkX1r7aJi 4fibPJtpDWQTDO5JvcvGdu8U9Mkv2NFhv6M/6lmt/K1VC+qwNiactZ06RR/09sHr pBWMmHZKfpjuFBUS03M/MppUvNKCAHyy49Lrnuswfu8fOMmbfay/emCiQ+OpD8e2 y0KQnB0pXNzptkGyHgxvPlk2tyx0FCX5h04w1FXBUwKjPNww6DkrIeYO9wjCnIHU fn/TauXOfuBkfbUaDgD1SY1m44+cYspx/5ne4PWJvYeFttvaHb7pHDR9F2aYbnw+ DZw+TBwRY35w4D24TvdtPBp7vhVHMK71lH/F8qYfk0S+IVUToVGyPTEQgIdm6KMD vGt3/4MfAEZDBuVLkXm0ezn+hXWBrNprKMR5wN6ucCNVuU1ZnUGk0PQqBHGVDo0P kfQBBvdWKAs9SKKf226qwc9ARg0KTjAXj8KB3E8BTosSnwAUpXv6BxKATxv6A28Y io35HTLaRPutkUG2xKWjPfSaH48vQpaPwteXjunrYEAAqNaG+VtuxPfHUJIdq9JR Wm8J/n5viJD5F+myXq+S00LSLAsl0rvf50yH9HWXxfYO9pI959EEp1T42+b+dHww KBbS/A9kXQC23G17sZW1+HiHfFFPHmDLPnD7ld3fY5CSQyHDrak= =J9cr -----END PGP SIGNATURE----- --MW5yreqqjyrRcusr--