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 1mLlc7-0003rG-7h for pgsql-general@arkaria.postgresql.org; Thu, 02 Sep 2021 12:14:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mLlc5-0007sA-9p for pgsql-general@arkaria.postgresql.org; Thu, 02 Sep 2021 12:14:37 +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 1mLlc4-0007s2-Se for pgsql-general@lists.postgresql.org; Thu, 02 Sep 2021 12:14:37 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mLlc0-0004rg-Ey for pgsql-general@lists.postgresql.org; Thu, 02 Sep 2021 12:14:36 +0000 Received: by mail-wm1-x336.google.com with SMTP id i3so1113142wmq.3 for ; Thu, 02 Sep 2021 05:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=IZVL2YZsCSltzaIq9JxAgoc87tptEjHFrDpU/pwKXUQ=; b=dUSo2QRR2LcZbhTByTVVDCPzxArvjQVbn2ecE/PZRFa45k+rCbcYrnv2J450sQMvyu c4rNiMwnSAyr+5nVXyvpt1uu8YFVqtP7GF1Lvp/WZDG3686zZJH/5WA+V79s3YSkv76v ZvQ94KpjMbhiDqlTMVNPLveo5Yml5aGbZwS4ydu14me/uvxOso4excrQSEwyla7HIYCA ohY52DRt+dt1kZzS2G12DiBzBmstNjfyLRt7JWwZ0ki3NM7Tz63Anvr2doxYoFfnRM22 eTOStrjL6bcqJNO6KjiJtcftaqbNOCSG3Prci+BmdcYVSR1t92Otc8dfOwUxER8EV0e2 GRug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=IZVL2YZsCSltzaIq9JxAgoc87tptEjHFrDpU/pwKXUQ=; b=twmFSfprqNZ1aNfsdjnXZoWNJbXmCq/6RtAQ+n/4nah0p/IIH6J9Ijb0PIRsXLKYyP PNzRaYn+tlnKFzNSr5LTLhNQJ6uRY7aXCz+cgKyEM87brpeFQgilJVOegkgCVVNH5aoL eK8YO4jZOnZNUB7Bqkw+h23+ORuIfS9c/pTJmZ9Edvh87gON2ugT/8dAzXyAPFcUFXiT qsu6v/WsHu2DfNkC0m479KJQjsJbCkRz1lsq/OnEJjXDAsR3x7prvqj6kJzoZMYCy1eb U8UvqJ/Hr3CGwqR+6Fw/b+G0PoFmJlSX0fIFGjNUJugptoR5fUqhGHofhOLu4VWwHZPI 7UjA== X-Gm-Message-State: AOAM533ptNMyjkFC6VhbOMB09OSrFU5ee6fxlWI9vxSfm7/BT8OHYrAi tF5C0UNZt+wkRmcK+V31bCpsRQ== X-Google-Smtp-Source: ABdhPJyhQrcMDh0GC9n1EVHgOMkdrSOHBxhaWZWEGFXjgmaXsXNyIqHLB6XO5qMkxO7l/NILXGgsLA== X-Received: by 2002:a05:600c:3b26:: with SMTP id m38mr2864400wms.155.1630584869511; Thu, 02 Sep 2021 05:14:29 -0700 (PDT) Received: from localhost.localdomain (dynamic-e1udl52juwqyd3ngc-pd01.res.v6.highway.a1.net. [2001:871:5c:80af:7c70:4be5:5ab3:2e7c]) by smtp.gmail.com with ESMTPSA id g5sm1674654wrq.80.2021.09.02.05.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 05:14:29 -0700 (PDT) Message-ID: Subject: Re: No xmin in pg_database From: Laurenz Albe To: Alexander Kass Cc: pgsql-general@lists.postgresql.org Date: Thu, 02 Sep 2021 14:14:28 +0200 In-Reply-To: References: <0cea1cb2929da04dc46a2fb198a7b54dc260cc17.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2021-09-02 at 12:10 +0300, Alexander Kass wrote: > As for xmin usage, we have a working scheme. We fetch objects based on > dbage(xid), starting from the oldest uncommitted transaction of > previous synchronization. > Do you think it does not work? I don't know what exactly you are doing, so I cannot be certain. age(xmin) will not necessarily tell you how many transactions ago the row was created... Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com