Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEcFu-00063H-Fh for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Oct 2018 15:36: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 1gEcFs-0007DN-H3 for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Oct 2018 15:36:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEcFs-0007DG-AI for pgsql-hackers@lists.postgresql.org; Mon, 22 Oct 2018 15:36:32 +0000 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gEcFp-0004rx-N3 for pgsql-hackers@lists.postgresql.org; Mon, 22 Oct 2018 15:36:31 +0000 Received: by mail-qt1-x82e.google.com with SMTP id a10-v6so2431986qtp.2 for ; Mon, 22 Oct 2018 08:36: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=mlJj48le0Nsmnuxop2mB2H+8l5lAo2WLtYcF/I/6/Sc=; b=Z3EwvOsA1LDhRygI8NYEbxhZtWpUvDkXdqTIQYuWBhgQrllpTahajkfJKOoSwmtXvx vuS2jEiNEbaG477Eti1MiN2ldb28cMF+6C5DSo/1HREHxG7UcBGGQtobRGMlY7lEPJ9Z PiK+d//SBZ6ai7fGxI9fzVtK8jALx57kpt4o0nUaTuC6cXYWfb+BsvX0uzCHivBqxsQw nUy5LN5lGqpHGboZCZ199bNbfcWw/ltExqp4vRok9bQ3e+WpfQts6/tswYkfFQgkTNDL VOPGIj13Bg3tFiBTuRow7rr+jYlJSAyDvtfhg4+BqVfvFNtRhN/zhIjr8P19W14w0RpU neHA== 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=mlJj48le0Nsmnuxop2mB2H+8l5lAo2WLtYcF/I/6/Sc=; b=H3ewadh/YwJec4BfjWMHMfGWDZwpmJb5siORJ7qKHhPITjZfSCfuSR9ICZVamdMkK3 fJ0fLB3BkjoviIQ2NP359j9PcAm7+l0jtU0crr7Xj7vM5nVqL7VtH1J9AHqWKLYX8RMC 0SCjPvupMpnQsXU4kOJCjabpYaVbiZEf5ZWYlLC035rNvoy5BbRpSOxd6iYrVnHPYQzZ YS0sUzCqgIsjaH3QJEAmNl9uOomYkc50oYA7LFLZLasn7Q2bqY2Z5I9x5ddX0Zb/YT/7 Uc1S9W3aTCKrsO3V46fu+STAE2dssf6vwdszj7T5QvHeKMtWeCUSi9nmwcsAijHgoNuX HQkQ== X-Gm-Message-State: ABuFfohIbmUNvRi+Xnw/wYQ9PeZ1/xWebEgo48n+9Spb3HuzpGmDzLrh 5kvrj9tiwSF4MymFS3kLmNovBw== X-Google-Smtp-Source: ACcGV61bIy6jpXP3KI1Ju5sPXR/XpGto7NqW4a7hVgRuiJkbjN4ybbblrsihb1mWlpdQ0snw65Ub+g== X-Received: by 2002:ac8:248c:: with SMTP id s12-v6mr43463210qts.116.1540222587542; Mon, 22 Oct 2018 08:36:27 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id t128-v6sm8858272qkh.80.2018.10.22.08.36.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 08:36:26 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 0E2915AC; Mon, 22 Oct 2018 12:36:25 -0300 (-03) Date: Mon, 22 Oct 2018 12:36:25 -0300 From: Alvaro Herrera To: Andres Freund Cc: Michael Paquier , pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Avoid duplicate XIDs at recovery when building initial snapshot Message-ID: <20181022153625.d5r7yui5qoway66u@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181014174240.byktkskdymae7kmy@alap3.anarazel.de> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Oct-14, Andres Freund wrote: > On 2018-10-14 13:26:24 +0000, Michael Paquier wrote: > > Avoid duplicate XIDs at recovery when building initial snapshot > I'm unhappy this approach was taken over objections. Without a real > warning. Even leaving the crummyness aside, did you check other users > of XLOG_RUNNING_XACTS, e.g. logical decoding? Mumble. Is there a real problem here -- I mean, did this break logical decoding? Maybe we need some more tests to ensure this stuff works sanely for logical decoding. FWIW and not directly related, I recently became aware (because of a customer question) that txid_current_snapshot() is oblivious of XLOG_RUNNING_XACTS in a standby. AFAICS it's not a really serious concern, but it was surprising. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services