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 1jLd3K-0005OZ-JM for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2020 01:29:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLd3I-0007Kn-HO for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2020 01:29:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLd3I-0007Kc-8R; Tue, 07 Apr 2020 01:29:20 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jLd3B-0005b3-TO; Tue, 07 Apr 2020 01:29:19 +0000 Received: by mail-pg1-x542.google.com with SMTP id d17so948150pgo.0; Mon, 06 Apr 2020 18:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:to:cc:subject:from:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=vvTGrIEN5kknrE8oDf+KArgdPmCIJUgEHaxlk7HAwSg=; b=uAA596VXP5erGB3INgatq5XPeXcJ/d59B82dnVWKzWPdH9VdaF8iEQBn4+mn/Pza5G fYIaZWJ8njs2FPvheyGvuf/Dl1iJhorWtdfY01bzsFZVEq3zGfwMyuxhq5EcHZxj45P4 iBuT8r01UAWAQX1OfTQm1FpuXlanbSXQlph4Z+dOhBcudCWblv+YJSWHsAAZjWGLNVLt Out5D6sh5VOnRroQMBTGIfPmjzI3kyyn93y0jINLyGucDHHiwTzPLkpOxMG2F+eB2m8+ 3dWxfqmHWLmUeDTQMwmBkE/R5HqapkMk+KHLQ8GCJuS0CciI6cFCMc7fH400l2OrMR8t qmNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:to:cc:subject:from:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=vvTGrIEN5kknrE8oDf+KArgdPmCIJUgEHaxlk7HAwSg=; b=KBgJzrE02UGJQPmH6LQ/95TyUjkXPufofqt9TvuiJyKQOI4JpyJUm4LoMu2YKZPRlv lowDiQe4mCsC+0iI6p7hWYpUPvnRWl3xnrXiBNnf0v6TwvOLm4uDg93XNS5WVZU0JcMs acoMTSm+zlc+9lfjk73hKiIk4vW9E4S5ajhG9/Gg/ch3XL7ZIoU4ed9tnE/RW9QjBoFP /AUzDdBEvN1bXj6RGtw795aYEMPlwhSv9I/X2YKAjrhHWjmrOEpIH68DKHWK7q8CUwGz Fkhsc4+CAduUqNVlTY5CH0uH0giw5lCAexTSDsfOBA3KRlAVgKqOsNFklpQkBhT/ZSsa tyXw== X-Gm-Message-State: AGi0PuYgeuWJYf590FrGGXgtEeCgaYQCS+JXCebYHLnTG72DFelbKICD SxBHxK+3gh6MHvTwB3iz2NI= X-Google-Smtp-Source: APiQypLQmiHz2LnKuM+de7UUnv6OtwzdD5lDK7xhoFsNXDpPgoF/aLUBTGvtUGpH8+ka8UpSLG34Dg== X-Received: by 2002:a63:2d6:: with SMTP id 205mr1942758pgc.257.1586222952662; Mon, 06 Apr 2020 18:29:12 -0700 (PDT) Received: from localhost (ag027197.dynamic.ppp.asahi-net.or.jp. [157.107.27.197]) by smtp.gmail.com with ESMTPSA id 198sm12672066pfa.87.2020.04.06.18.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2020 18:29:11 -0700 (PDT) Date: Tue, 07 Apr 2020 10:29:09 +0900 (JST) Message-Id: <20200407.102909.709448322643210522.horikyota.ntt@gmail.com> To: masao.fujii@oss.nttdata.com Cc: psuderevsky@gmail.com, david@pgmasters.net, pgsql-hackers@lists.postgresql.org, pgsql-bugs@lists.postgresql.org Subject: Re: Don't try fetching future segment of a TLI. From: Kyotaro Horiguchi In-Reply-To: <792ea085-95c4-bca0-ae82-47fdc80e146d@oss.nttdata.com> References: <8c831a30-a3a2-de89-2059-e7ce842d7aed@pgmasters.net> <792ea085-95c4-bca0-ae82-47fdc80e146d@oss.nttdata.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: Precedence: bulk Thank you for picking this up. At Tue, 7 Apr 2020 02:43:02 +0900, Fujii Masao wrote in > On 2020/03/19 22:22, Pavel Suderevsky wrote: > > Hi, > > I've tested patch provided by Kyotaro and do confirm it fixes the > > issue. > > The patch looks good to me. Attached is the updated version of the > patch. > I updated only comments. + * The logfile segment that doesn't belong to the timeline is + * older or newer than the segment that the timeline started or + * eneded at, respectively. It's sufficient to check only the s/eneded/ended/ ? regards. -- Kyotaro Horiguchi NTT Open Source Software Center