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 1jtJbE-0004c7-02 for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2020 23:35:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jtJbB-00045H-Op for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2020 23:35:33 +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 1jtJbB-00045A-I8 for pgsql-hackers@lists.postgresql.org; Wed, 08 Jul 2020 23:35:33 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jtJb8-00054X-Bg for pgsql-hackers@lists.postgresql.org; Wed, 08 Jul 2020 23:35:32 +0000 Received: by mail-qt1-x844.google.com with SMTP id d27so355445qtg.4 for ; Wed, 08 Jul 2020 16:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=PQ3KLbXS1kU25xio6jtvHON7hbkKQEjgbSZqLSc9gro=; b=Ooxrg712ySFW2ehihnR6iS85ALDT5tvGcx/O4R6WMIMAVZ0qrjpYU+QnnGZJcEUQc7 NdchstQSlkGys/byHFjzo+5ui6BwTY6KGHMTpMK3NssC3RgerBF0rW5h0Jo26tG0XKWO v2aNQSP8y2Ew2SjoAn5taGiy8HJI2Dn1TeUTHSpmQzfUraQo5BmIs+wyiffZs5tR56pA i7UbdaeQhN8zuWZRmTyRZ+rEhrw2KWxSlX9ProYkyx6xZLDCKX2mvmD9snMvsUdeIlP4 LTB4pmhekqAiIGPfkoSBUvem+vLKQ4/FcJ+OgPJYFhOmUCk+txdtya9EOrWYz4xmdp9E 8PuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=PQ3KLbXS1kU25xio6jtvHON7hbkKQEjgbSZqLSc9gro=; b=nh7ZcvT+35GXkoO8P/JlKgql+3ASrhLorZgo7GTCyK0taQ3AWyp7mvysL7QAB6mHoG gVf1bHX2bLRuw5BvqWgMQ7Lkp1sGrbIwDHSnZuKT088QNROTuS3vk2IgWtfYoEV5FV/e l8rnmENmMXvpqu8hQh2VnrdwFlBRkIiTsqIB6pSBPSdR9ZuPrM/ANDqfS2D8lszXajc/ AgjzLjkkrI0O7dEhHc3BOz51N7vcA08JFGbr6uhcY3NSONSvKWPeNp4QjvdDS4uFJhaX KMzvGmI3TWB9FZcDE2YmU1473zL47MVT0KGJcQJPL3Odz/CDVnLUWUq3MJ2hmZT8pZRK banA== X-Gm-Message-State: AOAM533Ya3kDx7xmb7cQ0ZCWRI8qrei0A7jeK/x5JRTNEBGkm1KqHR/c LI19sS6SvMcdHoB/Jf7o2M7UWQ== X-Google-Smtp-Source: ABdhPJzVZXzSO+LeC8mBp6AoTxswOT01+q2WkCxmxmzAqZmMKN22PitNFPCtdQ8L9oDAhtdT+OAoUA== X-Received: by 2002:ac8:1667:: with SMTP id x36mr51380284qtk.344.1594251328684; Wed, 08 Jul 2020 16:35:28 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id k197sm1573387qke.133.2020.07.08.16.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 16:35:27 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3F6B32A18A9; Wed, 8 Jul 2020 19:35:26 -0400 (-04) Date: Wed, 8 Jul 2020 19:35:26 -0400 From: Alvaro Herrera To: Tom Lane Cc: pgbf@twiska.com, Kyotaro Horiguchi , masao.fujii@oss.nttdata.com, pgsql-hackers@lists.postgresql.org Subject: Re: min_safe_lsn column in pg_replication_slots view Message-ID: <20200708233526.GA30333@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1738875.1594250690@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jul-08, Tom Lane wrote: > Alvaro Herrera writes: > > Anyway the error is pretty strange: only GetWALAvailability is showing a > > problem, but the size calculation in the view function def is returning > > a negative number, as expected. > > We've previously noted what seem to be compiler optimization bugs on > both sparc32 and sparc64; the latest thread about that is > https://www.postgresql.org/message-id/flat/f28f842d-e82b-4e30-a81a-2a1f9fa4a8e1%40www.fastmail.com > > This is looking uncomfortably like the same thing. Ouch. So 12 builds with -O0 but 13 does not? Did we do something to sequence.c to work around this problem? I cannot find anything. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services