Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fb8tu-0000Wf-UI for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jul 2018 18:22:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fb8ts-00033A-Se for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jul 2018 18:22:40 +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 1fb8ts-000332-M1 for pgsql-hackers@lists.postgresql.org; Thu, 05 Jul 2018 18:22:40 +0000 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fb8tp-0000KP-4C for pgsql-hackers@lists.postgresql.org; Thu, 05 Jul 2018 18:22:39 +0000 Received: by mail-qt0-x241.google.com with SMTP id f18-v6so7904303qtp.10 for ; Thu, 05 Jul 2018 11:22:36 -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=lDounBUl9sQao2PqRIzIhcpPW4MhkVSZM8J9TdFlm5Y=; b=vas4fzKx+90m2VsgMC850SQeNcrps0Rbyh4yeZ+KzEY2YfShr5TiPXI4NTPsG+auRj BnqtkMmTUHdiHPF+Wmtw7PTlemIe92Q+PCWUgzgCdEIOdYtiZ4JAj1k1bNy26e2oapID sVPvLu5YE4y1jAnwq99De2mJ214AteLHcwNwpWoYKhIzNLzVDW90sbcqneyUj5nHdc7G tFNQixL+TJnSebmKgeHVXci9XQNBE8z9KbqtplR92g+HKTDSzyMXGMCqcTKBx2DMmfqP 6xUcPiMexnYPgC3SV7bOTb9LjjNcff9d3sgJrEWOPhrGAVlpOygvVIRNEwcV7Di9kOc2 kzCg== 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=lDounBUl9sQao2PqRIzIhcpPW4MhkVSZM8J9TdFlm5Y=; b=U65gW3p97VptN+rU134kAI+pP0caIvZyi0R69FpP9rWCdV9TRoqb78865Emy8hfWx7 cnsqfw/tBiwsHfvPCNsZzTLTkk/e9Euxb75vcx1mC/w/nyDIuntGu4BFKrn8HD5jJgII CDVmTYhOna7zxSCbTWK4w0QsvQu48ufEj7lv8b90kqjwb1F/DUhgY72ZfeVlSMpJxln9 G64UjAqRYXisq0OMslNVQeV7FXlej5m0nBjFW3wxAeKwd50rpe3O9AgFdpdOfr5Sr9tE e0wIYKbPPFEjmK+c2Hw0AbT0io9CfoDKKqC+fNMNRbs+esbKRm2vYWDwN4Qkc+l2euTi 9CBg== X-Gm-Message-State: APt69E1+r10Nu6FcNaPaIUbrBuKT7opm/++V2HVYY/tmbemnE4gMQDup hnJuoRrnunjNcOu6RxLiYU97dIVnoKvlsJ1uFGOcVXTqLAmyJPCT45gl80c8IBk+gOBV3y9+5Jx DIjeKb9Oe6mAmKGk/1QrXaS21R1lbsa8g+wdRxJotBTyO2vmSHmBL7oZlFjm9h0vJHkVFDO0mrc OPUudDrJnCA18= X-Google-Smtp-Source: AAOMgpc6eC8qM8/GJMVSAlYczStbrrh/N/xtNV+W6/WvuWvk3sdJ01x6XTiF1Do4pvR2t+N501eCAA== X-Received: by 2002:ac8:3762:: with SMTP id p31-v6mr6382735qtb.310.1530814955230; Thu, 05 Jul 2018 11:22:35 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id q5-v6sm4091525qkd.51.2018.07.05.11.22.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Jul 2018 11:22:34 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 8E64821A8; Thu, 5 Jul 2018 14:22:32 -0400 (-04) Date: Thu, 5 Jul 2018 14:22:32 -0400 From: Alvaro Herrera To: Arseny Sher Cc: Tom Lane , pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Fix "base" snapshot handling in logical decoding Message-ID: <20180705182232.3n7ih4kyhtwhmvod@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87r2kliqja.fsf@ars-thinkpad> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Arseny. I'm writing a commit message to push this test change, and I can't explain this bit: On 2018-Jul-02, Arseny Sher wrote: > 3) As a side note, answer to my question 'why do we get different errors > with VACUUM and VACUUM FULL' is the following. With VACUUM FULL, not > only old pg_attribute entry is pruned, but also xmin of new entry > with attisdropped=true is reset to frozen xid. This means that > decoding session (RelationBuildTupleDesc) actually sees 3 attributes, > and the fact that one of them is dropped doesn't embarrass this > function (apparently relnatts in pg_class is never decremented) -- > we just go ahead and decode only live attributes. I just don't see it that VACUUM FULL would change the xmin of anything to FrozenXid, and in my experiments it doesn't. Did you mean VACUUM FREEZE? PS - sorry about the broken CC I added :-( -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services