Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY0OQ-0007Qj-Ui for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Sep 2022 07:31:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oY0OP-0002AF-Ps for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Sep 2022 07:31:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY0OP-0002A6-Gb for pgsql-hackers@lists.postgresql.org; Tue, 13 Sep 2022 07:31:37 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oY0OF-0000tJ-E8 for pgsql-hackers@lists.postgresql.org; Tue, 13 Sep 2022 07:31:36 +0000 Received: by mail-pg1-x530.google.com with SMTP id g4so10571296pgc.0 for ; Tue, 13 Sep 2022 00:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:from:to:cc:subject :date; bh=keOSfNeQ0l+NBThccQrgReCIejWuEEMMS4XeouIbLHY=; b=HnfhSjcKjlMVPQPBib2fKSe6sB10gY6MX/LrAwMR/BEQC3OXmzK8YPuM0iG+zzXq2J X4KC/euA0Oi1TFwQoRRE5LqK0ohcV93jSC/XVwA9zb7Ldk8U4Qz698A2GIzoBja54SOi iEtLqfMhO7gWOK0/UWh+WQogG/27qMDPeY1i+p18nfUq3c40jaKiNcI90TDzt681QzQw Gs0xH1RIXsA8Pd5BI/IVv+uopahm3rKqws4Of6CxFOc8CKnUkNHI6TJc8ERokipnKO5t OferrYQ0rvmudIGnSOsfu0FGAcqgrlj3gqWBF647m9CVSFeQL7EmlYQrnYaRYLt0+5Zd +eXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-message-state :from:to:cc:subject:date; bh=keOSfNeQ0l+NBThccQrgReCIejWuEEMMS4XeouIbLHY=; b=GWNpks1czE9MAGYn8KzWzeCCwsobK6r31IrE7SnZ1KxZS7nzdwDkE28elNH03YQqsp naZt51q+SbtsY+wNE5O/fT1kQOWgsPSRqzuyYFQMvK2OPCq3VWbwnZVhy9ocM26nLcSz bQExuPlUUp0rQquR4Zg+MT1uVOlB5q9W1pYuV93kCjhAAdfNt+50gMGt7AhK4VOXo74+ VdpeccrSa0N/Lc9+vX4npvodc65NM4D20nsshpT4TncDi8Pi2bwE2ZAYXt0mcR6MbqOJ qcX2s13SHmxrTlPEwCnKKMF4FQQJfKLns88ke2InAw1bOZcXi/aJqOB0Qibf8UDWKohI lqLg== X-Gm-Message-State: ACgBeo0cQyxFoY+a244V/beGBNdx3XWTLID+No5X2iLE8gbNNKuUruRp Rj55HD1g88tTsQ9bgAchufo= X-Google-Smtp-Source: AA6agR51nBB+/QF2x3m6ZZXqz/ms99aTLK3HQkYMHJMA1PgYUO4Iwt5n+oygmJO11Y3X3e0NVWcUKA== X-Received: by 2002:a63:a26:0:b0:434:abac:148c with SMTP id 38-20020a630a26000000b00434abac148cmr26254964pgk.524.1663054285754; Tue, 13 Sep 2022 00:31:25 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id e13-20020a17090301cd00b00177f4ef7970sm7615317plh.11.2022.09.13.00.31.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 13 Sep 2022 00:31:25 -0700 (PDT) Date: Tue, 13 Sep 2022 16:31:22 +0900 (JST) Message-Id: <20220913.163122.1779698487255018129.horikyota.ntt@gmail.com> To: dilipbalaut@gmail.com Cc: andres@anarazel.de, jchampion@timescale.com, y.sokolov@postgrespro.ru, rjuju123@gmail.com, pgsql-hackers@lists.postgresql.org Subject: Re: Error "initial slot snapshot too large" in create replication slot From: Kyotaro Horiguchi In-Reply-To: <20220913.163006.1069510603405463109.horikyota.ntt@gmail.com> References: <20220913.161059.331955937797746838.horikyota.ntt@gmail.com> <20220913.163006.1069510603405463109.horikyota.ntt@gmail.com> User-Agent: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sigh.. At Tue, 13 Sep 2022 16:30:06 +0900 (JST), Kyotaro Horiguchi wrote in > It is possible that the subxip is overrun. We need to expand the array > somehow. Or assign the array of the size (GetMaxSnapshotXidCount() + > GetMaxSnapshotSubxidCount()) for takenDuringRecovery snapshots. And I found that this is already done. What we should is doing the same thing in snapbuild. Sorry for the noise.. regards. -- Kyotaro Horiguchi NTT Open Source Software Center