From: Rob Sargent <robjsargent@gmail.com>
To: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Could postgres12 support millions of sequences? (like 10 million)
Date: Fri, 20 Mar 2020 17:56:23 -0600
Message-ID: <796417DB-2DCB-4667-99B5-A8919358792E@gmail.com> (raw)
In-Reply-To: <20200320232929.GA22868@hjp.at>
References: <20200320232929.GA22868@hjp.at>
> On Mar 20, 2020, at 5:29 PM, Peter J. Holzer <hjp-pgsql@hjp.at> wrote:
>
>
>>
>>
>> OP has said small gaps are ok.
>
> Yes. This wasn't a response to the OP's requirements, but to David's
> (rather knee-jerk, IMHO) "don't use sequences" response. Very often the
> requirements which would preclude sequences also preclude any other
> solution.
>
> (In the case of the OP's problem, I'd agree that sequences are probably
> a bad idea for the reasons he anticipates)
>
>> To me that says the requirement
>
> Which requirement? The OP's or the one I posed here?
>
>> is capricious but we haven’t heard the rationale for the requirement
>> yet (or I missed it)
>
> The OP gave a rationale: He has to fit the counter into an 8-digit
> field, and a global counter would overflow that. So he needs per-element
> counters.
>
> hp
Isn’t that the implementation of a req along the lines of “we want to number the occurrences of these pairs because ...”?
>
> --
> _ | Peter J. Holzer | Story must make more sense than reality.
> |_|_) | |
> | | | hjp@hjp.at | -- Charles Stross, "Creative writing
> __/ | http://www.hjp.at/ | challenge!"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: robjsargent@gmail.com, hjp-pgsql@hjp.at
Subject: Re: Could postgres12 support millions of sequences? (like 10 million)
In-Reply-To: <796417DB-2DCB-4667-99B5-A8919358792E@gmail.com>
References: <20200320232929.GA22868@hjp.at> <796417DB-2DCB-4667-99B5-A8919358792E@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox