Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vKpL0-00A2eM-20 for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Nov 2025 02:51:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vKpKw-00BpNm-1l for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Nov 2025 02:51:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vKpKw-00BpNb-0Z for pgsql-hackers@lists.postgresql.org; Mon, 17 Nov 2025 02:51:26 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vKpKt-007UjC-1s for pgsql-hackers@lists.postgresql.org; Mon, 17 Nov 2025 02:51:24 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-595910c9178so481682e87.1 for ; Sun, 16 Nov 2025 18:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763347881; x=1763952681; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=c4xskyDOw9EcJi+KxDqwRgVBkT1cCcGOseOCa//KCHQ=; b=SXvjs7KGHJYWz5v6eX0fS64t36aB30VsJhvIefZM72Qw9AtWQVb+P+PUCO5pKdiBAF 7J/BKGgtlOA+yrPHPogdhShL45O7VAi0ii6z8mZlWc6AFDncejAhyXmjE1yuzQ9tEQSX lkyXnGqupPCQbw82atVF/kurw6RwKveK59AGaOzof02GDI2LD17P2KODNnYCCwjr21o6 XjeeUMHY8Y3Kv9tpc2FxNOpmkE4qsbw9Tye3gr+MdWYxYl4q6WeyxBQCkOXFaoU7fJay SAt41zO5MN9Ic1uBVAXMYRtryfzxPP4OAwXmuJHJT8lrVKbjAZ/t8VGbWs5xu1l3mfMI 9t/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763347881; x=1763952681; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=c4xskyDOw9EcJi+KxDqwRgVBkT1cCcGOseOCa//KCHQ=; b=irdOess/40M4XR3ampu/nNVlAbD8aTPEWubf9NNfOStSFvfi5egm6zL8YN6a1+2T9Q gGjBwIziVAsmrG5zdYzxhd2vO+GDSb3SpdBjuCY46QXxlVbSbZfvAxJwwo3vtm/qepH+ L0Kcbje4wI4PK4rR7ehgAWejqwR1WhPWKSE/vwkh9GwSo22U1UUqdOB5MB7o4GgXEY9z YhzjrI/b4k/Vq0jjbQPcXMHT938VL0C6Q+rgvU6kzck78sXBP2AseMv+v5PiXszjooxY kOd7q5XHPGLjd0MjjRkNnpgdBYL39C6D2T9lRM+LTGQXdKbZTb11rKm8xYOCEohZ2VXQ PtSQ== X-Forwarded-Encrypted: i=1; AJvYcCVPoiWvHMsf2aR18T/n2oxcNhZmSBr6AwhQvjCqO37koPGjSQyH7aQFY3GGptB5HOBaDG4w2aNjNx1QcaLP@lists.postgresql.org X-Gm-Message-State: AOJu0YwYu2DMt4H989zSvohgfdhURHF1dr403cYvvJHTsYreGpLk5RKJ BJXLpVZNdd4fuuCwgrAMsAVQuuzP2FBMje1kE9aM03XCRhilz4Rgpqn2/0hnPzkmo/lCI36b9WD WbPNSwcHeXjDT4y7ZY/34Sng65m5fIF8= X-Gm-Gg: ASbGncsC/EYEzMn5LqbpwaPuCUKtoJvgV56J5qwLBErUl9+ycYlLyr/6U4WGLSz7cb4 QAJiZaF3AVpZIE/hLlhIrvthHy9ED+AcbodV2+Bw7P+tZbOunVtDcBbALlWiYaCWDuh+51XbZPc mJOfKCO3BDl/2nusV2skBNg3epaZkHs8IuN37/hxdljjGXcl2ykoQtttFaQjYqyIi5dmkME9p/U tG3t8Pq99EJP1N4nzuWXUydxcPz3V1fsisqmw2nFTrunviWQQbV5w/V2htZoNVbk4yw5xNC04fK +u6zBK4at7DPySTyq9egg2v5r9hwCgbcAPIcfHqLpnfa X-Google-Smtp-Source: AGHT+IGGoPva65YJLS51nbYD8q3/bSxaXBGFajKWc0d44300TwENruaogWlpOAM/h0Q5jf4nSHib/2up71PjGAYrASw= X-Received: by 2002:a05:6512:ac4:b0:594:4b3c:bbf with SMTP id 2adb3069b0e04-5958414058amr3289608e87.0.1763347880554; Sun, 16 Nov 2025 18:51:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dilip Kumar Date: Mon, 17 Nov 2025 08:21:04 +0530 X-Gm-Features: AWmQ_bk3coittCyC1m9sBUV5rz_XbI5-5ZSdenmsSuvblKo-qk8b9ZCRqH9962I Message-ID: Subject: Re: Report oldest xmin source when autovacuum cannot remove tuples To: Sami Imseih Cc: wenhui qiu , Shinya Kato , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Nov 15, 2025 at 5:56=E2=80=AFAM Sami Imseih w= rote: > > Thanks for starting this thread! This is a very useful > feature that users will find beneficial to easily narrow > down the reason the xmin horizon is being held back, > and take action. +1 for the idea. In BackendXidFindCutOffReason() you have directly reported using NOTICE I believe that is just to show the idea and you are planning to append this to the main message? Apart from that we are looping the whole pgprocarray, however it is only done when we are vacuuming with verbose mode so might not be that bad. --=20 Regards, Dilip Kumar Google