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.94.2) (envelope-from ) id 1t1mH5-000KAi-L3 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Oct 2024 12:40:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t1mH4-003y3f-0F for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Oct 2024 12:40:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t1mGa-003t2w-K0 for pgsql-hackers@lists.postgresql.org; Fri, 18 Oct 2024 12:39:41 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t1mGY-001i6q-HK for pgsql-hackers@lists.postgresql.org; Fri, 18 Oct 2024 12:39:40 +0000 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2fb5fa911aaso32735001fa.2 for ; Fri, 18 Oct 2024 05:39:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataegret-com.20230601.gappssmtp.com; s=20230601; t=1729255177; x=1729859977; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ITa039QnHl/mwft9bgGrSvhSBrMscq4LWbYVq6aN9Ao=; b=jM02AyCKIKOmcyM2CSkftjLoYrrhNeo/Xmc4cOcQYD9zr0ynIAyyFChct/MrRwRRwD Ot49TrHt2Lq0gmzp3mr1KLl0Pgj6LT88XYwVLqfyikxzkuYDw9eag53YzwhZgx26ULS2 gAPYlXzVs1YG+cnGsoJooujrL9P00w4wauSgynsorWxKoLeq2BwX8srXLpUfvFQ1IZbj tQ8qlUvZhpsTJbACV/Vk90kcFS4r85KZog5MCACVHslxF8YXuFFEOUQ4XRC6thozIE1S nwNaHllSZaJM9vGwnHkfMAZM9cNbWMaWsAYuNjcgSpLSbTphDKV+SMCsqepP5w+tPUzY GNEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729255177; x=1729859977; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ITa039QnHl/mwft9bgGrSvhSBrMscq4LWbYVq6aN9Ao=; b=XP6TUIZVZjALbLCP/2m/NQ5VglP7ee2MO1k8HQ/z3rnweHTHsTRsAy+BimDmNtobvP myKykcbpZIj286gVbW91mkeNuoPJMLlTH9LKilQSBPPV6Zg4Pw6N20fwLxQXIUfOKKr8 v1bD/QXLNAhEzB6bzJTIskWtFp+/rUDydZ/l8ng/4BxeN3gzh9pQT2QWX+ChGf2fvkzr oV+V2u2gcEaU1AdavemLg2b+1jPGHVFwBKNcCm6k621yretPOKv/o+Kv0YDcrPVuU9/2 38UuktbxxKSmrB9GFoENiFUoDkjM7yeLeGeM5VulekTwq2Efw2fnxcoSLC6T0FK2CsgD Zxzw== X-Forwarded-Encrypted: i=1; AJvYcCWLaXxZ4SAs3h5cUwigXSSuW/Svd6i35aockAqZ6IeYi89RPSUWPDQAeB3PAxvg7nRmIHmhA6zbYeQbCf1X@lists.postgresql.org X-Gm-Message-State: AOJu0YyVKvnA/4DOBouOpc2H3/UqyAXADUrvbsEcwyR2A2W67mSKrZkI RsK3zDkTHFcNGALoTbUGLXuVjtKVEs2dBThVJ2Dzot+1NcTJd396aoFbXZCfSJ1gG4FZsnDFNYK 3CCsmX4T3T07sM9fJAuAPqUPJsJ0xcLMUKZxBcA== X-Google-Smtp-Source: AGHT+IGmXR6iBnEZDpK9MpqgYckcxQGTdXpZDQpqZe47Lc7zRnlBWvSVuqukHoexjnOzhe/xdRmyljvatQeu4S5o9Lg= X-Received: by 2002:a05:651c:2109:b0:2fb:63b5:c0bc with SMTP id 38308e7fff4ca-2fb82e90c10mr17921151fa.3.1729255177315; Fri, 18 Oct 2024 05:39:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stefan Fercot Date: Fri, 18 Oct 2024 14:39:26 +0200 Message-ID: Subject: Re: Recovery of .partial WAL segments To: Stepan Neretin Cc: Dmitry Dolgov <9erthalion6@gmail.com>, "pgsql-hackers@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000009203260624bf98e2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000009203260624bf98e2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Fri, Oct 18, 2024 at 11:07=E2=80=AFAM Stepan Neretin = wrote: > Hi there! It looks good to me! > Thanks! But I have a question. How is the partialxlogfname freed in case of an > error? I'm not sure I understand your question. What kind of error would you expect exactly? I mostly added a pfree there because we don't need it further. But why would it be more of a problem compared to other variables/pointers? Kind regards, Stefan --0000000000009203260624bf98e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Fri, Oct 18, 2024 at 11:07=E2=80=AFAM Step= an Neretin <sndcppg@gmail.com&g= t; wrote:
Hi there! It looks goo= d to me!

Thanks!

But I have a question. How is the partialxlogf= name freed in case of an error?

I= 9;m not sure I understand your question. What kind of error would you expec= t exactly?
I mostly added a pfree there because we don't need= it further. But why would it be more of a problem compared to other variab= les/pointers?

Kind regards,
Stefan
--0000000000009203260624bf98e2--