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 1fLxY0-0007f3-Ip for pgsql-general@arkaria.postgresql.org; Thu, 24 May 2018 21:13:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fLxXz-0004jb-6K for pgsql-general@arkaria.postgresql.org; Thu, 24 May 2018 21:13:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fLxXy-0004jA-Qy for pgsql-general@lists.postgresql.org; Thu, 24 May 2018 21:13:18 +0000 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fLxXv-0001oA-8y for pgsql-general@postgresql.org; Thu, 24 May 2018 21:13:17 +0000 Received: by mail-qk0-x242.google.com with SMTP id 185-v6so2481305qkk.11 for ; Thu, 24 May 2018 14:13:14 -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=321LgHM0bYxID0je+B3d1MdwNNsuOckGlNyFfcOa5/I=; b=vIG3uWCd28MBGCWVHtznjFhe5xx5mZkz0dPdBTJbiG9z7OpJWy8O5Z6uffCy+W4O+a 0nSdMoHrAS3xToucKAZh9Ikp6r+w5oSZLQNCacJd+BJ73ycZz5S7heV6VA/ZMIwsUP0E V5Hv0yvBDuzeN5KWQ3W5RKW813Qt2rfCWM1pqF0cmPHV7mH74EqEX2bqYZmV1O1ZksW2 7ib7ZNlxls7MTJM9hazKZRfhTmPI7usKBubZzzojkJHb3BsVIyG6v0IJeTMPlTB8odR7 W10k/+F0dXJXVmwppLxY+hZKXwq9r+TQe2V3Y04HWcMaQU1Rhwvn+IxIih6IO1503bKS zz3w== 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=321LgHM0bYxID0je+B3d1MdwNNsuOckGlNyFfcOa5/I=; b=aed9d6YWYa9gcP9flYmyufiejMXhVZwUXxvTs3T15dzXjdDjgEZqIkwtXJjc9kSvCl 7m9wjsbvBCarTMCgihZY7y0ifbiZXWVu/iKePycApmvBl/yYmPEZvJPxQQnSNDvMSoor BJEYtbwG55KSGHGPEX6n44sCthgRz9GQ/sd6ytShKUTrvaGzXtwNzb/bUXXNITw1EDAo MPwMZnonnF95wgpvq70w/J8CapuroTCofEag7pmXaExrYzCitmji0FiONYCAgSQMHe+s +nMefouf5J/BX9m77wJAFFfoytZ4ss6LfX6rdlz1/Q7M/ZwsCkWyNEjTypLKD2yjt5tA Mezw== X-Gm-Message-State: ALKqPwcLiBym38lpkYksTrmEVfu5BOvloLVJuKok5Vam2IBZbQkWjiUB bvTfG7veStL1g13z9QNlqoGypg== X-Google-Smtp-Source: ADUXVKJITXcXQfyTN5bxZK0DVxtTS7oSPuAzOm08P/5KLsZOGiJAAgiEMH3TZynZOlfN7VaeZ1htoA== X-Received: by 2002:a37:8301:: with SMTP id f1-v6mr8156774qkd.400.1527196394293; Thu, 24 May 2018 14:13:14 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.57.112.31]) by smtp.gmail.com with ESMTPSA id i85-v6sm1354229qke.27.2018.05.24.14.13.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 May 2018 14:13:13 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id A00FA74E; Thu, 24 May 2018 17:13:11 -0400 (-04) Date: Thu, 24 May 2018 17:13:11 -0400 From: Alvaro Herrera To: Andres Freund Cc: Maxim Boguk , Peter Geoghegan , Jeremy Finzel , Postgres General Subject: Re: found xmin from before relfrozenxid on pg_catalog.pg_authid Message-ID: <20180524211311.tnswfnjwnii54htx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180524205820.quhhnn3n2ag5yryb@alap3.anarazel.de> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-May-24, Andres Freund wrote: > On 2018-05-24 16:49:40 -0400, Alvaro Herrera wrote: > > BTW is it just a coincidence or are all the affected tables pg_authid? > > Maybe the problem is shared relations ..? Maybe the fact that they have > > separate relfrozenxid (!?) in different databases? > > Yes, that appears to be part of the problem. I've looked at a number of > shared relation related codepaths, but so far my theory is that the > relcache is wrong. Note that one of the reports in this thread clearly > had a different relcache relfrozenxid than in the catalog. Hmm ... is that because they read the values on different databases? Are you referring to the reports by Maxim Boguk? I see one value from template1, another value from template0. > Then there's also: > http://archives.postgresql.org/message-id/1527193504642.36340%40amazon.com ah, so deleting the relcache file makes the problem to go away? That's definitely pretty strange. I see no reason for the value in relcache to become out of step with the catalogued value in the same database ... I don't think we transmit in any way values of one database to another. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services