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 1w24WE-000r1c-0n for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 09:45:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w24WD-0091oB-13 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Mar 2026 09:45:50 +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 1w24WD-0091o3-04 for pgsql-hackers@lists.postgresql.org; Mon, 16 Mar 2026 09:45:49 +0000 Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w24WB-00000000NVJ-298d for pgsql-hackers@postgresql.org; Mon, 16 Mar 2026 09:45:48 +0000 Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-79a535e7c00so4839287b3.3 for ; Mon, 16 Mar 2026 02:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773654347; cv=none; d=google.com; s=arc-20240605; b=lS8VITSPkRw8bZii8dMPy6MR9Y2FuOMenkEY1AErGayqiZU3wM+av+PCxwpgehotnk /a+zW1pxnf7S66KD25ppR4P5SgP6c1gW+KjU2GA2mXQNPiIlVbtqfuqX5Y7QJnkpUbCU 1Fw/u4ZCRobr6qiM0a4f/yacIERMW3bF20hNMjppt2g0jJLF8d35s/vL+oANMyTGy1Ox U3Cr1nnt3/RwK7rwZ/R2bIM7CIfi5EKHrG7BJudF9lifycA+F5fkqsuejAuZ6ty3RrpL il0BmzLP2z6CXfpCBQAZv3IDN1IhHDbdY7GU5om+a6RzplQ9tZBpDvEOfJvf7Bd2dpTX Lq6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dhBykOEfvgVU2yGPczw78rDGAcVhygSffjxzDX9Ul5w=; fh=R7zJdyDHwwIxdEITas9yeJnL3pKJbbXg4lhgvXFMzK8=; b=N/5oxrfcDE/oiLStwhhVG204ujzJGq2xl53iErtskRtlwYEQPU/5rF2rDLoz8ZN4wz zzbeekPyuO1+XvVPUY5nOIL9c8k8FK7IHNcjZ0gX0pzHuzwltxMDpA0fav8GMZrzibg9 FpKAgRWqKTdyVqjVKWqceey/ba66n7ZZdsrAyjhRantltPzmz9tsopYA6G9lk17DUdUe 4x6UGUriaXZhHjfLpt8OStdcdp+umMF/f1VhaQMPioqWRthvhTptrZl8s0cW4/xta4Ne rFywRWOliECbwQ0VEkEKylxOX/NrvD0jID5JDkylKHQdol3EBrRutnsCLqE7zM71kdBl 4rwQ==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; t=1773654347; x=1774259147; darn=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=dhBykOEfvgVU2yGPczw78rDGAcVhygSffjxzDX9Ul5w=; b=LRKX76tR7eiDM2MuhdlOE6WT6e15PWfoWehp2zOafJotKvsYwif23CYY2p1wg1GiBl AyeUje1oBX2J1nCo6oSqktO48hzqohJeQQpbWZnhFvm7438eHfibpMax5Yoa0761ZSQ+ SYRC2Dh3QiZFMYV6+xUSCsnvVjCIcgCpGQnSI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773654347; x=1774259147; 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=dhBykOEfvgVU2yGPczw78rDGAcVhygSffjxzDX9Ul5w=; b=fuSTTGWFOvIqz3P91/zMc+eq1xWN0c/FXzQFxFNf/s04iGaxJvpLMB7M6qRNeOWwHi dl7SCayJZFSx0/Uymah/V4sfMh4V+y3f3ZzshNcOsAMIe07hnJZiG+sWag2akfa//7E9 gb4NgElcSZ2JFuGuExencRcCwFkW9KOjbCJ1NKXP/Y5Zi4nu2Uc1mE+S0dA/48hsOIwh rXmEpssK8rWmSYU27Dqa6qwdh7Hj2ZMvgRblKR5Kt7UJCEMKJovgKacR05sb+GM0JRPn vU2IGeLIVNah6h/ZFo4lIKKWaqd68ui4RvsupDoMzTWOEzJ5Djjhgdh3Br5b6mv1jyN7 /nsw== X-Forwarded-Encrypted: i=1; AJvYcCWXapWZ2uLN6XomapqhoijMu7djIn6OBA2XoSWwNQPHku/Y2e2AOXfNc+4Yy8S58zFcZcVA7gyOkJRLymgJ@postgresql.org X-Gm-Message-State: AOJu0Yx5M5hRaIOzUA+QfrKNWVZx1ZPMjEpRAGRwGAMh2IG+6Fos4990 6HsIb8rCy0Jfi4i6L70YtEedkYs8tWtTpY2xaet1AuSt9WshfYH7mnJLrK89b+aH/saCqvE7GUS 68EsZAPdlZdr6ASJ14PNmRhfgriSQvEpqNLnI/mxstA== X-Gm-Gg: ATEYQzw/pSM+SM7vjUrs4vRlUiXWTfKvH6cLRdg4jityNG/vfRNprCWnMfL6f+hlx8V Kx73jbm4bamt08hcsJtdN2NeBo/gfbavcKI+5g3uPYvg2YC1huslaBwF8SaSstSjtQ7z0NH0Fek KG9HtSF5yJwIkvAM6RUq5YmSyGY5zjmK2RXWVGLT5qBQtp5JZW+KjZ5jhKmulo8lZNGHyiYx8mn p8h/mBe0y+5fnpj+J6xo7A+JPLAW707Wr5tV3jEjsBPvm6hDDpFxO8loTqtfdioGBnc976ATbGp JynAHw== X-Received: by 2002:a05:690c:2612:b0:79a:39db:9c8c with SMTP id 00721157ae682-79a39dba983mr59333227b3.44.1773654346365; Mon, 16 Mar 2026 02:45:46 -0700 (PDT) MIME-Version: 1.0 References: <2631a3c3-5e60-4a1a-9e20-377024322602@gmail.com> In-Reply-To: From: Anthonin Bonnefoy Date: Mon, 16 Mar 2026 10:45:35 +0100 X-Gm-Features: AaiRm50XuEnJ6PLJowvlyNkKrbfEBqjgkydQcaJma5shs4Xs1s4ZMWR6y7F1haw Message-ID: Subject: Re: Shutdown indefinitely stuck due to unflushed FPI_FOR_HINT record To: Fujii Masao Cc: Andres Freund , Alexander Lakhin , 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 Mon, Mar 16, 2026 at 6:39=E2=80=AFAM Fujii Masao = wrote: > Since Tomas added GetXLogInsertEndRecPtr() in commit b1f14c96720, > I updated the patch to use it. Patch attached. > Barring any objections, I will commit it. > > - XLogFlush(GetXLogWriteRecPtr()); > + XLogFlush(GetXLogInsertEndRecPtr()); Thanks for the updated patch! I've run my test script against the patch and there's no more "xlog flush request xxx is not satisfied" errors reported. > I excluded the above change from the patch because it seems like a separa= te > issue. I also wonder whether this code could cause an error in XLogFlush(= ) > even when GetXLogWriteRecPtr() is used. Ha right, I've mixed Insert and Write and thought that FinishSyncWorker was also doing a XlogFlush(GetXLogInsertRecPtr()) when writing the patch. If I try to trigger the partial record issue, GetXLogWriteRecPtr() points at the end of the WAL page containing the beginning of the FPI_FOR_HINT, there's no attempt to flush in the future. So FinishSyncWorker doesn't seem impacted by the issue. Regards, Anthonin Bonnefoy