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 1jFhoT-0003gq-Ru for pgsql-general@arkaria.postgresql.org; Sat, 21 Mar 2020 17:21:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jFhoQ-0004Po-Do for pgsql-general@arkaria.postgresql.org; Sat, 21 Mar 2020 17:21:30 +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 1jFhoP-0004Pg-UV for pgsql-general@lists.postgresql.org; Sat, 21 Mar 2020 17:21:30 +0000 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jFhoN-0006Ba-Hs for pgsql-general@lists.postgresql.org; Sat, 21 Mar 2020 17:21:28 +0000 Received: by mail-yb1-xb31.google.com with SMTP id x63so4429110ybx.2 for ; Sat, 21 Mar 2020 10:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=kJDX9MzS/fHk6cFCg+3aa3JD8F9XHoTcsUzsrQUS1vA=; b=KnGwoCs39ZL/zq0+N+siv5XcD422LS4i74dnmcy2tJqmGTCIQ8MdX5XDWuFAnk4U0k tpctiQ7tSf00uyoLLVS4STeiYGQXNPDAHy52gaUyIy3JA/Pcs1AKuH+uSckSZgz6t6rx 84M55VNSmLploLuDIB+vlWRRVQWd4T11nNqb7Y2W4jSJrB7po67WkOA/lejrK/YnK58f OWZHuzbROg0NpLEIPTosQCby2yRfXMPKh6HecSKEGLlfyvWlTl6+Ve/OTlSZEA1OvpA0 ZHTorv3gvFJm4jUCi5dqEYjD64pm3tzRRksqqyNXUZ43POTod8zaBNHf8fqAh3ukBHL7 K5sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=kJDX9MzS/fHk6cFCg+3aa3JD8F9XHoTcsUzsrQUS1vA=; b=JvrgB3LCKh2B05E5WyOdPdJhWVoDMhjPm504Q161yeuJLZqvV/31w2PAqrrjeQsOXY CcAG5OB/UUwSNTEy3awIcaUPDVNT77APTY0IlKStAvlvW4MgvXC8Q4TTJCoxdbHfmo8K lFXAZ5m94OYVjpQzF3OwBK3d8eOZ4cllLSXCFX3sisztLveViNU+GNQTtNbIqu+uLtzg GUlgiVjv+o/Hgsvur1w7kL6v4TdTKh5m6w4lJ/hIb2NLJSGIsQWTQc3WQDGhPB1y+Kfr G23eArFYYtZ4BCTV3qvvibE1a6tQf0HYOA4RZ3Fc/2Q8OMiDsp/KjeFPzyFCYu2ZxmYq raxw== X-Gm-Message-State: ANhLgQ0vWAdagZKrUsNQ2SLEtyfMsB1IZngAXUsnjyI++dzRW+5MD6XT MUS2cU4yGBIbXZCy+EkrdyXjWb9qCH4= X-Google-Smtp-Source: ADFU+vvGYgiWG1hbaGhcYKXGEPphiTpsSRtHr9ADQGuOtEVIXy+GRQdRbW/YkWOIa+cJa7BS80L68Q== X-Received: by 2002:a9d:7646:: with SMTP id o6mr12075412otl.179.1584810819143; Sat, 21 Mar 2020 10:13:39 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id a131sm3247636oii.30.2020.03.21.10.13.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 Mar 2020 10:13:38 -0700 (PDT) Subject: Re: Could postgres12 support millions of sequences? (like 10 million) To: pgsql-general@lists.postgresql.org References: <2c994f4f-6627-1c4d-fac5-d3c442d197e9@aklaver.com> <7B1364EB-7DE5-48E7-A85D-F849EAE569F7@gmail.com> From: Ron Message-ID: <09f5902b-69f9-c8fd-f26b-dd9d3503703e@gmail.com> Date: Sat, 21 Mar 2020 12:13:38 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <7B1364EB-7DE5-48E7-A85D-F849EAE569F7@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/21/20 12:02 PM, Rob Sargent wrote: >> On Mar 21, 2020, at 10:47 AM, Adrian Klaver wrote: >> >> On 3/20/20 8:13 PM, pabloa98 wrote: >>> Nothing I saw that said int could not become bigint. >>> My bad. The code cannot be a bigint. Or it could be a bigint between 1 to 99999999 :) >> Aah, that was the counter Peter was talking about. I missed that. >> >> As to below that is going to require more thought. >> > Still no word on the actual requirement. As someone who believes consecutive numbers on digital invoices is simply a mistaken interpretation of the paper based system, I suspect a similar error here. But again we haven’t really heard, far as I know. Something really fishy about 99999999. Why?  "Print" and "screen" forms have all sorts of practical restrictions like this. -- Angular momentum makes the world go 'round.